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);
Definition: peeking_events.hpp:31
EventList chunk() const
An array of events.
Definition: peeking_events.cpp:107
std::optional< std::string > end() const
A token which correlates to the last value in chunk.
Definition: peeking_events.cpp:96
bool success() const
Definition: peeking_events.cpp:75
std::optional< std::string > start() const
A token which correlates to the first value in chunk.
Definition: peeking_events.cpp:85
JobResponse(Response r)
Definition: peeking_events.cpp:72
Listen on the event stream of a particular room.
Definition: peeking_events.hpp:25
static constexpr auto needsAuth()
Definition: peeking_events.hpp:56
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:38
static BaseJob::Query buildQuery(std::optional< std::string > from, std::optional< int > timeout, std::optional< std::string > roomId)
Definition: peeking_events.cpp:13
static BaseJob::Body buildBody(std::optional< std::string > from, std::optional< int > timeout, std::optional< std::string > roomId)
Definition: peeking_events.cpp:26
PeekEventsJob withData(JsonWrap j) &&
Definition: peeking_events.cpp:58
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