Contains the servers response for an OperationRequest sent by this client.
◆ ~OperationResponse()
◆ OperationResponse()
Copy-Constructor: Creates a new instance that is a deep copy of the argument instance.
- Parameters
-
toCopy | The instance to copy. |
◆ operator=()
operator=.
Makes a deep copy of its right operand into its left operand.
This overwrites old data in the left operand.
◆ operator[]()
const Object & operator[] |
( |
unsigned int |
index | ) |
const |
operator[]. Accesses the value at the given index like in an array. This does not check for valid indexes and shows undefined behavior for invalid indexes.
◆ toString()
JString toString |
( |
bool |
withDebugMessage = false , |
|
|
bool |
withParameters = false , |
|
|
bool |
withParameterTypes = false |
|
) |
| const |
- Parameters
-
withDebugMessage | determines if the debug message that the server may send in case of an error should be included in the returned string |
withParameters | determines if the payload of the event should be included in the returned string |
withParameterTypes | determines if the type information should be included for the payload |
- Returns
- a JString representation of the instance for debugging purposes.
◆ getParameterForCode()
Object getParameterForCode |
( |
nByte |
parameterCode | ) |
const |
Alternative access to the Parameters.
- Parameters
-
parameterCode | The key code of an response value |
- Returns
- The parameters value, or an empty Object instance if the key does not exist in the parameters.
◆ getOperationCode()
nByte getOperationCode |
( |
void |
| ) |
const |
- Returns
- the operation code that identifies the type of the operation.
◆ getReturnCode()
short getReturnCode |
( |
void |
| ) |
const |
- Returns
- the result code of the operation, 0 in case of success, an operation specific error code otherwise.
◆ getDebugMessage()
const JString & getDebugMessage |
( |
void |
| ) |
const |
- Returns
- extended debugging information in case that getReturnCode() returns !0, an empty string otherwise.
◆ getParameters()
- Returns
- all parameters of the operation response.