libkazv
Kazv::Api::InitialSyncJob::JobResponse Class Reference

#include <old_sync.hpp>

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

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< RoomInforooms () 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
 

Constructor & Destructor Documentation

◆ JobResponse()

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

Member Function Documentation

◆ accountData()

EventList Kazv::Api::InitialSyncResponse::accountData ( ) const

The global private data created by this user.

◆ end()

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.

◆ presence()

EventList Kazv::Api::InitialSyncResponse::presence ( ) const

A list of presence events.

◆ rooms()

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.

◆ success()

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

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