Class: Google::Apis::GamesV1::EventRecordRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/games_v1/classes.rb,
generated/google/apis/games_v1/representations.rb,
generated/google/apis/games_v1/representations.rb

Overview

This is a JSON template for an event period update resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ EventRecordRequest

Returns a new instance of EventRecordRequest.


1042
1043
1044
# File 'generated/google/apis/games_v1/classes.rb', line 1042

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#current_time_millisString

The current time when this update was sent, in milliseconds, since 1970 UTC ( Unix Epoch). Corresponds to the JSON property currentTimeMillis

Returns:

  • (String)

1024
1025
1026
# File 'generated/google/apis/games_v1/classes.rb', line 1024

def current_time_millis
  @current_time_millis
end

#kindString

Uniquely identifies the type of this resource. Value is always the fixed string games#eventRecordRequest. Corresponds to the JSON property kind

Returns:

  • (String)

1030
1031
1032
# File 'generated/google/apis/games_v1/classes.rb', line 1030

def kind
  @kind
end

#request_idString

The request ID used to identify this attempt to record events. Corresponds to the JSON property requestId

Returns:

  • (String)

1035
1036
1037
# File 'generated/google/apis/games_v1/classes.rb', line 1035

def request_id
  @request_id
end

#time_periodsArray<Google::Apis::GamesV1::EventPeriodUpdate>

A list of the time period updates being made in this request. Corresponds to the JSON property timePeriods


1040
1041
1042
# File 'generated/google/apis/games_v1/classes.rb', line 1040

def time_periods
  @time_periods
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1047
1048
1049
1050
1051
1052
# File 'generated/google/apis/games_v1/classes.rb', line 1047

def update!(**args)
  @current_time_millis = args[:current_time_millis] if args.key?(:current_time_millis)
  @kind = args[:kind] if args.key?(:kind)
  @request_id = args[:request_id] if args.key?(:request_id)
  @time_periods = args[:time_periods] if args.key?(:time_periods)
end