Class: MicrosoftGraph::Models::InvitationParticipantInfo

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/invitation_participant_info.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new invitationParticipantInfo and sets the default values.



49
50
51
# File 'lib/models/invitation_participant_info.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

Parameters:

  • parse_node

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

Returns:

  • a invitation_participant_info

Raises:

  • (StandardError)


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

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

Instance Method Details

#additional_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



34
35
36
# File 'lib/models/invitation_participant_info.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.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



42
43
44
# File 'lib/models/invitation_participant_info.rb', line 42

def additional_data=(value)
    @additional_data = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



65
66
67
68
69
70
71
72
73
74
# File 'lib/models/invitation_participant_info.rb', line 65

def get_field_deserializers()
    return {
        "hidden" => lambda {|n| @hidden = n.get_boolean_value() },
        "identity" => lambda {|n| @identity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "participantId" => lambda {|n| @participant_id = n.get_string_value() },
        "removeFromDefaultAudioRoutingGroup" => lambda {|n| @remove_from_default_audio_routing_group = n.get_boolean_value() },
        "replacesCallId" => lambda {|n| @replaces_call_id = n.get_string_value() },
    }
end

#hiddenObject

Gets the hidden property value. Optional. Whether to hide the participant from the roster.

Returns:

  • a boolean



79
80
81
# File 'lib/models/invitation_participant_info.rb', line 79

def hidden
    return @hidden
end

#hidden=(value) ⇒ Object

Sets the hidden property value. Optional. Whether to hide the participant from the roster.

Parameters:

  • value

    Value to set for the hidden property.

Returns:

  • a void



87
88
89
# File 'lib/models/invitation_participant_info.rb', line 87

def hidden=(value)
    @hidden = value
end

#identityObject

Gets the identity property value. The identity property

Returns:

  • a identity_set



94
95
96
# File 'lib/models/invitation_participant_info.rb', line 94

def identity
    return @identity
end

#identity=(value) ⇒ Object

Sets the identity property value. The identity property

Parameters:

  • value

    Value to set for the identity property.

Returns:

  • a void



102
103
104
# File 'lib/models/invitation_participant_info.rb', line 102

def identity=(value)
    @identity = value
end

#odata_typeObject

Gets the @odata.type property value. The OdataType property

Returns:

  • a string



109
110
111
# File 'lib/models/invitation_participant_info.rb', line 109

def odata_type
    return @odata_type
end

#odata_type=(value) ⇒ Object

Sets the @odata.type property value. The OdataType property

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



117
118
119
# File 'lib/models/invitation_participant_info.rb', line 117

def odata_type=(value)
    @odata_type = value
end

#participant_idObject

Gets the participantId property value. Optional. The ID of the target participant.

Returns:

  • a string



124
125
126
# File 'lib/models/invitation_participant_info.rb', line 124

def participant_id
    return @participant_id
end

#participant_id=(value) ⇒ Object

Sets the participantId property value. Optional. The ID of the target participant.

Parameters:

  • value

    Value to set for the participantId property.

Returns:

  • a void



132
133
134
# File 'lib/models/invitation_participant_info.rb', line 132

def participant_id=(value)
    @participant_id = value
end

#remove_from_default_audio_routing_groupObject

Gets the removeFromDefaultAudioRoutingGroup property value. Optional. Whether to remove them from the main mixer.

Returns:

  • a boolean



139
140
141
# File 'lib/models/invitation_participant_info.rb', line 139

def remove_from_default_audio_routing_group
    return @remove_from_default_audio_routing_group
end

#remove_from_default_audio_routing_group=(value) ⇒ Object

Sets the removeFromDefaultAudioRoutingGroup property value. Optional. Whether to remove them from the main mixer.

Parameters:

  • value

    Value to set for the removeFromDefaultAudioRoutingGroup property.

Returns:

  • a void



147
148
149
# File 'lib/models/invitation_participant_info.rb', line 147

def remove_from_default_audio_routing_group=(value)
    @remove_from_default_audio_routing_group = value
end

#replaces_call_idObject

Gets the replacesCallId property value. Optional. The call which the target identity is currently a part of. For peer-to-peer case, the call will be dropped once the participant is added successfully.

Returns:

  • a string



154
155
156
# File 'lib/models/invitation_participant_info.rb', line 154

def replaces_call_id
    return @replaces_call_id
end

#replaces_call_id=(value) ⇒ Object

Sets the replacesCallId property value. Optional. The call which the target identity is currently a part of. For peer-to-peer case, the call will be dropped once the participant is added successfully.

Parameters:

  • value

    Value to set for the replacesCallId property.

Returns:

  • a void



162
163
164
# File 'lib/models/invitation_participant_info.rb', line 162

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


170
171
172
173
174
175
176
177
178
179
# File 'lib/models/invitation_participant_info.rb', line 170

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_boolean_value("hidden", @hidden)
    writer.write_object_value("identity", @identity)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_string_value("participantId", @participant_id)
    writer.write_boolean_value("removeFromDefaultAudioRoutingGroup", @remove_from_default_audio_routing_group)
    writer.write_string_value("replacesCallId", @replaces_call_id)
    writer.write_additional_data(@additional_data)
end