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 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< TrackerMessage > | Lookup (this Session sess, string key) |
| | Retrieves a list of TrackerMessage objects with the specified key from the session.
|
| |
| static List< TrackerMessage > | Lookup (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.
|
| |
Extension methods for the Session class. Specifically methods that analyze read in data or in progress sessions Nothing is cached, everything calculated when called.
◆ 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
-
| sess | The Session object to search in. |
| key | The key to search for in the TrackerMessages. |
- Returns
- A list of TrackerMessages that have the specified key.
◆ Lookup() [2/2]
Retrieves a list of TrackerMessage objects with the specified key from the session.
- Parameters
-
| sess | The session instance to perform the lookup on. |
| key | The key to lookup TrackerMessage objects for. |
- Returns
- A list of TrackerMessage objects with the specified key from the session.
◆ LookupMessage()
Look up first instance of message with key in the messages list.
- Returns
- The message.
- Parameters
-
◆ 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
-
| sess | The 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
-
| sess | The 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
-
| sess | The 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
-
| sess | The 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:
- /Users/yiyangshang/egdl2/Assets/eag/Scripts/enablegames/Tracking/Session/SessionAnalyzer.cs