libQuotient
A Qt library for building matrix clients
Loading...
Searching...
No Matches
location.h
Go to the documentation of this file.
1// THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
2
3#pragma once
4
5#include <Quotient/converters.h>
6
7namespace Quotient {
8
10 //! An alias for a matrix room.
12
13 //! The protocol ID that the third-party location is a part of.
15
16 //! Information used to identify this third-party location.
18};
19
20template <>
21struct JsonObjectConverter<ThirdPartyLocation> {
22 static void dumpTo(QJsonObject& jo, const ThirdPartyLocation& pod)
23 {
24 addParam(jo, "alias"_L1, pod.alias);
25 addParam(jo, "protocol"_L1, pod.protocol);
26 addParam(jo, "fields"_L1, pod.fields);
27 }
28 static void fillFrom(const QJsonObject& jo, ThirdPartyLocation& pod)
29 {
30 fillFromJson(jo.value("alias"_L1), pod.alias);
31 fillFromJson(jo.value("protocol"_L1), pod.protocol);
32 fillFromJson(jo.value("fields"_L1), pod.fields);
33 }
34};
35
36} // namespace Quotient
#define QUOTIENT_API
QString protocol
The protocol ID that the third-party location is a part of.
Definition location.h:14
QJsonObject fields
Information used to identify this third-party location.
Definition location.h:17