Match

Object representing a match. Use GetMatch to deserialize GameState to any object.

/// Unique identifier for the match.
public string MatchId;
/// List of players.
public List<PlayerProfileModel> Players;
/// Player who's turn it is.
public PlayerProfileModel CurrentPlayer;
/// The state of the match.
public MatchState MatchState;
/// How many turns have been completed.
public int TurnCount;
/// The JSON state of the match.
public string GameState;
public enum MatchState
{
    YourTurn,
    TheirTurn,
    RecievedRequest,
    SentRequest,
    Ended
}

Last updated