libkazv
Kazv::Api::GetPresenceJob::JobResponse Class Reference

#include <presence.hpp>

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

Public Member Functions

 JobResponse (Response r)
 
bool success () const
 
std::string presence () const
 This user's presence. More...
 
std::optional< int > lastActiveAgo () const
 The length of time in milliseconds since an action was performed by this user. More...
 
Variant statusMsg () const
 The state message for this user if one was set. More...
 
std::optional< bool > currentlyActive () const
 Whether the user is currently active. 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::GetPresenceJob::JobResponse::JobResponse ( Response  r)

Member Function Documentation

◆ currentlyActive()

std::optional< bool > Kazv::Api::GetPresenceResponse::currentlyActive ( ) const

Whether the user is currently active.

◆ lastActiveAgo()

std::optional< int > Kazv::Api::GetPresenceResponse::lastActiveAgo ( ) const

The length of time in milliseconds since an action was performed by this user.

◆ presence()

std::string Kazv::Api::GetPresenceResponse::presence ( ) const

This user's presence.

◆ statusMsg()

Variant Kazv::Api::GetPresenceResponse::statusMsg ( ) const

The state message for this user if one was set.

◆ success()

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

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