Photon Server API
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ExitGames.Diagnostics.CounterData.CounterValue Class Reference

Contains the value for a counter at a specified time stamp. More...

Public Member Functions

 CounterValue (float value)
 Initializes a new instance of the CounterValue class with the TimeStamp property set to DateTime.UtcNow. More...
 
 CounterValue (float value, DateTime timeStamp)
 Initializes a new instance of the CounterValue class. More...
 
byte[] Serialize ()
 
void Serialize (Stream stream)
 
void Serialize (BinaryWriter binaryWriter)
 

Static Public Member Functions

static CounterValue Deserialize (byte[] data)
 
static CounterValue Deserialize (byte[] data, int index)
 
static CounterValue Deserialize (Stream stream)
 
static CounterValue Deserialize (BinaryReader binaryReader)
 

Public Attributes

readonly DateTime TimeStamp
 Gets the time stamp for the counter value. More...
 
readonly float Value
 Gets the counters value. More...
 

Detailed Description

Contains the value for a counter at a specified time stamp.

Constructor & Destructor Documentation

ExitGames.Diagnostics.CounterData.CounterValue.CounterValue ( float  value)
inline

Initializes a new instance of the CounterValue class with the TimeStamp property set to DateTime.UtcNow.

Parameters
valueThe value.
ExitGames.Diagnostics.CounterData.CounterValue.CounterValue ( float  value,
DateTime  timeStamp 
)
inline

Initializes a new instance of the CounterValue class.

Parameters
timeStampThe time stamp at which the counter value has been retrieved.
valueThe value.

Member Function Documentation

static CounterValue ExitGames.Diagnostics.CounterData.CounterValue.Deserialize ( byte[]  data)
inlinestatic
static CounterValue ExitGames.Diagnostics.CounterData.CounterValue.Deserialize ( byte[]  data,
int  index 
)
inlinestatic
static CounterValue ExitGames.Diagnostics.CounterData.CounterValue.Deserialize ( Stream  stream)
inlinestatic
static CounterValue ExitGames.Diagnostics.CounterData.CounterValue.Deserialize ( BinaryReader  binaryReader)
inlinestatic
byte [] ExitGames.Diagnostics.CounterData.CounterValue.Serialize ( )
inline
void ExitGames.Diagnostics.CounterData.CounterValue.Serialize ( Stream  stream)
inline
void ExitGames.Diagnostics.CounterData.CounterValue.Serialize ( BinaryWriter  binaryWriter)
inline

Member Data Documentation

readonly DateTime ExitGames.Diagnostics.CounterData.CounterValue.TimeStamp

Gets the time stamp for the counter value.

readonly float ExitGames.Diagnostics.CounterData.CounterValue.Value

Gets the counters value.