|
phaser-server
0.0.5
|
Response with an optional text message. More...
#include <response.h>


Public Member Functions | |
| TextResponse (Response_t, const char *=0, const char *=0) | |
| Construct an instance. More... | |
Public Member Functions inherited from JsonResponse | |
| JsonResponse (Response_t type) | |
| Construct with the outcome enumeration. | |
| std::string | operator() (void) |
| Get the JSON encoded response string. | |
Protected Member Functions | |
| virtual void | Create (JSONObject &) override |
| Add the optional text message if one was provided. More... | |
Additional Inherited Members | |
Public Types inherited from JsonResponse | |
| enum class | Response_t { R_ok , R_warning , R_error } |
| Status of processed request. | |
Response with an optional text message.
| TextResponse::TextResponse | ( | Response_t | type, |
| const char * | text = 0, |
||
| const char * | label = 0 |
||
| ) |
Construct an instance.
| type | - Outcome enumeration. |
| text | - Optional text message (can be null). |
| label | - Label to use with the message (can be null). |
|
overrideprotectedvirtual |
Add the optional text message if one was provided.
| root | - Collection of JSON objects to update. |
Implements JsonResponse.