Class Tournament
An instant game tournament.
Inherited Members
Namespace: Meta.InstantGames.v8
Assembly: Unity.Meta.InstantGames.Sdk.v8.dll
Syntax
public class Tournament : JsObject
Constructors
Tournament()
Construct an instance of Tournament
Declaration
public Tournament()
Methods
GetContextID()
The unique context ID that is associated with this instant tournament.
Declaration
public string GetContextID()
Returns
| Type | Description |
|---|---|
| string | A string. |
GetEndTime()
Timestamp when the instant tournament ends. If the end time is in the past, then the instant tournament is already finished and has expired.
Declaration
public double GetEndTime()
Returns
| Type | Description |
|---|---|
| double | A number. |
GetID()
The unique ID that is associated with this instant tournament.
Declaration
public string GetID()
Returns
| Type | Description |
|---|---|
| string | A string. |
GetPayload()
Payload of the tournament provided upon the creation of the tournament. This is an optional field that can be set by creating the tournament using the FBInstant.tournament.createAsync() API. Returns null if none was provided.
Declaration
public string GetPayload()
Returns
| Type | Description |
|---|---|
| string | A nullable string. |
GetTitle()
Title of the tournament provided upon the creation of the tournament. This is an optional field that can be set by creating the tournament using the FBInstant.tournament.createAsync() API.
Declaration
public string GetTitle()
Returns
| Type | Description |
|---|---|
| string | A nullable string. |