KGAPI2::People::FieldMetadata
#include <fieldmetadata.h>
Public Member Functions | |
FieldMetadata () | |
FieldMetadata (const FieldMetadata &) | |
FieldMetadata (FieldMetadata &&) noexcept | |
~FieldMetadata () | |
bool | operator!= (const FieldMetadata &) const |
FieldMetadata & | operator= (const FieldMetadata &) |
FieldMetadata & | operator= (FieldMetadata &&) noexcept |
bool | operator== (const FieldMetadata &) const |
bool | primary () const |
void | setSource (const Source &value) |
void | setSourcePrimary (bool value) |
Source | source () const |
bool | sourcePrimary () const |
QJsonValue | toJSON () const |
bool | verified () const |
Static Public Member Functions | |
static FieldMetadata | fromJSON (const QJsonObject &) |
Detailed Description
Constructor & Destructor Documentation
◆ FieldMetadata()
|
explicit |
Constructs a new FieldMetadata.
Definition at line 48 of file fieldmetadata.cpp.
◆ ~FieldMetadata()
|
default |
Destructor.
Member Function Documentation
◆ fromJSON()
|
staticnodiscard |
Definition at line 96 of file fieldmetadata.cpp.
◆ operator!=()
bool KGAPI2::People::FieldMetadata::operator!= | ( | const FieldMetadata & | other | ) | const |
Definition at line 64 of file fieldmetadata.cpp.
◆ operator==()
bool KGAPI2::People::FieldMetadata::operator== | ( | const FieldMetadata & | other | ) | const |
Definition at line 59 of file fieldmetadata.cpp.
◆ primary()
|
nodiscard |
Output only.
True if the field is the primary field for all sources in the person. Each person will have at most one field with primary
set to true.
Definition at line 87 of file fieldmetadata.cpp.
◆ setSource()
void KGAPI2::People::FieldMetadata::setSource | ( | const Source & | value | ) |
Sets value of the source property.
Definition at line 74 of file fieldmetadata.cpp.
◆ setSourcePrimary()
void KGAPI2::People::FieldMetadata::setSourcePrimary | ( | bool | value | ) |
Sets value of the sourcePrimary property.
Definition at line 83 of file fieldmetadata.cpp.
◆ source()
|
nodiscard |
The source of the field.
Definition at line 69 of file fieldmetadata.cpp.
◆ sourcePrimary()
|
nodiscard |
True if the field is the primary field for the source.
Each source must have at most one field with source_primary
set to true.
Definition at line 78 of file fieldmetadata.cpp.
◆ toJSON()
|
nodiscard |
Definition at line 110 of file fieldmetadata.cpp.
◆ verified()
|
nodiscard |
Output only.
True if the field is verified; false if the field is unverified. A verified field is typically a name, email address, phone number, or website that has been confirmed to be owned by the person.
Definition at line 91 of file fieldmetadata.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.