Photon Server API Documentation v5.0RC1

Static Public Member Functions | List of all members
Photon.SocketServer.Misc.JsonUtils Class Reference

we use this class when we need to represent our ops, responses and events as JSON. it could be wrong json. it could fail to convert data in some cases. we use it only for debugging More...

Static Public Member Functions

static string InternalOperationResponseToJSON (OperationResponse operationResponse)
 
static string OperationRequestToJSON (OperationRequest operationRequest, CustomTypeCache privateCustomTypeCache)
 
static string OperationResponseToJSON (OperationResponse operationResponse, CustomTypeCache privateCustomTypeCache)
 
static string EventDataToJSON (EventData eventData, CustomTypeCache privateCustomTypeCache)
 

Detailed Description

we use this class when we need to represent our ops, responses and events as JSON. it could be wrong json. it could fail to convert data in some cases. we use it only for debugging

Member Function Documentation

◆ EventDataToJSON()

static string Photon.SocketServer.Misc.JsonUtils.EventDataToJSON ( EventData  eventData,
CustomTypeCache  privateCustomTypeCache 
)
inlinestatic

◆ InternalOperationResponseToJSON()

static string Photon.SocketServer.Misc.JsonUtils.InternalOperationResponseToJSON ( OperationResponse  operationResponse)
inlinestatic

◆ OperationRequestToJSON()

static string Photon.SocketServer.Misc.JsonUtils.OperationRequestToJSON ( OperationRequest  operationRequest,
CustomTypeCache  privateCustomTypeCache 
)
inlinestatic

◆ OperationResponseToJSON()

static string Photon.SocketServer.Misc.JsonUtils.OperationResponseToJSON ( OperationResponse  operationResponse,
CustomTypeCache  privateCustomTypeCache 
)
inlinestatic