libkazv
|
#include <old_sync.hpp>
Public Member Functions | |
JobResponse (Response r) | |
bool | success () const |
std::string | end () const |
A token which correlates to the end of the timelines returned. More... | |
EventList | presence () const |
A list of presence events. More... | |
immer::array< RoomInfo > | rooms () const |
This returns the full state for this user, with an optional limit on the number of messages per room to return. More... | |
EventList | accountData () const |
The global private data created by this user. More... | |
Public Member Functions inherited from Kazv::Response | |
std::string | errorCode () const |
std::string | errorMessage () const |
JsonWrap | jsonBody () const |
constexpr bool | success () const |
json | dataJson (const std::string &key) const |
std::string | dataStr (const std::string &key) const |
std::string | jobId () const |
Additional Inherited Members | |
Public Types inherited from Kazv::Response | |
using | StatusCode = int |
Public Attributes inherited from Kazv::Response | |
StatusCode | statusCode |
Body | body |
Header | header |
JsonWrap | extraData |
Kazv::Api::InitialSyncJob::JobResponse::JobResponse | ( | Response | r | ) |
EventList Kazv::Api::InitialSyncResponse::accountData | ( | ) | const |
The global private data created by this user.
std::string Kazv::Api::InitialSyncResponse::end | ( | ) | const |
A token which correlates to the end of the timelines returned.
This token should be used with the /events
endpoint to listen for new events.
EventList Kazv::Api::InitialSyncResponse::presence | ( | ) | const |
A list of presence events.
immer::array< InitialSyncJob::RoomInfo > Kazv::Api::InitialSyncResponse::rooms | ( | ) | const |
This returns the full state for this user, with an optional limit on the number of messages per room to return.
This endpoint was deprecated in r0 of this specification. Clients should instead call the /sync
endpoint with no since
parameter. See the migration guide.
bool Kazv::Api::InitialSyncResponse::success | ( | ) | const |