aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/definitions/user_identifier.h
blob: 4261443610263072f76374537d781813c68b6078 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/******************************************************************************
 * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
 */

#pragma once

#include "converters.h"

#include <QtCore/QVariant>

namespace QMatrixClient
{
    // Data structures

    /// Identification information for a user
    struct UserIdentifier
    {
        /// The type of identification.  See `Identifier types`_ for supported values and additional property descriptions.
        QString type;
        /// Identification information for a user
        QVariantHash additionalProperties;
    };

    QJsonObject toJson(const UserIdentifier& pod);

    template <> struct FromJsonObject<UserIdentifier>
    {
        UserIdentifier operator()(QJsonObject jo) const;
    };

} // namespace QMatrixClient