KGAPI2::People::ProfileMetadata

Search for usage in LXR

KGAPI2::People::ProfileMetadata Class Reference

#include <profilemetadata.h>

Public Types

enum class  ObjectType { OBJECT_TYPE_UNSPECIFIED , PERSON , PAGE }
 
enum class  UserTypes { USER_TYPE_UNKNOWN , GOOGLE_USER , GPLUS_USER , GOOGLE_APPS_USER }
 

Public Member Functions

 ProfileMetadata ()
 
 ProfileMetadata (const ProfileMetadata &)
 
 ProfileMetadata (ProfileMetadata &&) noexcept
 
 ~ProfileMetadata ()
 
ProfileMetadata::ObjectType objectType () const
 
bool operator!= (const ProfileMetadata &) const
 
ProfileMetadataoperator= (const ProfileMetadata &)
 
ProfileMetadataoperator= (ProfileMetadata &&) noexcept
 
bool operator== (const ProfileMetadata &) const
 
QJsonValue toJSON () const
 
QList< ProfileMetadata::UserTypesuserTypes () const
 

Static Public Member Functions

static ProfileMetadata fromJSON (const QJsonObject &)
 

Detailed Description

The metadata about a profile.

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

Definition at line 30 of file profilemetadata.h.

Member Enumeration Documentation

◆ ObjectType

Enumerator
OBJECT_TYPE_UNSPECIFIED 

Unspecified.

PERSON 

Person.

PAGE 

Currents Page.

Definition at line 39 of file profilemetadata.h.

◆ UserTypes

Enumerator
USER_TYPE_UNKNOWN 

The user type is not known.

GOOGLE_USER 

The user is a Google user.

GPLUS_USER 

The user is a Currents user.

GOOGLE_APPS_USER 

The user is a Google Workspace user.

Definition at line 33 of file profilemetadata.h.

Constructor & Destructor Documentation

◆ ProfileMetadata()

KGAPI2::People::ProfileMetadata::ProfileMetadata ( )
explicit

Constructs a new ProfileMetadata.

Definition at line 46 of file profilemetadata.cpp.

◆ ~ProfileMetadata()

KGAPI2::People::ProfileMetadata::~ProfileMetadata ( )
default

Destructor.

Member Function Documentation

◆ fromJSON()

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

Definition at line 76 of file profilemetadata.cpp.

◆ objectType()

ProfileMetadata::ProfileMetadata::ObjectType KGAPI2::People::ProfileMetadata::objectType ( ) const
nodiscard

Output only.

The profile object type.

Definition at line 71 of file profilemetadata.cpp.

◆ operator!=()

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

Definition at line 62 of file profilemetadata.cpp.

◆ operator==()

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

Definition at line 57 of file profilemetadata.cpp.

◆ toJSON()

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

Definition at line 112 of file profilemetadata.cpp.

◆ userTypes()

QList< ProfileMetadata::UserTypes > KGAPI2::People::ProfileMetadata::userTypes ( ) const
nodiscard

Output only.

The user types.

Definition at line 67 of file profilemetadata.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.