Class: Google::Apis::GamesV1::CreateTurnBasedMatchRequest

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 a turn-based match creation request.

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) ⇒ CreateTurnBasedMatchRequest

Returns a new instance of CreateTurnBasedMatchRequest



4302
4303
4304
# File 'generated/google/apis/games_v1/classes.rb', line 4302

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

Instance Attribute Details

#auto_matching_criteriaGoogle::Apis::GamesV1::TurnBasedAutoMatchingCriteria

This is a JSON template for an turn-based auto-match criteria object. Corresponds to the JSON property autoMatchingCriteria



4276
4277
4278
# File 'generated/google/apis/games_v1/classes.rb', line 4276

def auto_matching_criteria
  @auto_matching_criteria
end

#invited_player_idsArray<String>

The player ids to invite to the match. Corresponds to the JSON property invitedPlayerIds

Returns:

  • (Array<String>)


4281
4282
4283
# File 'generated/google/apis/games_v1/classes.rb', line 4281

def invited_player_ids
  @invited_player_ids
end

#kindString

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

Returns:

  • (String)


4287
4288
4289
# File 'generated/google/apis/games_v1/classes.rb', line 4287

def kind
  @kind
end

#request_idFixnum

A randomly generated numeric ID. This number is used at the server to ensure that the request is handled correctly across retries. Corresponds to the JSON property requestId

Returns:

  • (Fixnum)


4293
4294
4295
# File 'generated/google/apis/games_v1/classes.rb', line 4293

def request_id
  @request_id
end

#variantFixnum

The variant / mode of the application to be played. This can be any integer value, or left blank. You should use a small number of variants to keep the auto-matching pool as large as possible. Corresponds to the JSON property variant

Returns:

  • (Fixnum)


4300
4301
4302
# File 'generated/google/apis/games_v1/classes.rb', line 4300

def variant
  @variant
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4307
4308
4309
4310
4311
4312
4313
# File 'generated/google/apis/games_v1/classes.rb', line 4307

def update!(**args)
  @auto_matching_criteria = args[:auto_matching_criteria] if args.key?(:auto_matching_criteria)
  @invited_player_ids = args[:invited_player_ids] if args.key?(:invited_player_ids)
  @kind = args[:kind] if args.key?(:kind)
  @request_id = args[:request_id] if args.key?(:request_id)
  @variant = args[:variant] if args.key?(:variant)
end