From f3a251404c00787b650e618fb5c257162507c18b Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Wed, 18 Jul 2018 18:42:02 +0900 Subject: csapi: third_party_lookup.* and its dependencies in application-service/ As per the latest API definitions. --- lib/application-service/definitions/location.h | 33 ++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 lib/application-service/definitions/location.h (limited to 'lib/application-service/definitions/location.h') 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 + +#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 operator()(const QJsonValue& jv); + }; + +} // namespace QMatrixClient -- cgit v1.2.3