diff options
Diffstat (limited to 'lib/csapi/list_public_rooms.h')
-rw-r--r-- | lib/csapi/list_public_rooms.h | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/lib/csapi/list_public_rooms.h b/lib/csapi/list_public_rooms.h index b0cb79d2..1c73c0af 100644 --- a/lib/csapi/list_public_rooms.h +++ b/lib/csapi/list_public_rooms.h @@ -111,12 +111,18 @@ public: /// A pagination token for the response. The absence of this token /// means there are no more results to fetch and the client should /// stop paginating. - QString nextBatch() const { return loadFromJson<QString>("next_batch"_ls); } + QString nextBatch() const + { + return loadFromJson<QString>("next_batch"_ls); + } /// A pagination token that allows fetching previous results. The /// absence of this token means there are no results before this /// batch, i.e. this is the first batch. - QString prevBatch() const { return loadFromJson<QString>("prev_batch"_ls); } + QString prevBatch() const + { + return loadFromJson<QString>("prev_batch"_ls); + } /// An estimate on the total number of public rooms, if the /// server has an estimate. @@ -170,7 +176,7 @@ public: * * \param thirdPartyInstanceId * The specific third party network/protocol to request from the - * homeserver. Can only be used if ``include_all_networks`` is false. + * homeserver. Can only be used if `include_all_networks` is false. */ explicit QueryPublicRoomsJob(const QString& server = {}, Omittable<int> limit = none, @@ -190,12 +196,18 @@ public: /// A pagination token for the response. The absence of this token /// means there are no more results to fetch and the client should /// stop paginating. - QString nextBatch() const { return loadFromJson<QString>("next_batch"_ls); } + QString nextBatch() const + { + return loadFromJson<QString>("next_batch"_ls); + } /// A pagination token that allows fetching previous results. The /// absence of this token means there are no results before this /// batch, i.e. this is the first batch. - QString prevBatch() const { return loadFromJson<QString>("prev_batch"_ls); } + QString prevBatch() const + { + return loadFromJson<QString>("prev_batch"_ls); + } /// An estimate on the total number of public rooms, if the /// server has an estimate. |