aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/{{base}}.h.mustache
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/{{base}}.h.mustache')
-rw-r--r--lib/csapi/{{base}}.h.mustache8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/csapi/{{base}}.h.mustache b/lib/csapi/{{base}}.h.mustache
index 2eb2c656..6f08e871 100644
--- a/lib/csapi/{{base}}.h.mustache
+++ b/lib/csapi/{{base}}.h.mustache
@@ -14,7 +14,9 @@ namespace QMatrixClient
struct {{name}}{{#parents?}} : {{#parents}}{{name}}{{#@join}}, {{/@join}}{{/parents}}{{/parents?}}
{
{{#vars}} {{dataType.name}} {{nameCamelCase}};
-{{/vars}} };
+{{/vars}}{{#in?}}
+ bool omitted;
+{{/in?}} };
{{#in?}}
QJsonObject toJson(const {{name}}& pod);
{{/in?}}{{#out?}}
@@ -33,7 +35,9 @@ namespace QMatrixClient
struct {{name}}{{#parents?}} : {{#parents}}{{name}}{{#@join}}, {{/@join}}{{/parents}}{{/parents?}}
{
{{#vars}} {{dataType.name}} {{nameCamelCase}};
-{{/vars}} };
+{{/vars}}{{#in?}}
+ bool omitted;
+{{/in?}} };
{{/ model}}
// Construction/destruction
{{/ models}}