Class: TeamBattlesSdk::Generated::Models::ListGameMatchesBody

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a list_game_matches_body

Raises:

  • (StandardError)


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_dataObject

Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



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.

Parameters:

  • value

    Value to set for the AdditionalData property.

Returns:

  • a void



36
37
38
# File 'lib/teambattles_sdk/generated/models/list_game_matches_body.rb', line 36

def additional_data=(value)
    @additional_data = value
end

#cursorObject

Gets the cursor property value. Opaque continuation cursor from a prior page’s pagination.cursor.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the cursor property.

Returns:

  • a void



67
68
69
# File 'lib/teambattles_sdk/generated/models/list_game_matches_body.rb', line 67

def cursor=(value)
    @cursor = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

#limitObject

Gets the limit property value. Page size (1-100, enforced by the handler). Defaults to the handler’s internal default.

Returns:

  • a double



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.

Parameters:

  • value

    Value to set for the limit property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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

#statusObject

Gets the status property value. Optional MatchStatus filter (e.g. IN_PROGRESS).

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the status property.

Returns:

  • a void



120
121
122
# File 'lib/teambattles_sdk/generated/models/list_game_matches_body.rb', line 120

def status=(value)
    @status = value
end