Class: MicrosoftGraph::Models::CallRecordsMedia
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::CallRecordsMedia
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/call_records_media.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.
-
#callee_device ⇒ Object
Gets the calleeDevice property value.
-
#callee_device=(value) ⇒ Object
Sets the calleeDevice property value.
-
#callee_network ⇒ Object
Gets the calleeNetwork property value.
-
#callee_network=(value) ⇒ Object
Sets the calleeNetwork property value.
-
#caller_device ⇒ Object
Gets the callerDevice property value.
-
#caller_device=(value) ⇒ Object
Sets the callerDevice property value.
-
#caller_network ⇒ Object
Gets the callerNetwork property value.
-
#caller_network=(value) ⇒ Object
Sets the callerNetwork property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new callRecordsMedia and sets the default values.
-
#label ⇒ Object
Gets the label property value.
-
#label=(value) ⇒ Object
Sets the label 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.
-
#streams ⇒ Object
Gets the streams property value.
-
#streams=(value) ⇒ Object
Sets the streams property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new callRecordsMedia and sets the default values.
112 113 114 |
# File 'lib/models/call_records_media.rb', line 112 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
120 121 122 123 |
# File 'lib/models/call_records_media.rb', line 120 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return CallRecordsMedia.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.
37 38 39 |
# File 'lib/models/call_records_media.rb', line 37 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.
45 46 47 |
# File 'lib/models/call_records_media.rb', line 45 def additional_data=(value) @additional_data = value end |
#callee_device ⇒ Object
Gets the calleeDevice property value. Device information associated with the callee endpoint of this media.
52 53 54 |
# File 'lib/models/call_records_media.rb', line 52 def callee_device return @callee_device end |
#callee_device=(value) ⇒ Object
Sets the calleeDevice property value. Device information associated with the callee endpoint of this media.
60 61 62 |
# File 'lib/models/call_records_media.rb', line 60 def callee_device=(value) @callee_device = value end |
#callee_network ⇒ Object
Gets the calleeNetwork property value. Network information associated with the callee endpoint of this media.
67 68 69 |
# File 'lib/models/call_records_media.rb', line 67 def callee_network return @callee_network end |
#callee_network=(value) ⇒ Object
Sets the calleeNetwork property value. Network information associated with the callee endpoint of this media.
75 76 77 |
# File 'lib/models/call_records_media.rb', line 75 def callee_network=(value) @callee_network = value end |
#caller_device ⇒ Object
Gets the callerDevice property value. Device information associated with the caller endpoint of this media.
82 83 84 |
# File 'lib/models/call_records_media.rb', line 82 def caller_device return @caller_device end |
#caller_device=(value) ⇒ Object
Sets the callerDevice property value. Device information associated with the caller endpoint of this media.
90 91 92 |
# File 'lib/models/call_records_media.rb', line 90 def caller_device=(value) @caller_device = value end |
#caller_network ⇒ Object
Gets the callerNetwork property value. Network information associated with the caller endpoint of this media.
97 98 99 |
# File 'lib/models/call_records_media.rb', line 97 def caller_network return @caller_network end |
#caller_network=(value) ⇒ Object
Sets the callerNetwork property value. Network information associated with the caller endpoint of this media.
105 106 107 |
# File 'lib/models/call_records_media.rb', line 105 def caller_network=(value) @caller_network = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
128 129 130 131 132 133 134 135 136 137 138 |
# File 'lib/models/call_records_media.rb', line 128 def get_field_deserializers() return { "calleeDevice" => lambda {|n| @callee_device = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::CallRecordsDeviceInfo.create_from_discriminator_value(pn) }) }, "calleeNetwork" => lambda {|n| @callee_network = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::CallRecordsNetworkInfo.create_from_discriminator_value(pn) }) }, "callerDevice" => lambda {|n| @caller_device = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::CallRecordsDeviceInfo.create_from_discriminator_value(pn) }) }, "callerNetwork" => lambda {|n| @caller_network = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::CallRecordsNetworkInfo.create_from_discriminator_value(pn) }) }, "label" => lambda {|n| @label = n.get_string_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "streams" => lambda {|n| @streams = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::CallRecordsMediaStream.create_from_discriminator_value(pn) }) }, } end |
#label ⇒ Object
Gets the label property value. How the media was identified during media negotiation stage.
143 144 145 |
# File 'lib/models/call_records_media.rb', line 143 def label return @label end |
#label=(value) ⇒ Object
Sets the label property value. How the media was identified during media negotiation stage.
151 152 153 |
# File 'lib/models/call_records_media.rb', line 151 def label=(value) @label = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
158 159 160 |
# File 'lib/models/call_records_media.rb', line 158 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
166 167 168 |
# File 'lib/models/call_records_media.rb', line 166 def odata_type=(value) @odata_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
174 175 176 177 178 179 180 181 182 183 184 |
# File 'lib/models/call_records_media.rb', line 174 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_object_value("calleeDevice", @callee_device) writer.write_object_value("calleeNetwork", @callee_network) writer.write_object_value("callerDevice", @caller_device) writer.write_object_value("callerNetwork", @caller_network) writer.write_string_value("label", @label) writer.write_string_value("@odata.type", @odata_type) writer.write_collection_of_object_values("streams", @streams) writer.write_additional_data(@additional_data) end |
#streams ⇒ Object
Gets the streams property value. Network streams associated with this media.
189 190 191 |
# File 'lib/models/call_records_media.rb', line 189 def streams return @streams end |
#streams=(value) ⇒ Object
Sets the streams property value. Network streams associated with this media.
197 198 199 |
# File 'lib/models/call_records_media.rb', line 197 def streams=(value) @streams = value end |