aboutsummaryrefslogtreecommitdiff
path: root/lib/application-service/definitions/location.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-07-18 18:42:02 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-07-18 18:42:02 +0900
commitf3a251404c00787b650e618fb5c257162507c18b (patch)
treea801eb5f444a8b2b3f8d93d2b64e22785bbf3f97 /lib/application-service/definitions/location.h
parent5e6b4bb975fa9697a6aca001629c65db506a437f (diff)
downloadlibquotient-f3a251404c00787b650e618fb5c257162507c18b.tar.gz
libquotient-f3a251404c00787b650e618fb5c257162507c18b.zip
csapi: third_party_lookup.* and its dependencies in application-service/
As per the latest API definitions.
Diffstat (limited to 'lib/application-service/definitions/location.h')
-rw-r--r--lib/application-service/definitions/location.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/application-service/definitions/location.h b/lib/application-service/definitions/location.h
new file mode 100644
index 00000000..af407a1a
--- /dev/null
+++ b/lib/application-service/definitions/location.h
@@ -0,0 +1,33 @@
+/******************************************************************************
+ * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
+ */
+
+#pragma once
+
+
+#include <QtCore/QJsonObject>
+
+#include "converters.h"
+
+namespace QMatrixClient
+{
+ // Data structures
+
+ struct Location
+ {
+ /// An alias for a matrix room.
+ QString alias;
+ /// The protocol ID that the third party location is a part of.
+ QString protocol;
+ /// Information used to identify this third party location.
+ QJsonObject fields;
+ };
+
+ QJsonObject toJson(const Location& pod);
+
+ template <> struct FromJson<Location>
+ {
+ Location operator()(const QJsonValue& jv);
+ };
+
+} // namespace QMatrixClient