Class ShareTournamentPayload
Represents content used to reshare an Instant Tournament.
Inherited Members
Namespace: Meta.InstantGames
Assembly: Unity.Meta.InstantGames.Sdk.dll
Syntax
public class ShareTournamentPayload : JsObject
Constructors
ShareTournamentPayload()
Construct an instance of ShareTournamentPayload
Declaration
public ShareTournamentPayload()
ShareTournamentPayload(double, string)
Creates a new instance of ShareTournamentPayload
Declaration
public ShareTournamentPayload(double score, string data = null)
Parameters
| Type | Name | Description |
|---|---|---|
| double | score | An integer value representing the player's latest score. |
| string | data | An optional blob of data to attach to the update, serialized as a JSON string. This string must represent a JSON object such as |
Properties
Data
An optional blob of data to attach to the update, serialized as a JSON string. This string must represent a JSON object such as {"key": "value"} and be no more than 1,000 characters.
Declaration
public string Data { get; }
Property Value
| Type | Description |
|---|---|
| string |
Score
An integer value representing the player's latest score.
Declaration
public double Score { get; }
Property Value
| Type | Description |
|---|---|
| double |