Go to the documentation of this file.
21 class GetEventContextJob :
public BaseJob {
39 std::optional<std::string>
start()
const;
43 std::optional<std::string>
end()
const;
93 , std::string _accessToken
95 std::string roomId , std::string eventId , std::optional<int> limit = std::nullopt, std::optional<std::string> filter = std::nullopt
100 std::optional<int> limit, std::optional<std::string> filter);
102 static BaseJob::Body buildBody(std::string roomId, std::string eventId, std::optional<int> limit, std::optional<std::string> filter);
115 using namespace Kazv;
EventList eventsAfter() const
A list of room events that happened just after the requested event, in chronological order.
Definition: event_context.cpp:129
EventList state() const
The state of the room at the last event returned.
Definition: event_context.cpp:140
JsonWrap event() const
Details of the requested event.
Definition: event_context.cpp:118
std::optional< std::string > end() const
A token that can be used to paginate forwards with.
Definition: event_context.cpp:96
Definition: location.hpp:26
static BaseJob::Body buildBody(std::string roomId, std::string eventId, std::optional< int > limit, std::optional< std::string > filter)
Definition: event_context.cpp:26
EventList eventsBefore() const
A list of room events that happened just before the requested event, in reverse-chronological order.
Definition: event_context.cpp:107
Definition: location.hpp:10
Definition: basejob.hpp:90
std::optional< std::string > start() const
A token that can be used to paginate backwards with.
Definition: event_context.cpp:85
bool success() const
Definition: event_context.cpp:75
static BaseJob::Query buildQuery(std::optional< int > limit, std::optional< std::string > filter)
Definition: event_context.cpp:15
Definition: location.hpp:10
Get events and state around the specified event.
Definition: event_context.hpp:23
JobResponse(Response r)
Definition: event_context.cpp:72
Definition: event_context.hpp:30
GetEventContextJob(std::string serverUrl, std::string _accessToken, std::string roomId, std::string eventId, std::optional< int > limit=std::nullopt, std::optional< std::string > filter=std::nullopt)
Get events and state around the specified event.
Definition: event_context.cpp:38
static constexpr auto needsAuth()
Definition: event_context.hpp:68
Definition: jsonwrap.hpp:22
::Kazv::Body Body
Definition: basejob.hpp:100
immer::flex_vector< Event > EventList
Definition: types.hpp:107
GetEventContextJob withData(JsonWrap j) &&
Definition: event_context.cpp:58
Definition: basejob.hpp:50