Photon Unity Networking 2 2.45

Public Member Functions | Properties | List of all members
WebRpcResponse Class Reference

Reads an operation response of a WebRpc and provides convenient access to most common values. More...

Public Member Functions

 WebRpcResponse (OperationResponse response)
 An OperationResponse for a WebRpc is needed to read it's values. More...
 
string ToStringFull ()
 Turns the response into an easier to read string. More...
 

Properties

string Name [get]
 Name of the WebRpc that was called. More...
 
int ResultCode [get]
 ResultCode of the WebService that answered the WebRpc. More...
 
int ReturnCode [get]
 
string Message [get]
 Might be empty or null. More...
 
string DebugMessage [get]
 
Dictionary< string, object > Parameters [get]
 Other key/values returned by the webservice that answered the WebRpc. More...
 

Detailed Description

Reads an operation response of a WebRpc and provides convenient access to most common values.

See LoadBalancingClient.OpWebRpc.
Create a WebRpcResponse to access common result values.
The operationResponse.OperationCode should be: OperationCode.WebRpc.

Constructor & Destructor Documentation

◆ WebRpcResponse()

WebRpcResponse ( OperationResponse  response)

An OperationResponse for a WebRpc is needed to read it's values.

Member Function Documentation

◆ ToStringFull()

string ToStringFull ( )

Turns the response into an easier to read string.

Returns
String resembling the result.

Property Documentation

◆ Message

string Message
get

Might be empty or null.

◆ Name

string Name
get

Name of the WebRpc that was called.

◆ Parameters

Dictionary<string, object> Parameters
get

Other key/values returned by the webservice that answered the WebRpc.

◆ ResultCode

int ResultCode
get

ResultCode of the WebService that answered the WebRpc.

0 is: "OK" for WebRPCs.
-1 is: No ResultCode by WebRpc service (check OperationResponse.ReturnCode).
Other ResultCode are defined by the individual WebRpc and service.