KGAPI2::People::AgeRangeType

Search for usage in LXR

KGAPI2::People::AgeRangeType Class Reference

#include <agerangetype.h>

Public Types

enum class  AgeRange { AGE_RANGE_UNSPECIFIED , LESS_THAN_EIGHTEEN , EIGHTEEN_TO_TWENTY , TWENTY_ONE_OR_OLDER }
 

Public Member Functions

 AgeRangeType ()
 
 AgeRangeType (AgeRangeType &&) noexcept
 
 AgeRangeType (const AgeRangeType &)
 
 ~AgeRangeType ()
 
AgeRangeType::AgeRange ageRange () const
 
FieldMetadata metadata () const
 
bool operator!= (const AgeRangeType &) const
 
AgeRangeTypeoperator= (AgeRangeType &&) noexcept
 
AgeRangeTypeoperator= (const AgeRangeType &)
 
bool operator== (const AgeRangeType &) const
 
void setAgeRange (AgeRangeType::AgeRange value)
 
void setMetadata (const FieldMetadata &value)
 
QJsonValue toJSON () const
 

Static Public Member Functions

static AgeRangeType fromJSON (const QJsonObject &obj)
 
static QList< AgeRangeTypefromJSONArray (const QJsonArray &data)
 

Detailed Description

A person's age range.

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

Definition at line 31 of file agerangetype.h.

Member Enumeration Documentation

◆ AgeRange

Enumerator
AGE_RANGE_UNSPECIFIED 

Unspecified.

LESS_THAN_EIGHTEEN 

Younger than eighteen.

EIGHTEEN_TO_TWENTY 

Between eighteen and twenty.

TWENTY_ONE_OR_OLDER 

Twenty-one and older.

Definition at line 34 of file agerangetype.h.

Constructor & Destructor Documentation

◆ AgeRangeType()

KGAPI2::People::AgeRangeType::AgeRangeType ( )
explicit

Constructs a new AgeRangeType.

Definition at line 46 of file agerangetype.cpp.

◆ ~AgeRangeType()

KGAPI2::People::AgeRangeType::~AgeRangeType ( )
default

Destructor.

Member Function Documentation

◆ ageRange()

AgeRangeType::AgeRangeType::AgeRange KGAPI2::People::AgeRangeType::ageRange ( ) const
nodiscard

The age range.

Definition at line 67 of file agerangetype.cpp.

◆ fromJSON()

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

Definition at line 86 of file agerangetype.cpp.

◆ fromJSONArray()

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

Definition at line 129 of file agerangetype.cpp.

◆ metadata()

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

Metadata about the age range.

Definition at line 76 of file agerangetype.cpp.

◆ operator!=()

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

Definition at line 62 of file agerangetype.cpp.

◆ operator==()

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

Definition at line 57 of file agerangetype.cpp.

◆ setAgeRange()

void KGAPI2::People::AgeRangeType::setAgeRange ( AgeRangeType::AgeRange value)

Sets value of the ageRange property.

Definition at line 72 of file agerangetype.cpp.

◆ setMetadata()

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

Sets value of the metadata property.

Definition at line 81 of file agerangetype.cpp.

◆ toJSON()

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

Definition at line 107 of file agerangetype.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 29 2024 11:54:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.