libkazv
Kazv::Api::GetContentJob::JobResponse Class Reference

#include <content-repo.hpp>

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

Public Member Functions

 JobResponse (Response r)
 
bool success () const
 
std::optional< std::string > contentType () const
 The content type of the file that was previously uploaded. More...
 
std::optional< std::string > contentDisposition () const
 The name of the file that was previously uploaded, if set. More...
 
Body data () const
 The content that was previously uploaded. 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::GetContentJob::JobResponse::JobResponse ( Response  r)

Member Function Documentation

◆ contentDisposition()

std::optional<std::string> Kazv::Api::GetContentJob::JobResponse::contentDisposition ( ) const
inline

The name of the file that was previously uploaded, if set.

◆ contentType()

std::optional<std::string> Kazv::Api::GetContentJob::JobResponse::contentType ( ) const
inline

The content type of the file that was previously uploaded.

◆ data()

Body Kazv::Api::GetContentJob::JobResponse::data ( ) const
inline

The content that was previously uploaded.

◆ success()

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

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