diff options
Diffstat (limited to 'lib/csapi/list_public_rooms.h')
-rw-r--r-- | lib/csapi/list_public_rooms.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/csapi/list_public_rooms.h b/lib/csapi/list_public_rooms.h index 701a74f6..e1f03db7 100644 --- a/lib/csapi/list_public_rooms.h +++ b/lib/csapi/list_public_rooms.h @@ -4,7 +4,7 @@ #pragma once -#include "csapi/definitions/public_rooms_chunk.h" +#include "csapi/definitions/public_rooms_response.h" #include "jobs/basejob.h" @@ -103,9 +103,9 @@ public: // Result properties /// A paginated chunk of public rooms. - QVector<QJsonObject> chunk() const + QVector<PublicRoomsChunk> chunk() const { - return loadFromJson<QVector<QJsonObject>>("chunk"_ls); + return loadFromJson<QVector<PublicRoomsChunk>>("chunk"_ls); } /// A pagination token for the response. The absence of this token @@ -182,9 +182,9 @@ public: // Result properties /// A paginated chunk of public rooms. - QVector<QJsonObject> chunk() const + QVector<PublicRoomsChunk> chunk() const { - return loadFromJson<QVector<QJsonObject>>("chunk"_ls); + return loadFromJson<QVector<PublicRoomsChunk>>("chunk"_ls); } /// A pagination token for the response. The absence of this token |