KGAPI2::People::PersonMetadata
#include <personmetadata.h>
Public Types | |
enum class | ObjectType { OBJECT_TYPE_UNSPECIFIED , PERSON , PAGE } |
Public Member Functions | |
PersonMetadata () | |
PersonMetadata (const PersonMetadata &) | |
PersonMetadata (PersonMetadata &&) noexcept | |
~PersonMetadata () | |
void | addSource (const Source &value) |
void | clearSources () |
bool | deleted () const |
QList< QString > | linkedPeopleResourceNames () const |
PersonMetadata::ObjectType | objectType () const |
bool | operator!= (const PersonMetadata &) const |
PersonMetadata & | operator= (const PersonMetadata &) |
PersonMetadata & | operator= (PersonMetadata &&) noexcept |
bool | operator== (const PersonMetadata &) const |
QList< QString > | previousResourceNames () const |
void | removeSource (const Source &value) |
void | setSources (const QList< Source > &value) |
QList< Source > | sources () const |
QJsonValue | toJSON () const |
Static Public Member Functions | |
static PersonMetadata | fromJSON (const QJsonObject &) |
Detailed Description
Member Enumeration Documentation
◆ ObjectType
|
strong |
Enumerator | |
---|---|
OBJECT_TYPE_UNSPECIFIED | Unspecified. |
PERSON | |
PAGE |
Definition at line 36 of file personmetadata.h.
Constructor & Destructor Documentation
◆ PersonMetadata()
|
explicit |
Constructs a new PersonMetadata.
Definition at line 52 of file personmetadata.cpp.
◆ ~PersonMetadata()
|
default |
Destructor.
Member Function Documentation
◆ addSource()
void KGAPI2::People::PersonMetadata::addSource | ( | const Source & | value | ) |
Appends the given value
to the list of sources.
Definition at line 99 of file personmetadata.cpp.
◆ clearSources()
void KGAPI2::People::PersonMetadata::clearSources | ( | ) |
Clears the list of sources.
Definition at line 109 of file personmetadata.cpp.
◆ deleted()
|
nodiscard |
Output only.
True if the person resource has been deleted. Populated only for people.connections.list
and otherContacts.list
sync requests.
Definition at line 85 of file personmetadata.cpp.
◆ fromJSON()
|
staticnodiscard |
Definition at line 114 of file personmetadata.cpp.
◆ linkedPeopleResourceNames()
Output only.
Resource names of people linked to this resource.
Definition at line 73 of file personmetadata.cpp.
◆ objectType()
|
nodiscard |
Output only.
DEPRECATED (Please use person.metadata.sources.profileMetadata.objectType
instead) The type of the person object.
Definition at line 77 of file personmetadata.cpp.
◆ operator!=()
bool KGAPI2::People::PersonMetadata::operator!= | ( | const PersonMetadata & | other | ) | const |
Definition at line 68 of file personmetadata.cpp.
◆ operator==()
bool KGAPI2::People::PersonMetadata::operator== | ( | const PersonMetadata & | other | ) | const |
Definition at line 63 of file personmetadata.cpp.
◆ previousResourceNames()
Output only.
Any former resource names this person has had. Populated only for people.connections.list
requests that include a sync token. The resource name may change when adding or removing fields that link a contact and profile such as a verified email, verified phone number, or profile URL.
Definition at line 81 of file personmetadata.cpp.
◆ removeSource()
void KGAPI2::People::PersonMetadata::removeSource | ( | const Source & | value | ) |
Removes the given value
from the list of sources if it exists.
Definition at line 104 of file personmetadata.cpp.
◆ setSources()
Sets value of the sources property.
Definition at line 94 of file personmetadata.cpp.
◆ sources()
The sources of data for the person.
Definition at line 89 of file personmetadata.cpp.
◆ toJSON()
|
nodiscard |
Definition at line 139 of file personmetadata.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.