![]() |
CloudBuilder C++ SDK
v3.0.0
Making social games is easy !
|
#include <CDelegate.h>
Public Member Functions | |
| eErrorCode | GetErrorCode () const |
| const char * | GetErrorString () const |
| int | GetHttpStatusCode () const |
| int | GetCurlErrorCode () const |
| CotCHelpers::cstring | GetJSONString () const |
| const CotCHelpers::CHJSON * | GetJSON () const |
| bool | HasBinary () const |
| size_t | BinarySize () const |
| const void * | BinaryPtr () const |
| bool | IsObsolete () const |
| CCloudResult * | Duplicate () const |
| CCloudResult () | |
| CCloudResult (eErrorCode err) | |
| CCloudResult (eErrorCode err, const char *message) | |
| CCloudResult (eErrorCode err, CotCHelpers::CHJSON *ajson) | |
| CCloudResult (CotCHelpers::CHJSON *ajson) | |
| void | SetErrorCode (eErrorCode err) |
| void | SetCurlErrorCode (int err) |
| void | SetHttpStatusCode (int err) |
| void | SetBinary (void *buffer, size_t size) |
| void | SetObsolete (bool obsolete) |
| CotCHelpers::cstring | Print () const |
Used to manage the data returned by a callback. Typically a result always has an Error Code and usually a JSON struct if the request returns data, but it can be NULL in case of error.
| CloudBuilder::CCloudResult::CCloudResult | ( | ) |
You shouldn't need these
| CCloudResult* CloudBuilder::CCloudResult::Duplicate | ( | ) | const |
| eErrorCode CloudBuilder::CCloudResult::GetErrorCode | ( | ) | const |
The error code of the called method; see enum eErrorCode for more details
| const char* CloudBuilder::CCloudResult::GetErrorString | ( | ) | const |
The error message of the called method; see enum eErrorCode for more details
| int CloudBuilder::CCloudResult::GetHttpStatusCode | ( | ) | const |
For an HTTP request, returns the HTTP code (may be 0 in case the request failed).
| const CotCHelpers::CHJSON* CloudBuilder::CCloudResult::GetJSON | ( | ) | const |
Returns the JSON value associated to "result" key, which holds data pertaining to the original request; see CHJSON for more informations; can be NULL.
| CotCHelpers::cstring CloudBuilder::CCloudResult::GetJSONString | ( | ) | const |
Returns a string which reflects the content of the JSON class.
| CotCHelpers::cstring CloudBuilder::CCloudResult::Print | ( | ) | const |
Offers a pretty-printed view of this result, including the JSON inside when available.
1.8.15