KGAPI2::People::Interest

Search for usage in LXR

KGAPI2::People::Interest Class Reference

#include <interest.h>

Public Member Functions

 Interest ()
 
 Interest (const Interest &)
 
 Interest (Interest &&) noexcept
 
 ~Interest ()
 
FieldMetadata metadata () const
 
bool operator!= (const Interest &) const
 
Interestoperator= (const Interest &)
 
Interestoperator= (Interest &&) noexcept
 
bool operator== (const Interest &) const
 
void setMetadata (const FieldMetadata &value)
 
void setValue (const QString &value)
 
QJsonValue toJSON () const
 
QString value () const
 

Static Public Member Functions

static Interest fromJSON (const QJsonObject &)
 
static QList< InterestfromJSONArray (const QJsonArray &data)
 

Detailed Description

One of the person's interests.

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

Definition at line 33 of file interest.h.

Constructor & Destructor Documentation

◆ Interest()

KGAPI2::People::Interest::Interest ( )
explicit

Constructs a new Interest.

Definition at line 48 of file interest.cpp.

◆ ~Interest()

KGAPI2::People::Interest::~Interest ( )
default

Destructor.

Member Function Documentation

◆ fromJSON()

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

Definition at line 88 of file interest.cpp.

◆ fromJSONArray()

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

Definition at line 101 of file interest.cpp.

◆ metadata()

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

Metadata about the interest.

Definition at line 78 of file interest.cpp.

◆ operator!=()

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

Definition at line 64 of file interest.cpp.

◆ operator==()

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

Definition at line 59 of file interest.cpp.

◆ setMetadata()

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

Sets value of the metadata property.

Definition at line 83 of file interest.cpp.

◆ setValue()

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

Sets value of the value property.

Definition at line 74 of file interest.cpp.

◆ toJSON()

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

Definition at line 115 of file interest.cpp.

◆ value()

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

The interest; for example, stargazing.

Definition at line 69 of file interest.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:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.