aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/definitions/client_device.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/definitions/client_device.cpp')
-rw-r--r--lib/csapi/definitions/client_device.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/csapi/definitions/client_device.cpp b/lib/csapi/definitions/client_device.cpp
index 60b3617c..7c3d7ea6 100644
--- a/lib/csapi/definitions/client_device.cpp
+++ b/lib/csapi/definitions/client_device.cpp
@@ -9,10 +9,10 @@ using namespace QMatrixClient;
QJsonObject QMatrixClient::toJson(const Device& pod)
{
QJsonObject _json;
- addToJson<>(_json, "device_id", pod.deviceId);
- addToJson<IfNotEmpty>(_json, "display_name", pod.displayName);
- addToJson<IfNotEmpty>(_json, "last_seen_ip", pod.lastSeenIp);
- addToJson<IfNotEmpty>(_json, "last_seen_ts", pod.lastSeenTs);
+ addParam<>(_json, "device_id", pod.deviceId);
+ addParam<IfNotEmpty>(_json, "display_name", pod.displayName);
+ addParam<IfNotEmpty>(_json, "last_seen_ip", pod.lastSeenIp);
+ addParam<IfNotEmpty>(_json, "last_seen_ts", pod.lastSeenTs);
return _json;
}