Class: MicrosoftGraph::Models::AudioRoutingGroup

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/audio_routing_group.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new audioRoutingGroup and sets the default values.



22
23
24
# File 'lib/models/audio_routing_group.rb', line 22

def initialize()
    super
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 audio_routing_group

Raises:

  • (StandardError)


30
31
32
33
# File 'lib/models/audio_routing_group.rb', line 30

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return AudioRoutingGroup.new
end

Instance Method Details

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



38
39
40
41
42
43
44
# File 'lib/models/audio_routing_group.rb', line 38

def get_field_deserializers()
    return super.merge({
        "receivers" => lambda {|n| @receivers = n.get_collection_of_primitive_values(String) },
        "routingMode" => lambda {|n| @routing_mode = n.get_enum_value(MicrosoftGraph::Models::RoutingMode) },
        "sources" => lambda {|n| @sources = n.get_collection_of_primitive_values(String) },
    })
end

#receiversObject

Gets the receivers property value. List of receiving participant ids.

Returns:

  • a string



49
50
51
# File 'lib/models/audio_routing_group.rb', line 49

def receivers
    return @receivers
end

#receivers=(value) ⇒ Object

Sets the receivers property value. List of receiving participant ids.

Parameters:

  • value

    Value to set for the receivers property.

Returns:

  • a void



57
58
59
# File 'lib/models/audio_routing_group.rb', line 57

def receivers=(value)
    @receivers = value
end

#routing_modeObject

Gets the routingMode property value. The routingMode property

Returns:

  • a routing_mode



64
65
66
# File 'lib/models/audio_routing_group.rb', line 64

def routing_mode
    return @routing_mode
end

#routing_mode=(value) ⇒ Object

Sets the routingMode property value. The routingMode property

Parameters:

  • value

    Value to set for the routingMode property.

Returns:

  • a void



72
73
74
# File 'lib/models/audio_routing_group.rb', line 72

def routing_mode=(value)
    @routing_mode = 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)


80
81
82
83
84
85
86
# File 'lib/models/audio_routing_group.rb', line 80

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_collection_of_primitive_values("receivers", @receivers)
    writer.write_enum_value("routingMode", @routing_mode)
    writer.write_collection_of_primitive_values("sources", @sources)
end

#sourcesObject

Gets the sources property value. List of source participant ids.

Returns:

  • a string



91
92
93
# File 'lib/models/audio_routing_group.rb', line 91

def sources
    return @sources
end

#sources=(value) ⇒ Object

Sets the sources property value. List of source participant ids.

Parameters:

  • value

    Value to set for the sources property.

Returns:

  • a void



99
100
101
# File 'lib/models/audio_routing_group.rb', line 99

def sources=(value)
    @sources = value
end