Class: MicrosoftGraph::Models::Participant

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/participant.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 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

Parameters:

  • parse_node

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

Returns:

  • a participant

Raises:

  • (StandardError)


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_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

#infoObject

Gets the info property value. The info property

Returns:

  • a participant_info



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

Parameters:

  • value

    Value to set for the info property.

Returns:

  • a void



73
74
75
# File 'lib/models/participant.rb', line 73

def info=(value)
    @info = value
end

#is_in_lobbyObject

Gets the isInLobby property value. true if the participant is in lobby.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the isInLobby property.

Returns:

  • a void



88
89
90
# File 'lib/models/participant.rb', line 88

def is_in_lobby=(value)
    @is_in_lobby = value
end

#is_mutedObject

Gets the isMuted property value. true if the participant is muted (client or server muted).

Returns:

  • a boolean



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

Parameters:

  • value

    Value to set for the isMuted property.

Returns:

  • a void



103
104
105
# File 'lib/models/participant.rb', line 103

def is_muted=(value)
    @is_muted = value
end

#media_streamsObject

Gets the mediaStreams property value. The list of media streams.

Returns:

  • a media_stream



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.

Parameters:

  • value

    Value to set for the mediaStreams property.

Returns:

  • a void



118
119
120
# File 'lib/models/participant.rb', line 118

def media_streams=(value)
    @media_streams = value
end

#metadataObject

Gets the metadata property value. A blob of data provided by the participant in the roster.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the metadata property.

Returns:

  • a void



133
134
135
# File 'lib/models/participant.rb', line 133

def metadata=(value)
     = value
end

#recording_infoObject

Gets the recordingInfo property value. Information about whether the participant has recording capability.

Returns:

  • a recording_info



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.

Parameters:

  • value

    Value to set for the recordingInfo property.

Returns:

  • a void



148
149
150
# File 'lib/models/participant.rb', line 148

def recording_info=(value)
    @recording_info = value
end

#restricted_experienceObject

Gets the restrictedExperience property value. Indicates the reason or reasons media content from this participant is restricted.

Returns:

  • a online_meeting_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.

Parameters:

  • value

    Value to set for the restrictedExperience property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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