Class: MicrosoftGraph::Models::MediaStream
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::MediaStream
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/media_stream.rb
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.
-
#direction ⇒ Object
Gets the direction property value.
-
#direction=(value) ⇒ Object
Sets the direction property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new mediaStream and sets the default values.
-
#label ⇒ Object
Gets the label property value.
-
#label=(value) ⇒ Object
Sets the label property value.
-
#media_type ⇒ Object
Gets the mediaType property value.
-
#media_type=(value) ⇒ Object
Sets the mediaType property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#server_muted ⇒ Object
Gets the serverMuted property value.
-
#server_muted=(value) ⇒ Object
Sets the serverMuted property value.
-
#source_id ⇒ Object
Gets the sourceId property value.
-
#source_id=(value) ⇒ Object
Sets the sourceId property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new mediaStream and sets the default values.
49 50 51 |
# File 'lib/models/media_stream.rb', line 49 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
57 58 59 60 |
# File 'lib/models/media_stream.rb', line 57 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return MediaStream.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.
34 35 36 |
# File 'lib/models/media_stream.rb', line 34 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.
42 43 44 |
# File 'lib/models/media_stream.rb', line 42 def additional_data=(value) @additional_data = value end |
#direction ⇒ Object
Gets the direction property value. The direction property
65 66 67 |
# File 'lib/models/media_stream.rb', line 65 def direction return @direction end |
#direction=(value) ⇒ Object
Sets the direction property value. The direction property
73 74 75 |
# File 'lib/models/media_stream.rb', line 73 def direction=(value) @direction = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
80 81 82 83 84 85 86 87 88 89 |
# File 'lib/models/media_stream.rb', line 80 def get_field_deserializers() return { "direction" => lambda {|n| @direction = n.get_enum_value(MicrosoftGraph::Models::MediaDirection) }, "label" => lambda {|n| @label = n.get_string_value() }, "mediaType" => lambda {|n| @media_type = n.get_enum_value(MicrosoftGraph::Models::Modality) }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "serverMuted" => lambda {|n| @server_muted = n.get_boolean_value() }, "sourceId" => lambda {|n| @source_id = n.get_string_value() }, } end |
#label ⇒ Object
Gets the label property value. The media stream label.
94 95 96 |
# File 'lib/models/media_stream.rb', line 94 def label return @label end |
#label=(value) ⇒ Object
Sets the label property value. The media stream label.
102 103 104 |
# File 'lib/models/media_stream.rb', line 102 def label=(value) @label = value end |
#media_type ⇒ Object
Gets the mediaType property value. The mediaType property
109 110 111 |
# File 'lib/models/media_stream.rb', line 109 def media_type return @media_type end |
#media_type=(value) ⇒ Object
Sets the mediaType property value. The mediaType property
117 118 119 |
# File 'lib/models/media_stream.rb', line 117 def media_type=(value) @media_type = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
124 125 126 |
# File 'lib/models/media_stream.rb', line 124 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
132 133 134 |
# File 'lib/models/media_stream.rb', line 132 def odata_type=(value) @odata_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
140 141 142 143 144 145 146 147 148 149 |
# File 'lib/models/media_stream.rb', line 140 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_enum_value("direction", @direction) writer.write_string_value("label", @label) writer.write_enum_value("mediaType", @media_type) writer.write_string_value("@odata.type", @odata_type) writer.write_boolean_value("serverMuted", @server_muted) writer.write_string_value("sourceId", @source_id) writer.write_additional_data(@additional_data) end |
#server_muted ⇒ Object
Gets the serverMuted property value. If the media is muted by the server.
154 155 156 |
# File 'lib/models/media_stream.rb', line 154 def server_muted return @server_muted end |
#server_muted=(value) ⇒ Object
Sets the serverMuted property value. If the media is muted by the server.
162 163 164 |
# File 'lib/models/media_stream.rb', line 162 def server_muted=(value) @server_muted = value end |
#source_id ⇒ Object
Gets the sourceId property value. The source ID.
169 170 171 |
# File 'lib/models/media_stream.rb', line 169 def source_id return @source_id end |
#source_id=(value) ⇒ Object
Sets the sourceId property value. The source ID.
177 178 179 |
# File 'lib/models/media_stream.rb', line 177 def source_id=(value) @source_id = value end |