class Google::Apis::GamesManagementV1management::GamesPlayerExperienceInfoResource

This is a JSON template for 1P/3P metadata about the player's experience.

Attributes

current_experience_points[RW]

The current number of experience points for the player. Corresponds to the JSON property `currentExperiencePoints` @return [String]

current_level[RW]

This is a JSON template for 1P/3P metadata about a user's level. Corresponds to the JSON property `currentLevel` @return [Google::Apis::GamesManagementV1management::GamesPlayerLevelResource]

last_level_up_timestamp_millis[RW]

The timestamp when the player was leveled up, in millis since Unix epoch UTC. Corresponds to the JSON property `lastLevelUpTimestampMillis` @return [String]

next_level[RW]

This is a JSON template for 1P/3P metadata about a user's level. Corresponds to the JSON property `nextLevel` @return [Google::Apis::GamesManagementV1management::GamesPlayerLevelResource]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/games_management_v1management/classes.rb, line 199
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_management_v1management/classes.rb, line 204
def update!(**args)
  @current_experience_points = args[:current_experience_points] if args.key?(:current_experience_points)
  @current_level = args[:current_level] if args.key?(:current_level)
  @last_level_up_timestamp_millis = args[:last_level_up_timestamp_millis] if args.key?(:last_level_up_timestamp_millis)
  @next_level = args[:next_level] if args.key?(:next_level)
end