diff options
Diffstat (limited to 'lib/application-service/definitions/user.cpp')
-rw-r--r-- | lib/application-service/definitions/user.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/application-service/definitions/user.cpp b/lib/application-service/definitions/user.cpp index 8ba92321..0f3c3130 100644 --- a/lib/application-service/definitions/user.cpp +++ b/lib/application-service/definitions/user.cpp @@ -6,19 +6,18 @@ using namespace QMatrixClient; -void JsonObjectConverter<ThirdPartyUser>::dumpTo( - QJsonObject& jo, const ThirdPartyUser& pod) +void JsonObjectConverter<ThirdPartyUser>::dumpTo(QJsonObject& jo, + const ThirdPartyUser& pod) { addParam<>(jo, QStringLiteral("userid"), pod.userid); addParam<>(jo, QStringLiteral("protocol"), pod.protocol); addParam<>(jo, QStringLiteral("fields"), pod.fields); } -void JsonObjectConverter<ThirdPartyUser>::fillFrom( - const QJsonObject& jo, ThirdPartyUser& result) +void JsonObjectConverter<ThirdPartyUser>::fillFrom(const QJsonObject& jo, + ThirdPartyUser& result) { fromJson(jo.value("userid"_ls), result.userid); fromJson(jo.value("protocol"_ls), result.protocol); fromJson(jo.value("fields"_ls), result.fields); } - |