Class: MicrosoftGraph::Models::Participant
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/participant.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
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#info ⇒ Object
Gets the info property value.
-
#info=(value) ⇒ Object
Sets the info property value.
-
#initialize ⇒ Object
constructor
Instantiates a new participant and sets the default values.
-
#is_in_lobby ⇒ Object
Gets the isInLobby property value.
-
#is_in_lobby=(value) ⇒ Object
Sets the isInLobby property value.
-
#is_muted ⇒ Object
Gets the isMuted property value.
-
#is_muted=(value) ⇒ Object
Sets the isMuted property value.
-
#media_streams ⇒ Object
Gets the mediaStreams property value.
-
#media_streams=(value) ⇒ Object
Sets the mediaStreams property value.
-
#metadata ⇒ Object
Gets the metadata property value.
-
#metadata=(value) ⇒ Object
Sets the metadata property value.
-
#recording_info ⇒ Object
Gets the recordingInfo property value.
-
#recording_info=(value) ⇒ Object
Sets the recordingInfo property value.
-
#restricted_experience ⇒ Object
Gets the restrictedExperience property value.
-
#restricted_experience=(value) ⇒ Object
Sets the restrictedExperience property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new participant and sets the default values.
34 35 36 |
# File 'lib/models/participant.rb', line 34 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
42 43 44 45 |
# File 'lib/models/participant.rb', line 42 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return Participant.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/models/participant.rb', line 50 def get_field_deserializers() return super.merge({ "info" => lambda {|n| @info = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ParticipantInfo.create_from_discriminator_value(pn) }) }, "isInLobby" => lambda {|n| @is_in_lobby = n.get_boolean_value() }, "isMuted" => lambda {|n| @is_muted = n.get_boolean_value() }, "mediaStreams" => lambda {|n| @media_streams = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::MediaStream.create_from_discriminator_value(pn) }) }, "metadata" => lambda {|n| = n.get_string_value() }, "recordingInfo" => lambda {|n| @recording_info = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::RecordingInfo.create_from_discriminator_value(pn) }) }, "restrictedExperience" => lambda {|n| @restricted_experience = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::OnlineMeetingRestricted.create_from_discriminator_value(pn) }) }, }) end |
#info ⇒ Object
Gets the info property value. The info property
65 66 67 |
# File 'lib/models/participant.rb', line 65 def info return @info end |
#info=(value) ⇒ Object
Sets the info property value. The info property
73 74 75 |
# File 'lib/models/participant.rb', line 73 def info=(value) @info = value end |
#is_in_lobby ⇒ Object
Gets the isInLobby property value. true if the participant is in lobby.
80 81 82 |
# File 'lib/models/participant.rb', line 80 def is_in_lobby return @is_in_lobby end |
#is_in_lobby=(value) ⇒ Object
Sets the isInLobby property value. true if the participant is in lobby.
88 89 90 |
# File 'lib/models/participant.rb', line 88 def is_in_lobby=(value) @is_in_lobby = value end |
#is_muted ⇒ Object
Gets the isMuted property value. true if the participant is muted (client or server muted).
95 96 97 |
# File 'lib/models/participant.rb', line 95 def is_muted return @is_muted end |
#is_muted=(value) ⇒ Object
Sets the isMuted property value. true if the participant is muted (client or server muted).
103 104 105 |
# File 'lib/models/participant.rb', line 103 def is_muted=(value) @is_muted = value end |
#media_streams ⇒ Object
Gets the mediaStreams property value. The list of media streams.
110 111 112 |
# File 'lib/models/participant.rb', line 110 def media_streams return @media_streams end |
#media_streams=(value) ⇒ Object
Sets the mediaStreams property value. The list of media streams.
118 119 120 |
# File 'lib/models/participant.rb', line 118 def media_streams=(value) @media_streams = value end |
#metadata ⇒ Object
Gets the metadata property value. A blob of data provided by the participant in the roster.
125 126 127 |
# File 'lib/models/participant.rb', line 125 def return end |
#metadata=(value) ⇒ Object
Sets the metadata property value. A blob of data provided by the participant in the roster.
133 134 135 |
# File 'lib/models/participant.rb', line 133 def (value) = value end |
#recording_info ⇒ Object
Gets the recordingInfo property value. Information about whether the participant has recording capability.
140 141 142 |
# File 'lib/models/participant.rb', line 140 def recording_info return @recording_info end |
#recording_info=(value) ⇒ Object
Sets the recordingInfo property value. Information about whether the participant has recording capability.
148 149 150 |
# File 'lib/models/participant.rb', line 148 def recording_info=(value) @recording_info = value end |
#restricted_experience ⇒ Object
Gets the restrictedExperience property value. Indicates the reason or reasons media content from this participant is restricted.
155 156 157 |
# File 'lib/models/participant.rb', line 155 def restricted_experience return @restricted_experience end |
#restricted_experience=(value) ⇒ Object
Sets the restrictedExperience property value. Indicates the reason or reasons media content from this participant is restricted.
163 164 165 |
# File 'lib/models/participant.rb', line 163 def restricted_experience=(value) @restricted_experience = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/models/participant.rb', line 171 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("info", @info) writer.write_boolean_value("isInLobby", @is_in_lobby) writer.write_boolean_value("isMuted", @is_muted) writer.write_collection_of_object_values("mediaStreams", @media_streams) writer.write_string_value("metadata", ) writer.write_object_value("recordingInfo", @recording_info) writer.write_object_value("restrictedExperience", @restricted_experience) end |