KGAPI2::People::FieldMetadata

Search for usage in LXR

KGAPI2::People::FieldMetadata Class Reference

#include <fieldmetadata.h>

Public Member Functions

 FieldMetadata ()
 
 FieldMetadata (const FieldMetadata &)
 
 FieldMetadata (FieldMetadata &&) noexcept
 
 ~FieldMetadata ()
 
bool operator!= (const FieldMetadata &) const
 
FieldMetadataoperator= (const FieldMetadata &)
 
FieldMetadataoperator= (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

Metadata about a field.

See also
https://developers.google.com/people/api/rest/v1/people#fieldmetadata
Since
5.23.0

Definition at line 29 of file fieldmetadata.h.

Constructor & Destructor Documentation

◆ FieldMetadata()

KGAPI2::People::FieldMetadata::FieldMetadata ( )
explicit

Constructs a new FieldMetadata.

Definition at line 48 of file fieldmetadata.cpp.

◆ ~FieldMetadata()

KGAPI2::People::FieldMetadata::~FieldMetadata ( )
default

Destructor.

Member Function Documentation

◆ fromJSON()

FieldMetadata KGAPI2::People::FieldMetadata::fromJSON ( const QJsonObject & obj)
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()

bool KGAPI2::People::FieldMetadata::primary ( ) const
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()

Source KGAPI2::People::FieldMetadata::source ( ) const
nodiscard

The source of the field.

Definition at line 69 of file fieldmetadata.cpp.

◆ sourcePrimary()

bool KGAPI2::People::FieldMetadata::sourcePrimary ( ) const
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()

QJsonValue KGAPI2::People::FieldMetadata::toJSON ( ) const
nodiscard

Definition at line 110 of file fieldmetadata.cpp.

◆ verified()

bool KGAPI2::People::FieldMetadata::verified ( ) const
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:
This file is part of the KDE documentation.
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.