Contains the server's response for an operation called by this peer. The indexer of this class actually provides access to the Parameters Dictionary. More...
Public Member Functions | |
override string | ToString () |
ToString() override. More... | |
string | ToStringFull () |
Extensive output of operation results. More... | |
Public Attributes | |
byte | OperationCode |
The code for the operation called initially (by this peer). More... | |
short | ReturnCode |
A code that "summarizes" the operation's success or failure. Specific per operation. 0 usually means "ok". More... | |
string | DebugMessage |
An optional string sent by the server to provide readable feedback in error-cases. Might be null. More... | |
ParameterDictionary | Parameters |
A Dictionary of values returned by an operation, using byte-typed keys per value. More... | |
Properties | |
object | this[byte parameterCode] [get, set] |
Alternative access to the Parameters, which wraps up a TryGetValue() call on the Parameters Dictionary. More... | |
Contains the server's response for an operation called by this peer. The indexer of this class actually provides access to the Parameters Dictionary.
The OperationCode defines the type of operation called on Photon and in turn also the Parameters that are set in the request. Those are provided as Dictionary with byte-keys. There are pre-defined constants for various codes defined in the LoadBalancing application. Check: OperationCode, ParameterCode, etc.
An operation's request is summarized by the ReturnCode: a short typed code for "Ok" or some different result. The code's meaning is specific per operation. An optional DebugMessage can be provided to simplify debugging.
Each call of an operation gets an ID, called the "invocID". This can be matched to the IDs returned with any operation calls. This way, an application could track if a certain OpRaiseEvent call was successful.
|
inline |
ToString() override.
|
inline |
Extensive output of operation results.
string ExitGames.Client.Photon.OperationResponse.DebugMessage |
An optional string sent by the server to provide readable feedback in error-cases. Might be null.
byte ExitGames.Client.Photon.OperationResponse.OperationCode |
The code for the operation called initially (by this peer).
Use enums or constants to be able to handle those codes, like OperationCode does.
ParameterDictionary ExitGames.Client.Photon.OperationResponse.Parameters |
A Dictionary of values returned by an operation, using byte-typed keys per value.
short ExitGames.Client.Photon.OperationResponse.ReturnCode |
A code that "summarizes" the operation's success or failure. Specific per operation. 0 usually means "ok".
|
getset |
Alternative access to the Parameters, which wraps up a TryGetValue() call on the Parameters Dictionary.
parameterCode | The byte-code of a returned value. |