libQuotient
A Qt library for building matrix clients
Loading...
Searching...
No Matches
push_ruleset.h
Go to the documentation of this file.
1// THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
2
3#pragma once
4
5#include <Quotient/csapi/definitions/push_rule.h>
6
7#include <Quotient/converters.h>
8
9namespace Quotient {
10
13
15
17
19
21};
22
23template <>
25 static void dumpTo(QJsonObject& jo, const PushRuleset& pod)
26 {
27 addParam<IfNotEmpty>(jo, "content"_L1, pod.content);
28 addParam<IfNotEmpty>(jo, "override"_L1, pod.override);
29 addParam<IfNotEmpty>(jo, "room"_L1, pod.room);
30 addParam<IfNotEmpty>(jo, "sender"_L1, pod.sender);
31 addParam<IfNotEmpty>(jo, "underride"_L1, pod.underride);
32 }
33 static void fillFrom(const QJsonObject& jo, PushRuleset& pod)
34 {
35 fillFromJson(jo.value("content"_L1), pod.content);
36 fillFromJson(jo.value("override"_L1), pod.override);
37 fillFromJson(jo.value("room"_L1), pod.room);
38 fillFromJson(jo.value("sender"_L1), pod.sender);
39 fillFromJson(jo.value("underride"_L1), pod.underride);
40 }
41};
42
43} // namespace Quotient
#define QUOTIENT_API