aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/definitions/public_rooms_response.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/definitions/public_rooms_response.h')
-rw-r--r--lib/csapi/definitions/public_rooms_response.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/csapi/definitions/public_rooms_response.h b/lib/csapi/definitions/public_rooms_response.h
index eea4bc5e..88c805ba 100644
--- a/lib/csapi/definitions/public_rooms_response.h
+++ b/lib/csapi/definitions/public_rooms_response.h
@@ -22,7 +22,7 @@ namespace QMatrixClient
/// The name of the room, if any.
QString name;
/// The number of members joined to the room.
- qint64 numJoinedMembers;
+ int numJoinedMembers;
/// The ID of the room.
QString roomId;
/// The topic of the room, if any.
@@ -39,9 +39,9 @@ namespace QMatrixClient
QJsonObject toJson(const PublicRoomsChunk& pod);
- template <> struct FromJson<PublicRoomsChunk>
+ template <> struct FromJsonObject<PublicRoomsChunk>
{
- PublicRoomsChunk operator()(const QJsonValue& jv);
+ PublicRoomsChunk operator()(const QJsonObject& jo) const;
};
/// A list of the rooms on the server.
@@ -59,14 +59,14 @@ namespace QMatrixClient
QString prevBatch;
/// An estimate on the total number of public rooms, if the
/// server has an estimate.
- Omittable<qint64> totalRoomCountEstimate;
+ Omittable<int> totalRoomCountEstimate;
};
QJsonObject toJson(const PublicRoomsResponse& pod);
- template <> struct FromJson<PublicRoomsResponse>
+ template <> struct FromJsonObject<PublicRoomsResponse>
{
- PublicRoomsResponse operator()(const QJsonValue& jv);
+ PublicRoomsResponse operator()(const QJsonObject& jo) const;
};
} // namespace QMatrixClient