libkazv
|
#include <sync.hpp>
Public Member Functions | |
JobResponse (Response r) | |
bool | success () const |
std::string | nextBatch () const |
The batch token to supply in the since param of the next /sync request. More... | |
std::optional< Rooms > | rooms () const |
Updates to rooms. More... | |
std::optional< EventBatch > | presence () const |
The updates to the presence status of other users. More... | |
std::optional< EventBatch > | accountData () const |
The global private data created by this user. More... | |
JsonWrap | toDevice () const |
Information on the send-to-device messages for the client device, as defined in Send-to-Device messaging. More... | |
JsonWrap | deviceLists () const |
Information on end-to-end device updates, as specified in End-to-end encryption. More... | |
immer::map< std::string, int > | deviceOneTimeKeysCount () const |
Information on end-to-end encryption keys, as specified in End-to-end encryption. 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::SyncJob::JobResponse::JobResponse | ( | Response | r | ) |
std::optional< EventBatch > Kazv::Api::SyncResponse::accountData | ( | ) | const |
The global private data created by this user.
JsonWrap Kazv::Api::SyncResponse::deviceLists | ( | ) | const |
Information on end-to-end device updates, as specified in End-to-end encryption.
immer::map< std::string, int > Kazv::Api::SyncResponse::deviceOneTimeKeysCount | ( | ) | const |
Information on end-to-end encryption keys, as specified in End-to-end encryption.
std::string Kazv::Api::SyncResponse::nextBatch | ( | ) | const |
The batch token to supply in the since
param of the next /sync
request.
std::optional< EventBatch > Kazv::Api::SyncResponse::presence | ( | ) | const |
The updates to the presence status of other users.
std::optional< SyncJob::Rooms > Kazv::Api::SyncResponse::rooms | ( | ) | const |
Updates to rooms.
bool Kazv::Api::SyncResponse::success | ( | ) | const |
JsonWrap Kazv::Api::SyncResponse::toDevice | ( | ) | const |
Information on the send-to-device messages for the client device, as defined in Send-to-Device messaging.