aboutsummaryrefslogtreecommitdiff
path: root/lib/identity/definitions/sid.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/identity/definitions/sid.h')
-rw-r--r--lib/identity/definitions/sid.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/identity/definitions/sid.h b/lib/identity/definitions/sid.h
new file mode 100644
index 00000000..eae60c47
--- /dev/null
+++ b/lib/identity/definitions/sid.h
@@ -0,0 +1,30 @@
+/******************************************************************************
+ * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
+ */
+
+#pragma once
+
+#include "converters.h"
+
+
+namespace QMatrixClient
+{
+ // Data structures
+
+ struct Sid
+ {
+ /// The session ID. Session IDs are opaque strings generated by the identity
+ /// server. They must consist entirely of the characters
+ /// ``[0-9a-zA-Z.=_-]``. Their length must not exceed 255 characters and they
+ /// must not be empty.
+ QString sid;
+ };
+
+ QJsonObject toJson(const Sid& pod);
+
+ template <> struct FromJsonObject<Sid>
+ {
+ Sid operator()(const QJsonObject& jo) const;
+ };
+
+} // namespace QMatrixClient