Kgapi

contactgroupmembership.h
1/*
2 * SPDX-FileCopyrightText: 2021 Daniel Vrátil <dvratil@kde.org>
3 * SPDX-FileCopyrightText: 2022 Claudio Cambra <claudio.cambra@kde.org>
4 *
5 * SPDX-License-Identifier: LGPL-2.1-only
6 * SPDX-License-Identifier: LGPL-3.0-only
7 * SPDX-License-Identifier: LicenseRef-KDE-Accepted-LGPL
8 */
9
10#pragma once
11
12#include <QSharedDataPointer>
13#include "kgapipeople_export.h"
14
15#include <QString>
16
17#include <optional>
18
19class QJsonObject;
20class QJsonValue;
21
22namespace KGAPI2::People
23{
24
25/**
26 * A Google contact group membership.
27 *
28 * @see https://developers.google.com/people/api/rest/v1/people#contactgroupmembership
29 * @since 5.23.0
30 **/
31class KGAPIPEOPLE_EXPORT ContactGroupMembership
32{
33public:
34 /** Constructs a new ContactGroupMembership **/
35 explicit ContactGroupMembership();
39 ContactGroupMembership &operator=(ContactGroupMembership &&) noexcept;
40 /** Destructor. **/
42
43 bool operator==(const ContactGroupMembership &) const;
44 bool operator!=(const ContactGroupMembership &) const;
45
46 static ContactGroupMembership fromJSON(const QJsonObject &);
47 QJsonValue toJSON() const;
48
49 /** The resource name for the contact group, assigned by the server. An ASCII string, in the form of `contactGroups/{contact_group_id}`. Only
50 * contact_group_resource_name can be used for modifying memberships. Any contact group membership can be removed, but only user group or "myContacts" or
51 * "starred" system groups memberships can be added. A contact must always have at least one contact group membership. **/
52 QString contactGroupResourceName() const;
53 /** Sets value of the contactGroupResourceName property. **/
54 void setContactGroupResourceName(const QString &value);
55
56 /** Output only. The contact group ID for the contact group membership. **/
57 QString contactGroupId() const;
58
59private:
60 class Private;
62}; // ContactGroupMembership
63
64} // namespace KGAPI2::People
A Google contact group membership.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.