Kgapi

relationshipinterest.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 relationship interest .
27 *
28 * @see https://developers.google.com/people/api/rest/v1/people#relationshipinterest
29 * @since 5.23.0
30 **/
31class KGAPIPEOPLE_EXPORT RelationshipInterest
32{
33public:
34 /** Constructs a new RelationshipInterest **/
35 explicit RelationshipInterest();
39 RelationshipInterest &operator=(RelationshipInterest &&) noexcept;
40 /** Destructor. **/
42
43 bool operator==(const RelationshipInterest &) const;
44 bool operator!=(const RelationshipInterest &) const;
45
46 [[nodiscard]] static RelationshipInterest fromJSON(const QJsonObject &);
47 [[nodiscard]] QJsonValue toJSON() const;
48
49 /** Output only. The value of the relationship interest translated and formatted in the viewer's account locale or the locale specified in the
50 * Accept-Language HTTP header. **/
51 [[nodiscard]] QString formattedValue() const;
52
53 /** Metadata about the relationship interest. **/
54 [[nodiscard]] FieldMetadata metadata() const;
55 /** Sets value of the metadata property. **/
56 void setMetadata(const FieldMetadata &value);
57
58 /** The kind of relationship the person is looking for. The value can be custom or one of these predefined values: * `friend` * `date` * `relationship` *
59 * `networking` **/
60 [[nodiscard]] QString value() const;
61 /** Sets value of the value property. **/
62 void setValue(const QString &value);
63
64private:
65 class Private;
67}; // RelationshipInterest
68
69} // namespace KGAPI2::People
Metadata about a field.
DEPRECATED: No data will be returned A person's relationship interest .
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 13 2024 11:54:37 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.