Kgapi

braggingrights.h
1/*
2 * SPDX-FileCopyrightText: 2021 Daniel Vrátil <dvratil@kde.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 * SPDX-License-Identifier: LGPL-3.0-only
6 * SPDX-License-Identifier: LicenseRef-KDE-Accepted-LGPL
7 */
8
9#pragma once
10
11#include <QSharedDataPointer>
12#include "kgapipeople_export.h"
13
14#include <QString>
15
16#include <optional>
17
18class QJsonObject;
19class QJsonValue;
20
21namespace KGAPI2::People
22{
23class FieldMetadata;
24
25/**
26 * **DEPRECATED**: No data will be returned A person's bragging rights.
27 *
28 * @see https://developers.google.com/people/api/rest/v1/people#braggingrights
29 * @since 5.23.0
30 **/
31class KGAPIPEOPLE_EXPORT BraggingRights
32{
33public:
34 /** Constructs a new BraggingRights **/
35 explicit BraggingRights();
37 BraggingRights(BraggingRights &&) noexcept;
38 BraggingRights &operator=(const BraggingRights &);
39 BraggingRights &operator=(BraggingRights &&) noexcept;
40 /** Destructor. **/
42
43 bool operator==(const BraggingRights &) const;
44 bool operator!=(const BraggingRights &) const;
45
46 [[nodiscard]] static BraggingRights fromJSON(const QJsonObject &);
47 [[nodiscard]] QJsonValue toJSON() const;
48
49 /** Metadata about the bragging rights. **/
50 [[nodiscard]] FieldMetadata metadata() const;
51 /** Sets value of the metadata property. **/
52 void setMetadata(const FieldMetadata &value);
53
54 /** The bragging rights; for example, `climbed mount everest`. **/
55 [[nodiscard]] QString value() const;
56 /** Sets value of the value property. **/
57 void setValue(const QString &value);
58
59private:
60 class Private;
62}; // BraggingRights
63
64} // namespace KGAPI2::People
DEPRECATED: No data will be returned A person's bragging rights.
Metadata about a field.
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.