Class CreateTournamentConfig
Represents the configurations used in creating an instant tournament.
Inherited Members
Namespace: Meta.InstantGames
Assembly: Unity.Meta.InstantGames.Sdk.dll
Syntax
public class CreateTournamentConfig : JsObject
Constructors
CreateTournamentConfig(string, string, TournamentScoreFormat?, TournamentSortOrder?, double?)
Creates a new instance of CreateTournamentConfig
Declaration
public CreateTournamentConfig(string title = null, string image = null, TournamentScoreFormat? scoreFormat = null, TournamentSortOrder? sortOrder = null, double? endTime = null)
Parameters
Type | Name | Description |
---|---|---|
string | title | Optional text title for the tournament. |
string | image | Optional base64 encoded image that will be associated with the tournament and included in posts sharing the tournament. |
Tournament |
scoreFormat | Optional input for the formatting of the scores in the tournament leaderboard. The options are 'NUMERIC' or 'TIME'. If not specified, the default is 'NUMERIC'. |
Tournament |
sortOrder | Optional input for the ordering of which score is best in the tournament. The options are 'HIGHER_IS_BETTER' or 'LOWER_IS_BETTER'. If not specified, the default is 'HIGHER_IS_BETTER'. |
double? | endTime | Optional input for setting a custom end time for the tournament. The number passed in represents a unix timestamp. If not specified, the tournament will end one week after creation. |
Properties
EndTime
Optional input for setting a custom end time for the tournament. The number passed in represents a unix timestamp. If not specified, the tournament will end one week after creation.
Declaration
public double? EndTime { get; }
Property Value
Type | Description |
---|---|
double? |
Image
Optional base64 encoded image that will be associated with the tournament and included in posts sharing the tournament.
Declaration
public string Image { get; }
Property Value
Type | Description |
---|---|
string |
ScoreFormat
Optional input for the formatting of the scores in the tournament leaderboard. The options are 'NUMERIC' or 'TIME'. If not specified, the default is 'NUMERIC'.
Declaration
public TournamentScoreFormat? ScoreFormat { get; }
Property Value
Type | Description |
---|---|
Tournament |
SortOrder
Optional input for the ordering of which score is best in the tournament. The options are 'HIGHER_IS_BETTER' or 'LOWER_IS_BETTER'. If not specified, the default is 'HIGHER_IS_BETTER'.
Declaration
public TournamentSortOrder? SortOrder { get; }
Property Value
Type | Description |
---|---|
Tournament |
Title
Optional text title for the tournament.
Declaration
public string Title { get; }
Property Value
Type | Description |
---|---|
string |