libkazv
Kazv::Api::RefreshJob::JobResponse Class Reference

#include <refresh.hpp>

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

Public Member Functions

 JobResponse (Response r)
 
bool success () const
 
std::string accessToken () const
 The new access token to use. More...
 
std::optional< std::string > refreshToken () const
 The new refresh token to use when the access token needs to be refreshed again. More...
 
std::optional< int > expiresInMs () const
 The lifetime of the access token, in milliseconds. 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::RefreshJob::JobResponse::JobResponse ( Response  r)

Member Function Documentation

◆ accessToken()

std::string Kazv::Api::RefreshResponse::accessToken ( ) const

The new access token to use.

◆ expiresInMs()

std::optional< int > Kazv::Api::RefreshResponse::expiresInMs ( ) const

The lifetime of the access token, in milliseconds.

If not given, the client can assume that the access token will not expire.

◆ refreshToken()

std::optional< std::string > Kazv::Api::RefreshResponse::refreshToken ( ) const

The new refresh token to use when the access token needs to be refreshed again.

If not given, the old refresh token can be re-used.

◆ success()

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

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