EGDL2 2.1
Loading...
Searching...
No Matches
Enablegames.SessionAnalyzer Class Reference

Extension methods for the Session class. Specifically methods that analyze read in data or in progress sessions Nothing is cached, everything calculated when called. More...

Static Public Member Functions

static TimeSpan Span (this Session sess)
 Calculates the time span between the earliest and latest message in a session.
 
static float Seconds (this Session sess)
 Calculates the number of seconds between the earliest and latest message in a session.
 
static DateTime StartTime (this Session sess)
 Gets the start time of a session.
 
static List< TrackerMessageLookup (this Session sess, string key)
 Retrieves a list of TrackerMessage objects with the specified key from the session.
 
static List< TrackerMessageLookup (this Session sess, DateTime timeStamp)
 Searches for TrackerMessages in a Session that have the specified key and returns them in a list.
 
static List< DateTime > ReplayTimeStamps (this Session sess)
 Retrieves a list of unique datetime stamps from a session that can be used for replay.
 
static TrackerMessage LookupMessage (List< TrackerMessage > messages, string key)
 Look up first instance of message with key in the messages list.
 

Detailed Description

Extension methods for the Session class. Specifically methods that analyze read in data or in progress sessions Nothing is cached, everything calculated when called.

Member Function Documentation

◆ Lookup() [1/2]

static List< TrackerMessage > Enablegames.SessionAnalyzer.Lookup ( this Session sess,
DateTime timeStamp )
inlinestatic

Searches for TrackerMessages in a Session that have the specified key and returns them in a list.

Parameters
sessThe Session object to search in.
keyThe key to search for in the TrackerMessages.
Returns
A list of TrackerMessages that have the specified key.

◆ Lookup() [2/2]

static List< TrackerMessage > Enablegames.SessionAnalyzer.Lookup ( this Session sess,
string key )
inlinestatic

Retrieves a list of TrackerMessage objects with the specified key from the session.

Parameters
sessThe session instance to perform the lookup on.
keyThe key to lookup TrackerMessage objects for.
Returns
A list of TrackerMessage objects with the specified key from the session.

◆ LookupMessage()

static TrackerMessage Enablegames.SessionAnalyzer.LookupMessage ( List< TrackerMessage > messages,
string key )
inlinestatic

Look up first instance of message with key in the messages list.

Returns
The message.
Parameters
messagesMessages.

◆ ReplayTimeStamps()

static List< DateTime > Enablegames.SessionAnalyzer.ReplayTimeStamps ( this Session sess)
inlinestatic

Retrieves a list of unique datetime stamps from a session that can be used for replay.

Returns
A list of unique datetime stamps for replay.
Parameters
sessThe session instance to retrieve the datetime stamps from.

◆ Seconds()

static float Enablegames.SessionAnalyzer.Seconds ( this Session sess)
inlinestatic

Calculates the number of seconds between the earliest and latest message in a session.

Returns
The number of seconds between earliest and latest message.
Parameters
sessThe session instance to calculate the number of seconds for.

◆ Span()

static TimeSpan Enablegames.SessionAnalyzer.Span ( this Session sess)
inlinestatic

Calculates the time span between the earliest and latest message in a session.

Returns
The time span between earliest and latest message.
Parameters
sessThe session instance to calculate the time span for.

◆ StartTime()

static DateTime Enablegames.SessionAnalyzer.StartTime ( this Session sess)
inlinestatic

Gets the start time of a session.

Parameters
sessThe session instance to get the start time for.
Returns
The start time of the session.

The documentation for this class was generated from the following file: