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;
Definition: message_pagination.hpp:26
std::optional< std::string > end() const
A token corresponding to the end of chunk.
Definition: message_pagination.cpp:102
EventList state() const
A list of state events relevant to showing the chunk.
Definition: message_pagination.cpp:124
JobResponse(Response r)
Definition: message_pagination.cpp:76
bool success() const
Definition: message_pagination.cpp:79
std::string start() const
A token corresponding to the start of chunk.
Definition: message_pagination.cpp:91
EventList chunk() const
A list of room events.
Definition: message_pagination.cpp:113
Get a list of events for this room.
Definition: message_pagination.hpp:20
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:13
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:42
static constexpr auto needsAuth()
Definition: message_pagination.hpp:74
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:30
GetRoomEventsJob withData(JsonWrap j) &&
Definition: message_pagination.cpp:62
Definition: basejob.hpp:91
Definition: basejob.hpp:77
::Kazv::Body Body
Definition: basejob.hpp:100
Definition: jsonwrap.hpp:23
Definition: location.hpp:10
Definition: location.hpp:10
immer::flex_vector< Event > EventList
Definition: types.hpp:107
Definition: location.hpp:27
Definition: basejob.hpp:50