KGAPI2::People::Membership

Search for usage in LXR

KGAPI2::People::Membership Class Reference

#include <membership.h>

Public Member Functions

 Membership ()
 
 Membership (const Membership &)
 
 Membership (const MembershipDefinition &definition)
 
 Membership (Membership &&) noexcept
 
 ~Membership ()
 
ContactGroupMembership contactGroupMembership () const
 
DomainMembership domainMembership () const
 
FieldMetadata metadata () const
 
bool operator!= (const Membership &) const
 
Membershipoperator= (const Membership &)
 
Membershipoperator= (Membership &&) noexcept
 
bool operator== (const Membership &) const
 
void setContactGroupMembership (const ContactGroupMembership &value)
 
void setMetadata (const FieldMetadata &value)
 
QJsonValue toJSON () const
 

Static Public Member Functions

static Membership fromJSON (const QJsonObject &obj)
 
static QList< MembershipfromJSONArray (const QJsonArray &data)
 

Detailed Description

A person's membership in a group.

Only contact group memberships can be modified.

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

Definition at line 35 of file membership.h.

Constructor & Destructor Documentation

◆ Membership() [1/2]

KGAPI2::People::Membership::Membership ( )
explicit

Constructs a new Membership.

Definition at line 59 of file membership.cpp.

◆ Membership() [2/2]

KGAPI2::People::Membership::Membership ( const MembershipDefinition & definition)

Definition at line 64 of file membership.cpp.

◆ ~Membership()

KGAPI2::People::Membership::~Membership ( )
default

Destructor.

Member Function Documentation

◆ contactGroupMembership()

ContactGroupMembership KGAPI2::People::Membership::contactGroupMembership ( ) const
nodiscard

The contact group membership.

Definition at line 92 of file membership.cpp.

◆ domainMembership()

DomainMembership KGAPI2::People::Membership::domainMembership ( ) const
nodiscard

Output only.

The domain membership.

Definition at line 88 of file membership.cpp.

◆ fromJSON()

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

Definition at line 111 of file membership.cpp.

◆ fromJSONArray()

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

Definition at line 131 of file membership.cpp.

◆ metadata()

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

Metadata about the membership.

Definition at line 101 of file membership.cpp.

◆ operator!=()

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

Definition at line 83 of file membership.cpp.

◆ operator==()

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

Definition at line 78 of file membership.cpp.

◆ setContactGroupMembership()

void KGAPI2::People::Membership::setContactGroupMembership ( const ContactGroupMembership & value)

Sets value of the contactGroupMembership property.

Definition at line 97 of file membership.cpp.

◆ setMetadata()

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

Sets value of the metadata property.

Definition at line 106 of file membership.cpp.

◆ toJSON()

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

Definition at line 145 of file membership.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.