Go to the documentation of this file.
25 class PeekEventsJob :
public BaseJob {
44 std::optional<std::string>
start()
const;
49 std::optional<std::string>
end()
const;
77 , std::string _accessToken
79 std::optional<std::string> from = std::nullopt, std::optional<int> timeout = std::nullopt, std::optional<std::string> roomId = std::nullopt
84 std::optional<std::string> from, std::optional<int> timeout, std::optional<std::string> roomId);
86 static BaseJob::Body buildBody(std::optional<std::string> from, std::optional<int> timeout, std::optional<std::string> roomId);
static constexpr auto needsAuth()
Definition: peeking_events.hpp:60
EventList chunk() const
An array of events.
Definition: peeking_events.cpp:109
static BaseJob::Body buildBody(std::optional< std::string > from, std::optional< int > timeout, std::optional< std::string > roomId)
Definition: peeking_events.cpp:28
Listen on the event stream of a particular room.
Definition: peeking_events.hpp:27
Definition: location.hpp:26
PeekEventsJob withData(JsonWrap j) &&
Definition: peeking_events.cpp:60
Definition: location.hpp:10
Definition: basejob.hpp:90
JobResponse(Response r)
Definition: peeking_events.cpp:74
Definition: location.hpp:10
Definition: jsonwrap.hpp:22
std::optional< std::string > end() const
A token which correlates to the last value in chunk.
Definition: peeking_events.cpp:98
std::optional< std::string > start() const
A token which correlates to the first value in chunk.
Definition: peeking_events.cpp:87
bool success() const
Definition: peeking_events.cpp:77
::Kazv::Body Body
Definition: basejob.hpp:100
static BaseJob::Query buildQuery(std::optional< std::string > from, std::optional< int > timeout, std::optional< std::string > roomId)
Definition: peeking_events.cpp:15
PeekEventsJob(std::string serverUrl, std::string _accessToken, std::optional< std::string > from=std::nullopt, std::optional< int > timeout=std::nullopt, std::optional< std::string > roomId=std::nullopt)
Listen on the event stream of a particular room.
Definition: peeking_events.cpp:40
immer::flex_vector< Event > EventList
Definition: types.hpp:107
Definition: peeking_events.hpp:34
Definition: basejob.hpp:50