google_api_games v0.5.0 GoogleApi.Games.V1.Model.QuestMilestone View Source

This is a JSON template for a Quest Milestone resource.

Attributes

  • completionRewardData (type: String.t, default: nil) - The completion reward data of the milestone, represented as a Base64-encoded string. This is a developer-specified binary blob with size between 0 and 2 KB before encoding.
  • criteria (type: list(GoogleApi.Games.V1.Model.QuestCriterion.t), default: nil) - The criteria of the milestone.
  • id (type: String.t, default: nil) - The milestone ID.
  • kind (type: String.t, default: games#questMilestone) - Uniquely identifies the type of this resource. Value is always the fixed string games#questMilestone.
  • state (type: String.t, default: nil) - The current state of the milestone. Possible values are:

    • "COMPLETED_NOT_CLAIMED" - The milestone is complete, but has not yet been claimed.
    • "CLAIMED" - The milestone is complete and has been claimed.
    • "NOT_COMPLETED" - The milestone has not yet been completed.
    • "NOT_STARTED" - The milestone is for a quest that has not yet been accepted.

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.QuestMilestone{
  completionRewardData: String.t(),
  criteria: [GoogleApi.Games.V1.Model.QuestCriterion.t()],
  id: String.t(),
  kind: String.t(),
  state: 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.