|
libkazv
|
#include <presence.hpp>


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