Interface ISessionListener
The ISessionListener interface, that all SessionListeners have to implement. SessionListeners are responsible for processing the information that was sent to VISABs WebApi by the game. Every open transmission session has exactly one SessionListener instance. Instead of implementing this yourself, consider inheriting from SessionListenerBase or ReplayListenerBase instead.
Namespace:
Assembly: .dll
Syntax
public interface ISessionListener
Methods
getCurrentFile()
Returns the current (likely unfinished) IVISABFile.
Declaration
public abstract IVISABFile getCurrentFile()
Returns
| Type | Description |
|---|---|
| IVISABFile |
getGame()
Returns the game of the listener.
Declaration
public abstract String getGame()
Returns
| Type | Description |
|---|---|
| java.lang.String | The game of the listener |
getLastReceived()
The last time statistics were received by the listener.
Declaration
public abstract LocalTime getLastReceived()
Returns
| Type | Description |
|---|---|
| java.time.LocalTime |
getSessionId()
The session listeners corresponding tranmission session sessionId.
Declaration
public abstract UUID getSessionId()
Returns
| Type | Description |
|---|---|
| java.util.UUID | The sessionId |
initialize(IMetaInformation metaInformation)
Initializes the SessionListener with the meta information for the session.
Declaration
public abstract void initialize(IMetaInformation metaInformation)
Parameters
| Type | Name | Description |
|---|---|---|
| IMetaInformation | metaInformation | The meta information that was sent |
isActive()
Whether the ISessionListener is still actively listening to Events.
Declaration
public abstract boolean isActive()
Returns
| Type | Description |
|---|---|
| boolean | True if still listening |