Class: TeamBattlesSdk::Generated::Models::ListGameMatchesBody
- Inherits:
-
Object
- Object
- TeamBattlesSdk::Generated::Models::ListGameMatchesBody
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/teambattles_sdk/generated/models/list_game_matches_body.rb
Overview
Status filter and cursor pagination for listing the bound key’s game matches. The game is derived from the developer-app key’s bound game (not a body field).
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#additional_data ⇒ Object
Gets the AdditionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the AdditionalData property value.
-
#cursor ⇒ Object
Gets the cursor property value.
-
#cursor=(value) ⇒ Object
Sets the cursor property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new ListGameMatchesBody and sets the default values.
-
#limit ⇒ Object
Gets the limit property value.
-
#limit=(value) ⇒ Object
Sets the limit property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#status ⇒ Object
Gets the status property value.
-
#status=(value) ⇒ Object
Sets the status property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new ListGameMatchesBody and sets the default values.
43 44 45 |
# File 'lib/teambattles_sdk/generated/models/list_game_matches_body.rb', line 43 def initialize() @additional_data = Hash.new end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
51 52 53 54 |
# File 'lib/teambattles_sdk/generated/models/list_game_matches_body.rb', line 51 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ListGameMatchesBody.new end |
Instance Method Details
#additional_data ⇒ Object
Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
28 29 30 |
# File 'lib/teambattles_sdk/generated/models/list_game_matches_body.rb', line 28 def additional_data return @additional_data end |
#additional_data=(value) ⇒ Object
Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
36 37 38 |
# File 'lib/teambattles_sdk/generated/models/list_game_matches_body.rb', line 36 def additional_data=(value) @additional_data = value end |
#cursor ⇒ Object
Gets the cursor property value. Opaque continuation cursor from a prior page’s pagination.cursor.
59 60 61 |
# File 'lib/teambattles_sdk/generated/models/list_game_matches_body.rb', line 59 def cursor return @cursor end |
#cursor=(value) ⇒ Object
Sets the cursor property value. Opaque continuation cursor from a prior page’s pagination.cursor.
67 68 69 |
# File 'lib/teambattles_sdk/generated/models/list_game_matches_body.rb', line 67 def cursor=(value) @cursor = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
74 75 76 77 78 79 80 |
# File 'lib/teambattles_sdk/generated/models/list_game_matches_body.rb', line 74 def get_field_deserializers() return { "cursor" => lambda {|n| @cursor = n.get_string_value() }, "limit" => lambda {|n| @limit = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) }, "status" => lambda {|n| @status = n.get_string_value() }, } end |
#limit ⇒ Object
Gets the limit property value. Page size (1-100, enforced by the handler). Defaults to the handler’s internal default.
85 86 87 |
# File 'lib/teambattles_sdk/generated/models/list_game_matches_body.rb', line 85 def limit return @limit end |
#limit=(value) ⇒ Object
Sets the limit property value. Page size (1-100, enforced by the handler). Defaults to the handler’s internal default.
93 94 95 |
# File 'lib/teambattles_sdk/generated/models/list_game_matches_body.rb', line 93 def limit=(value) @limit = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
101 102 103 104 105 106 107 |
# File 'lib/teambattles_sdk/generated/models/list_game_matches_body.rb', line 101 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_string_value("cursor", @cursor) writer.write_object_value("limit", @limit) writer.write_string_value("status", @status) writer.write_additional_data(@additional_data) end |
#status ⇒ Object
Gets the status property value. Optional MatchStatus filter (e.g. IN_PROGRESS).
112 113 114 |
# File 'lib/teambattles_sdk/generated/models/list_game_matches_body.rb', line 112 def status return @status end |
#status=(value) ⇒ Object
Sets the status property value. Optional MatchStatus filter (e.g. IN_PROGRESS).
120 121 122 |
# File 'lib/teambattles_sdk/generated/models/list_game_matches_body.rb', line 120 def status=(value) @status = value end |