libkazv
Kazv::Api::GetUserProfileJob::JobResponse Class Reference

#include <profile.hpp>

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

Public Member Functions

 JobResponse (Response r)
 
bool success () const
 
std::optional< std::string > avatarUrl () const
 The user's avatar URL if they have set one, otherwise not present. More...
 
std::optional< std::string > displayname () const
 The user's display name if they have set one, otherwise not present. 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::GetUserProfileJob::JobResponse::JobResponse ( Response  r)

Member Function Documentation

◆ avatarUrl()

std::optional< std::string > Kazv::Api::GetUserProfileResponse::avatarUrl ( ) const

The user's avatar URL if they have set one, otherwise not present.

◆ displayname()

std::optional< std::string > Kazv::Api::GetUserProfileResponse::displayname ( ) const

The user's display name if they have set one, otherwise not present.

◆ success()

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

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