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.



4015
4016
4017
# File 'generated/google/apis/games_v1/classes.rb', line 4015

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



3989
3990
3991
# File 'generated/google/apis/games_v1/classes.rb', line 3989

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


3994
3995
3996
# File 'generated/google/apis/games_v1/classes.rb', line 3994

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)


4000
4001
4002
# File 'generated/google/apis/games_v1/classes.rb', line 4000

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)


4006
4007
4008
# File 'generated/google/apis/games_v1/classes.rb', line 4006

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)


4013
4014
4015
# File 'generated/google/apis/games_v1/classes.rb', line 4013

def variant
  @variant
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4020
4021
4022
4023
4024
4025
4026
# File 'generated/google/apis/games_v1/classes.rb', line 4020

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