- GameyeClient
- #ctor(clientConfig)
- LogStore
- SessionStore
- StatisticsStore
- CommandStartMatch(matchKey,gameKey,locationKeys,templateKey,config,endCallbackUrl)
- CommandStopMatch(matchKey)
- SubscribeLogEvents(matchKey,onStreamClosed)
- SubscribeSessionEvents(onStreamClosed)
- SubscribeStatisticsEvents(matchKey,onStreamClosed)
- GameyeClientConfig
- LogLine
- LogSelectors
- LogStore
- MissingConfigException
- Player
- Session
- SessionSelectors
- SessionStore
- StatisticsSelectors
- StatisticsStore
- Team
Gameye.Sdk
Create a new client
Name | Type | Description |
---|---|---|
clientConfig | Gameye.Sdk.GameyeClientConfig |
LogStore. Used to add callbacks for events.
SessionStore. Used to add callbacks for events.
StatisticsStore. Used to add callbacks for events.
Start a match
An awaitable task that finishes when the command is executed
Name | Type | Description |
---|---|---|
matchKey | System.String | Unique identifier for the match. Also known as SessionId |
gameKey | System.String | Identifier for the game (eg: csgo) |
locationKeys | System.String[] | Array of locations |
templateKey | System.String | Game template |
config | System.Collections.Generic.Dictionary{System.String,System.Object} | Game config dictionary |
endCallbackUrl | System.String | (Optional) The url callback when the game is finished |
Name | Description |
---|---|
Gameye.Messaging.Client.CommandException | Thrown if the command fails |
Stop a match
An awaitable task that finishes when the command is executed
Name | Type | Description |
---|---|---|
matchKey | System.String | Unique identifier for the match. Also known as SessionId |
Name | Description |
---|---|
Gameye.Messaging.Client.CommandException | Thrown if the command fails |
Subscribe to all log events for a given match
An awaitable task that finishes when the stream is opened
Name | Type | Description |
---|---|---|
matchKey | System.String | Unique identifier for the match. Also known as SessionId |
onStreamClosed | System.Action | (Optional) callback when the stream is closed. This occurs when a match ends |
Name | Description |
---|---|
Gameye.Messaging.Client.CommandException | Thrown if the event stream subscription fails |
Subscribe to all session events
An awaitable task that finishes when the stream is opened
Name | Type | Description |
---|---|---|
onStreamClosed | System.Action | (Optional) callback when the stream is closed. This occurs when a match ends |
Name | Description |
---|---|
Gameye.Messaging.Client.CommandException | Thrown if the event stream subscription fails |
Subscribe to all statistic events for a given match
An awaitable task that finishes when the stream is opened
Name | Type | Description |
---|---|---|
matchKey | System.String | Unique identifier for the match. Also known as SessionId |
onStreamClosed | System.Action | (Optional) callback when the stream is closed. This occurs when a match ends |
Name | Description |
---|---|
Gameye.Messaging.Client.CommandException | Thrown if the event stream subscription fails |
Gameye.Sdk
Client config for the Gameye SDK
Create a new client config
Name | Type | Description |
---|---|---|
endpoint | System.String | The endpoint provided to you by Gameye |
token | System.String | The API token provided to you by Gameye |
Name | Description |
---|---|
Gameye.Sdk.MissingConfigException | When a required element is missing from the config |
Gameye.Sdk
Log Line Object
The line number
The log message
Print this LogLine object in the format $"{LineKey}: {Payload}"
This method has no parameters.
Gameye.Sdk
Select all the LogLines in the store. Use this as an extension method on LogState
An ImmutableArray of LogLine
Name | Type | Description |
---|---|---|
logState | Gameye.Sdk.LogState |
Select all the LogLines since a given line number. Use this as an extension method on LogState
An ImmutableArrayof LogLines
Name | Type | Description |
---|---|---|
logState | Gameye.Sdk.LogState | |
lineNumber | System.Int32 | The line number after which to select LogLines |
Gameye.Sdk
Triggered when a Log subsciption receieves new events
Gameye.Sdk
Exception representing a missing field in the GameyeClientConfig
Gameye.Sdk
Player object for Statistics purposes
Is the player currently connected
Player name
Player key
Player statistics
Unique identifier of a player
Gameye.Sdk
Session object
Unix epoch time of when the session was created
IP address of the Host of the session
The unique identifier of a session. Also known as the Match Key.
Game image used to launch the session. Also known as the Game Key
Hosted location of the session
Dictionary of Ports available for this session
Gameye.Sdk
Select a single Session with the given id. Use this as an extension method on SessionState
A Session object or null if not found
Name | Type | Description |
---|---|---|
sessionState | Gameye.Sdk.SessionState | |
sessionId | System.String | Unique identifier of the Session. Also known as Match Key |
Select all the active Sessions. Use this as an extension method on SessionState
An ImmutableArray of Session
Name | Type | Description |
---|---|---|
sessionState | Gameye.Sdk.SessionState |
Select Sessions with the given game key. Use this as an extension method on SessionState
An ImmutableArray of Session
Name | Type | Description |
---|---|---|
sessionState | Gameye.Sdk.SessionState | |
gameKey | System.String | Key of the game (eg: csgo) |
Gameye.Sdk
Triggered when a session subsciption receieves new events
Gameye.Sdk
Select a single Player by key. Use this as an extension method on StatisticsState
A Player object or null if not found
Name | Type | Description |
---|---|---|
statisticsState | Gameye.Sdk.StatisticsState | |
playerKey | System.String | Key of the Player |
Select the list of all Players. Use this as an extension method on StatisticsState
An ImmutableArray of Player
Name | Type | Description |
---|---|---|
statisticsState | Gameye.Sdk.StatisticsState |
Select the list of Players on a given Team. Use this as an extension method on StatisticsState
An ImmutableArray of Player
Name | Type | Description |
---|---|---|
statisticsState | Gameye.Sdk.StatisticsState | |
teamKey | System.String | Key of the Team |
Select the raw statistics Json. Use this as an extension method on StatisticsState
A JObject containing the current statistics snapshot
Name | Type | Description |
---|---|---|
statisticsState | Gameye.Sdk.StatisticsState |
Select the number of started rounds. Use this as an extension method on StatisticsState
A long representing the number of started rounds
Name | Type | Description |
---|---|---|
statisticsState | Gameye.Sdk.StatisticsState |
Select a single Team by key. Use this as an extension method on StatisticsState
A Team object or null if not found
Name | Type | Description |
---|---|---|
statisticsState | Gameye.Sdk.StatisticsState | |
teamKey | System.String | Key of the Team |
Select the list of all Teams. Use this as an extension method on StatisticsState
An ImmutableArray of Team
Name | Type | Description |
---|---|---|
statisticsState | Gameye.Sdk.StatisticsState |
Gameye.Sdk
Triggered when a statistics subsciption receieves new events
Gameye.Sdk
Team object for Statistics purposes
Team name
Dictionary of players and whether they are currently on this team
Team statistics
Team key