google_api_games v0.12.0 GoogleApi.Games.V1.Model.PlayerScoreResponse View Source

This is a JSON template for a list of leaderboard entry resources.

Attributes

  • beatenScoreTimeSpans (type: list(String.t), default: nil) - The time spans where the submitted score is better than the existing score for that time span. Possible values are:

    • "ALL_TIME" - The score is an all-time score.
    • "WEEKLY" - The score is a weekly score.
    • "DAILY" - The score is a daily score.
  • formattedScore (type: String.t, default: nil) - The formatted value of the submitted score.
  • kind (type: String.t, default: games#playerScoreResponse) - Uniquely identifies the type of this resource. Value is always the fixed string games#playerScoreResponse.
  • leaderboardId (type: String.t, default: nil) - The leaderboard ID that this score was submitted to.
  • scoreTag (type: String.t, default: nil) - Additional information about this score. Values will contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986.
  • unbeatenScores (type: list(GoogleApi.Games.V1.Model.PlayerScore.t), default: nil) - The scores in time spans that have not been beaten. As an example, the submitted score may be better than the player's DAILY score, but not better than the player's scores for the WEEKLY or ALL_TIME time spans.

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.PlayerScoreResponse{
  beatenScoreTimeSpans: [String.t()],
  formattedScore: String.t(),
  kind: String.t(),
  leaderboardId: String.t(),
  scoreTag: String.t(),
  unbeatenScores: [GoogleApi.Games.V1.Model.PlayerScore.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.