Go to the documentation of this file.
20 class GetRoomEventsJob :
public BaseJob {
39 std::string
start()
const;
49 std::optional<std::string>
end()
const;
118 , std::string _accessToken
120 std::string roomId , std::string dir , std::optional<std::string> from = std::nullopt, std::optional<std::string> to = std::nullopt, std::optional<int> limit = std::nullopt, std::optional<std::string> filter = std::nullopt
125 std::optional<std::string> from, std::optional<std::string> to, std::string dir, std::optional<int> limit, std::optional<std::string> filter);
127 static BaseJob::Body buildBody(std::string roomId, std::string dir, std::optional<std::string> from, std::optional<std::string> to, std::optional<int> limit, std::optional<std::string> filter);
140 using namespace Kazv;
static constexpr auto needsAuth()
Definition: message_pagination.hpp:78
static BaseJob::Query buildQuery(std::optional< std::string > from, std::optional< std::string > to, std::string dir, std::optional< int > limit, std::optional< std::string > filter)
Definition: message_pagination.cpp:15
Definition: location.hpp:26
EventList chunk() const
A list of room events.
Definition: message_pagination.cpp:115
Definition: location.hpp:10
std::string start() const
A token corresponding to the start of chunk.
Definition: message_pagination.cpp:93
Definition: basejob.hpp:90
Definition: location.hpp:10
GetRoomEventsJob(std::string serverUrl, std::string _accessToken, std::string roomId, std::string dir, std::optional< std::string > from=std::nullopt, std::optional< std::string > to=std::nullopt, std::optional< int > limit=std::nullopt, std::optional< std::string > filter=std::nullopt)
Get a list of events for this room.
Definition: message_pagination.cpp:44
Definition: jsonwrap.hpp:22
GetRoomEventsJob withData(JsonWrap j) &&
Definition: message_pagination.cpp:64
std::optional< std::string > end() const
A token corresponding to the end of chunk.
Definition: message_pagination.cpp:104
static BaseJob::Body buildBody(std::string roomId, std::string dir, std::optional< std::string > from, std::optional< std::string > to, std::optional< int > limit, std::optional< std::string > filter)
Definition: message_pagination.cpp:32
EventList state() const
A list of state events relevant to showing the chunk.
Definition: message_pagination.cpp:126
::Kazv::Body Body
Definition: basejob.hpp:100
Get a list of events for this room.
Definition: message_pagination.hpp:22
bool success() const
Definition: message_pagination.cpp:81
Definition: message_pagination.hpp:29
immer::flex_vector< Event > EventList
Definition: types.hpp:107
JobResponse(Response r)
Definition: message_pagination.cpp:78
Definition: basejob.hpp:50