class Google::Apis::GamesV1::QuestMilestone

This is a JSON template for a Quest Milestone resource.

Attributes

completion_reward_data[RW]

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. Corresponds to the JSON property `completionRewardData` @return [String]

criteria[RW]

The criteria of the milestone. Corresponds to the JSON property `criteria` @return [Array<Google::Apis::GamesV1::QuestCriterion>]

id[RW]

The milestone ID. Corresponds to the JSON property `id` @return [String]

kind[RW]

Uniquely identifies the type of this resource. Value is always the fixed string games#questMilestone. Corresponds to the JSON property `kind` @return [String]

state[RW]

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.

Corresponds to the JSON property `state` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/games_v1/classes.rb, line 3021
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/games_v1/classes.rb, line 3026
def update!(**args)
  @completion_reward_data = args[:completion_reward_data] if args.key?(:completion_reward_data)
  @criteria = args[:criteria] if args.key?(:criteria)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @state = args[:state] if args.key?(:state)
end