diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-07-18 18:42:02 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-07-18 18:42:02 +0900 |
commit | f3a251404c00787b650e618fb5c257162507c18b (patch) | |
tree | a801eb5f444a8b2b3f8d93d2b64e22785bbf3f97 /lib/application-service/definitions/location.h | |
parent | 5e6b4bb975fa9697a6aca001629c65db506a437f (diff) | |
download | libquotient-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.h | 33 |
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 |