Kgapi

contactgroupmetadata.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
15class QJsonObject;
16class QJsonValue;
17class QDateTime;
18
19namespace KGAPI2::People
20{
21/**
22 * The metadata about a contact group.
23 *
24 * @see https://developers.google.com/people/api/rest/v1/people#contactgroupmetadata
25 * @since 5.23.0
26 **/
27class KGAPIPEOPLE_EXPORT ContactGroupMetadata
28{
29public:
30 /** Constructs a new ContactGroupMetadata **/
31 explicit ContactGroupMetadata();
35 ContactGroupMetadata &operator=(ContactGroupMetadata &&) noexcept;
36 /** Destructor. **/
38
39 bool operator==(const ContactGroupMetadata &) const;
40 bool operator!=(const ContactGroupMetadata &) const;
41
42 static ContactGroupMetadata fromJSON(const QJsonObject &);
43 QJsonValue toJSON() const;
44
45 /** Output only. The time the group was last updated. **/
46 QDateTime updateTime() const;
47
48 /** Output only. True if the contact group resource has been deleted. Populated only for [`ListContactGroups`](/people/api/rest/v1/contactgroups/list)
49 * requests that include a sync token. **/
50 bool deleted() const;
51
52private:
53 class Private;
55}; // ContactGroupMetadata
56
57} // namespace KGAPI2::People
The metadata about a contact group.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:11:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.