KGAPI2::People::ClientData

Search for usage in LXR

KGAPI2::People::ClientData Class Reference

#include <clientdata.h>

Public Member Functions

 ClientData ()
 
 ClientData (ClientData &&) noexcept
 
 ClientData (const ClientData &)
 
 ~ClientData ()
 
QString key () const
 
FieldMetadata metadata () const
 
bool operator!= (const ClientData &) const
 
ClientDataoperator= (ClientData &&) noexcept
 
ClientDataoperator= (const ClientData &)
 
bool operator== (const ClientData &) const
 
void setKey (const QString &value)
 
void setMetadata (const FieldMetadata &value)
 
void setValue (const QString &value)
 
QJsonValue toJSON () const
 
QString value () const
 

Static Public Member Functions

static ClientData fromJSON (const QJsonObject &obj)
 
static QList< ClientDatafromJSONArray (const QJsonArray &data)
 

Detailed Description

Arbitrary client data that is populated by clients.

Duplicate keys and values are allowed.

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

Definition at line 34 of file clientdata.h.

Constructor & Destructor Documentation

◆ ClientData()

KGAPI2::People::ClientData::ClientData ( )
explicit

Constructs a new ClientData.

Definition at line 49 of file clientdata.cpp.

◆ ~ClientData()

KGAPI2::People::ClientData::~ClientData ( )
default

Destructor.

Member Function Documentation

◆ fromJSON()

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

Definition at line 98 of file clientdata.cpp.

◆ fromJSONArray()

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

Definition at line 112 of file clientdata.cpp.

◆ key()

QString KGAPI2::People::ClientData::key ( ) const
nodiscard

The client specified key of the client data.

Definition at line 79 of file clientdata.cpp.

◆ metadata()

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

Metadata about the client data.

Definition at line 70 of file clientdata.cpp.

◆ operator!=()

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

Definition at line 65 of file clientdata.cpp.

◆ operator==()

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

Definition at line 60 of file clientdata.cpp.

◆ setKey()

void KGAPI2::People::ClientData::setKey ( const QString & value)

Sets value of the key property.

Definition at line 84 of file clientdata.cpp.

◆ setMetadata()

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

Sets value of the metadata property.

Definition at line 75 of file clientdata.cpp.

◆ setValue()

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

Sets value of the value property.

Definition at line 93 of file clientdata.cpp.

◆ toJSON()

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

Definition at line 126 of file clientdata.cpp.

◆ value()

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

The client specified value of the client data.

Definition at line 88 of file clientdata.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 Fri Nov 1 2024 18:49:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.