google_api_games v0.8.0 GoogleApi.Games.V1.Model.Leaderboard View Source

This is a JSON template for the Leaderboard resource.

Attributes

  • iconUrl (type: String.t, default: nil) - The icon for the leaderboard.
  • id (type: String.t, default: nil) - The leaderboard ID.
  • isIconUrlDefault (type: boolean(), default: nil) - Indicates whether the icon image being returned is a default image, or is game-provided.
  • kind (type: String.t, default: games#leaderboard) - Uniquely identifies the type of this resource. Value is always the fixed string games#leaderboard.
  • name (type: String.t, default: nil) - The name of the leaderboard.
  • order (type: String.t, default: nil) - How scores are ordered. Possible values are:

    • "LARGER_IS_BETTER" - Larger values are better; scores are sorted in descending order.
    • "SMALLER_IS_BETTER" - Smaller values are better; scores are sorted in ascending order.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t()

View Source
t() :: %GoogleApi.Games.V1.Model.Leaderboard{
  iconUrl: String.t(),
  id: String.t(),
  isIconUrlDefault: boolean(),
  kind: String.t(),
  name: String.t(),
  order: String.t()
}

Link to this section Functions

Link to this function

decode(value, options)

View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.