libkazv
|
#include <content-repo.hpp>
Public Member Functions | |
JobResponse (Response r) | |
bool | success () const |
std::optional< std::int_fast64_t > | matrixImageSize () const |
The byte-size of the image. Omitted if there is no image attached. More... | |
std::optional< std::string > | ogImage () const |
An MXC URI to the image. Omitted if there is no image. 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::GetUrlPreviewJob::JobResponse::JobResponse | ( | Response | r | ) |
std::optional< std::int_fast64_t > Kazv::Api::GetUrlPreviewResponse::matrixImageSize | ( | ) | const |
The byte-size of the image. Omitted if there is no image attached.
std::optional< std::string > Kazv::Api::GetUrlPreviewResponse::ogImage | ( | ) | const |
An MXC URI to the image. Omitted if there is no image.
bool Kazv::Api::GetUrlPreviewResponse::success | ( | ) | const |