KGAPI2::People::ExternalId

Search for usage in LXR

KGAPI2::People::ExternalId Class Reference

#include <externalid.h>

Public Member Functions

 ExternalId ()
 
 ExternalId (const ExternalId &)
 
 ExternalId (ExternalId &&) noexcept
 
 ~ExternalId ()
 
QString formattedType () const
 
FieldMetadata metadata () const
 
bool operator!= (const ExternalId &) const
 
ExternalIdoperator= (const ExternalId &)
 
ExternalIdoperator= (ExternalId &&) noexcept
 
bool operator== (const ExternalId &) const
 
void setMetadata (const FieldMetadata &value)
 
void setType (const QString &value)
 
void setValue (const QString &value)
 
QJsonValue toJSON () const
 
QString type () const
 
QString value () const
 

Static Public Member Functions

static ExternalId fromJSON (const QJsonObject &obj)
 
static QList< ExternalIdfromJSONArray (const QJsonArray &data)
 

Detailed Description

An identifier from an external entity related to the person.

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

Definition at line 33 of file externalid.h.

Constructor & Destructor Documentation

◆ ExternalId()

KGAPI2::People::ExternalId::ExternalId ( )
explicit

Constructs a new ExternalId.

Definition at line 50 of file externalid.cpp.

◆ ~ExternalId()

KGAPI2::People::ExternalId::~ExternalId ( )
default

Destructor.

Member Function Documentation

◆ formattedType()

QString KGAPI2::People::ExternalId::formattedType ( ) const
nodiscard

Output only.

The type of the event translated and formatted in the viewer's account locale or the Accept-Language HTTP header locale.

Definition at line 80 of file externalid.cpp.

◆ fromJSON()

ExternalId KGAPI2::People::ExternalId::fromJSON ( const QJsonObject & obj)
staticnodiscard

Definition at line 103 of file externalid.cpp.

◆ fromJSONArray()

QList< ExternalId > KGAPI2::People::ExternalId::fromJSONArray ( const QJsonArray & data)
staticnodiscard

Definition at line 118 of file externalid.cpp.

◆ metadata()

FieldMetadata KGAPI2::People::ExternalId::metadata ( ) const
nodiscard

Metadata about the external ID.

Definition at line 93 of file externalid.cpp.

◆ operator!=()

bool KGAPI2::People::ExternalId::operator!= ( const ExternalId & other) const

Definition at line 66 of file externalid.cpp.

◆ operator==()

bool KGAPI2::People::ExternalId::operator== ( const ExternalId & other) const

Definition at line 61 of file externalid.cpp.

◆ setMetadata()

void KGAPI2::People::ExternalId::setMetadata ( const FieldMetadata & value)

Sets value of the metadata property.

Definition at line 98 of file externalid.cpp.

◆ setType()

void KGAPI2::People::ExternalId::setType ( const QString & value)

Sets value of the type property.

Definition at line 76 of file externalid.cpp.

◆ setValue()

void KGAPI2::People::ExternalId::setValue ( const QString & value)

Sets value of the value property.

Definition at line 89 of file externalid.cpp.

◆ toJSON()

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

Definition at line 132 of file externalid.cpp.

◆ type()

QString KGAPI2::People::ExternalId::type ( ) const
nodiscard

The type of the external ID.

The type can be custom or one of these predefined values: * account * customer * loginId * network * organization

Definition at line 71 of file externalid.cpp.

◆ value()

QString KGAPI2::People::ExternalId::value ( ) const
nodiscard

The value of the external ID.

Definition at line 84 of file externalid.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 Sat Dec 21 2024 17:00:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.