libkazv
Kazv::Api::UploadKeysJob::JobResponse Class Reference

#include <keys.hpp>

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

Public Member Functions

 JobResponse (Response r)
 
bool success () const
 
immer::map< std::string, int > oneTimeKeyCounts () const
 For each key algorithm, the number of unclaimed one-time keys of that type currently held on the server for this device. 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::UploadKeysJob::JobResponse::JobResponse ( Response  r)

Member Function Documentation

◆ oneTimeKeyCounts()

immer::map< std::string, int > Kazv::Api::UploadKeysResponse::oneTimeKeyCounts ( ) const

For each key algorithm, the number of unclaimed one-time keys of that type currently held on the server for this device.

If an algorithm is not listed, the count for that algorithm is to be assumed zero.

◆ success()

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

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