34 const std::shared_ptr<CesiumAsync::IAssetRequest>& pRequest,
Classes that support asynchronous operations.
Classes for working with Cesium ion clients.
A non-value, for use with a valueless Response.
A response from Cesium ion.
std::optional< T > value
The response value, or std::nullopt if the response was unsuccessful.
Response(T &&value, uint16_t httpStatusCode, const std::string &errorCode, const std::string &errorMessage)
Creates a Response from a response value, status code, and error information.
std::string errorCode
The error code, or empty string if there was no error.
Response(const std::shared_ptr< CesiumAsync::IAssetRequest > &pRequest, T &&value)
Creates a Response from a completed request and a response value.
uint16_t httpStatusCode
The HTTP status code returned by Cesium ion.
Response(uint16_t httpStatusCode, const std::string &errorCode, const std::string &errorMessage)
Creates a Response with no value, a status code, and error information.
std::optional< std::string > previousPageUrl
The URL to use to obtain the previous page of results, if there is one.
std::string errorMessage
The error message returned, or an empty string if there was no error.
std::optional< std::string > nextPageUrl
The URL to use to obtain the next page of results, if there is a next page.
Response()
Creates a new empty Response.