libkazv
Kazv::Api::SyncJob::JobResponse Class Reference

#include <sync.hpp>

Inheritance diagram for Kazv::Api::SyncJob::JobResponse:
Collaboration diagram for Kazv::Api::SyncJob::JobResponse:

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< Roomsrooms () const
 Updates to rooms. More...
 
std::optional< EventBatchpresence () const
 The updates to the presence status of other users. More...
 
std::optional< EventBatchaccountData () 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
 

Constructor & Destructor Documentation

◆ JobResponse()

Kazv::Api::SyncJob::JobResponse::JobResponse ( Response  r)

Member Function Documentation

◆ accountData()

std::optional< EventBatch > Kazv::Api::SyncResponse::accountData ( ) const

The global private data created by this user.

◆ deviceLists()

JsonWrap Kazv::Api::SyncResponse::deviceLists ( ) const

Information on end-to-end device updates, as specified in End-to-end encryption.

◆ deviceOneTimeKeysCount()

immer::map< std::string, int > Kazv::Api::SyncResponse::deviceOneTimeKeysCount ( ) const

Information on end-to-end encryption keys, as specified in End-to-end encryption.

◆ nextBatch()

std::string Kazv::Api::SyncResponse::nextBatch ( ) const

The batch token to supply in the since param of the next /sync request.

◆ presence()

std::optional< EventBatch > Kazv::Api::SyncResponse::presence ( ) const

The updates to the presence status of other users.

◆ rooms()

std::optional< SyncJob::Rooms > Kazv::Api::SyncResponse::rooms ( ) const

Updates to rooms.

◆ success()

bool Kazv::Api::SyncResponse::success ( ) const

◆ toDevice()

JsonWrap Kazv::Api::SyncResponse::toDevice ( ) const

Information on the send-to-device messages for the client device, as defined in Send-to-Device messaging.


The documentation for this class was generated from the following files: