aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/definitions/client_device.h
blob: 4c09e13c33ce93002e10ff47f77e97c7afd95b88 (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 "converters.h"

namespace QMatrixClient
{
    // Data structures

    struct Device
    {
        QString deviceId;
        QString displayName;
        QString lastSeenIp;
        Omittable<qint64> lastSeenTs;
    };

    QJsonObject toJson(const Device& pod);

    template <> struct FromJson<Device>
    {
        Device operator()(const QJsonValue& jv);
    };

} // namespace QMatrixClient