KGAPI2::People::Birthday

Search for usage in LXR

KGAPI2::People::Birthday Class Reference

#include <birthday.h>

Public Member Functions

 Birthday ()
 
 Birthday (Birthday &&) noexcept
 
 Birthday (const Birthday &)
 
 ~Birthday ()
 
QDate date () const
 
FieldMetadata metadata () const
 
bool operator!= (const Birthday &) const
 
Birthdayoperator= (Birthday &&) noexcept
 
Birthdayoperator= (const Birthday &)
 
bool operator== (const Birthday &) const
 
void setDate (const QDate &value)
 
void setMetadata (const FieldMetadata &value)
 
void setText (const QString &value)
 
QString text () const
 
QJsonValue toJSON () const
 

Static Public Member Functions

static Birthday fromJSON (const QJsonObject &obj)
 
static QList< BirthdayfromJSONArray (const QJsonArray &data)
 

Detailed Description

A person's birthday.

At least one of the date and text fields are specified. The date and text fields typically represent the same date, but are not guaranteed to.

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

Definition at line 36 of file birthday.h.

Constructor & Destructor Documentation

◆ Birthday()

KGAPI2::People::Birthday::Birthday ( )
explicit

Constructs a new Birthday.

Definition at line 48 of file birthday.cpp.

◆ ~Birthday()

KGAPI2::People::Birthday::~Birthday ( )
default

Destructor.

Member Function Documentation

◆ date()

QDate KGAPI2::People::Birthday::date ( ) const
nodiscard

The date of the birthday.

Definition at line 87 of file birthday.cpp.

◆ fromJSON()

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

Definition at line 97 of file birthday.cpp.

◆ fromJSONArray()

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

Definition at line 116 of file birthday.cpp.

◆ metadata()

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

Metadata about the birthday.

Definition at line 78 of file birthday.cpp.

◆ operator!=()

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

Definition at line 64 of file birthday.cpp.

◆ operator==()

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

Definition at line 59 of file birthday.cpp.

◆ setDate()

void KGAPI2::People::Birthday::setDate ( const QDate & value)

Sets value of the date property.

Definition at line 92 of file birthday.cpp.

◆ setMetadata()

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

Sets value of the metadata property.

Definition at line 83 of file birthday.cpp.

◆ setText()

void KGAPI2::People::Birthday::setText ( const QString & value)

Sets value of the text property.

Definition at line 74 of file birthday.cpp.

◆ text()

QString KGAPI2::People::Birthday::text ( ) const
nodiscard

A free-form string representing the user's birthday.

Definition at line 69 of file birthday.cpp.

◆ toJSON()

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

Definition at line 131 of file birthday.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 4 2024 16:36:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.