class Google::Apis::GamesV1::Quest

This is a JSON template for a Quest resource.

Attributes

accepted_timestamp_millis[RW]

The timestamp at which the user accepted the quest in milliseconds since the epoch in UTC. Only present if the player has accepted the quest. Corresponds to the JSON property `acceptedTimestampMillis` @return [String]

application_id[RW]

The ID of the application this quest is part of. Corresponds to the JSON property `applicationId` @return [String]

banner_url[RW]

The banner image URL for the quest. Corresponds to the JSON property `bannerUrl` @return [String]

description[RW]

The description of the quest. Corresponds to the JSON property `description` @return [String]

end_timestamp_millis[RW]

The timestamp at which the quest ceases to be active in milliseconds since the epoch in UTC. Corresponds to the JSON property `endTimestampMillis` @return [String]

icon_url[RW]

The icon image URL for the quest. Corresponds to the JSON property `iconUrl` @return [String]

id[RW]

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

is_default_banner_url[RW]

Indicates whether the banner image being returned is a default image, or is game-provided. Corresponds to the JSON property `isDefaultBannerUrl` @return [Boolean]

is_default_banner_url?[RW]

Indicates whether the banner image being returned is a default image, or is game-provided. Corresponds to the JSON property `isDefaultBannerUrl` @return [Boolean]

is_default_icon_url[RW]

Indicates whether the icon image being returned is a default image, or is game- provided. Corresponds to the JSON property `isDefaultIconUrl` @return [Boolean]

is_default_icon_url?[RW]

Indicates whether the icon image being returned is a default image, or is game- provided. Corresponds to the JSON property `isDefaultIconUrl` @return [Boolean]

kind[RW]

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

last_updated_timestamp_millis[RW]

The timestamp at which the quest was last updated by the user in milliseconds since the epoch in UTC. Only present if the player has accepted the quest. Corresponds to the JSON property `lastUpdatedTimestampMillis` @return [String]

milestones[RW]

The quest milestones. Corresponds to the JSON property `milestones` @return [Array<Google::Apis::GamesV1::QuestMilestone>]

name[RW]

The name of the quest. Corresponds to the JSON property `name` @return [String]

notify_timestamp_millis[RW]

The timestamp at which the user should be notified that the quest will end soon in milliseconds since the epoch in UTC. Corresponds to the JSON property `notifyTimestampMillis` @return [String]

start_timestamp_millis[RW]

The timestamp at which the quest becomes active in milliseconds since the epoch in UTC. Corresponds to the JSON property `startTimestampMillis` @return [String]

state[RW]

The state of the quest. Possible values are:

  • “UPCOMING”: The quest is upcoming. The user can see the quest, but cannot

accept it until it is open.

  • “OPEN”: The quest is currently open and may be accepted at this time.

  • “ACCEPTED”: The user is currently participating in this quest.

  • “COMPLETED”: The user has completed the quest.

  • “FAILED”: The quest was attempted but was not completed before the deadline

expired.

  • “EXPIRED”: The quest has expired and was not accepted.

  • “DELETED”: The quest should be deleted from the local database.

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 2848
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 2853
def update!(**args)
  @accepted_timestamp_millis = args[:accepted_timestamp_millis] if args.key?(:accepted_timestamp_millis)
  @application_id = args[:application_id] if args.key?(:application_id)
  @banner_url = args[:banner_url] if args.key?(:banner_url)
  @description = args[:description] if args.key?(:description)
  @end_timestamp_millis = args[:end_timestamp_millis] if args.key?(:end_timestamp_millis)
  @icon_url = args[:icon_url] if args.key?(:icon_url)
  @id = args[:id] if args.key?(:id)
  @is_default_banner_url = args[:is_default_banner_url] if args.key?(:is_default_banner_url)
  @is_default_icon_url = args[:is_default_icon_url] if args.key?(:is_default_icon_url)
  @kind = args[:kind] if args.key?(:kind)
  @last_updated_timestamp_millis = args[:last_updated_timestamp_millis] if args.key?(:last_updated_timestamp_millis)
  @milestones = args[:milestones] if args.key?(:milestones)
  @name = args[:name] if args.key?(:name)
  @notify_timestamp_millis = args[:notify_timestamp_millis] if args.key?(:notify_timestamp_millis)
  @start_timestamp_millis = args[:start_timestamp_millis] if args.key?(:start_timestamp_millis)
  @state = args[:state] if args.key?(:state)
end