Class: MicrosoftGraph::Models::MeetingPolicyUpdatedEventMessageDetail

Inherits:
EventMessageDetail
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/meeting_policy_updated_event_message_detail.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from EventMessageDetail

#additional_data, #additional_data=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new meetingPolicyUpdatedEventMessageDetail and sets the default values.



22
23
24
25
# File 'lib/models/meeting_policy_updated_event_message_detail.rb', line 22

def initialize()
    super
    @odata_type = "#microsoft.graph.meetingPolicyUpdatedEventMessageDetail"
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 meeting_policy_updated_event_message_detail

Raises:

  • (StandardError)


31
32
33
34
# File 'lib/models/meeting_policy_updated_event_message_detail.rb', line 31

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

Instance Method Details

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



39
40
41
42
43
44
45
# File 'lib/models/meeting_policy_updated_event_message_detail.rb', line 39

def get_field_deserializers()
    return super.merge({
        "initiator" => lambda {|n| @initiator = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) },
        "meetingChatEnabled" => lambda {|n| @meeting_chat_enabled = n.get_boolean_value() },
        "meetingChatId" => lambda {|n| @meeting_chat_id = n.get_string_value() },
    })
end

#initiatorObject

Gets the initiator property value. Initiator of the event.

Returns:

  • a identity_set



50
51
52
# File 'lib/models/meeting_policy_updated_event_message_detail.rb', line 50

def initiator
    return @initiator
end

#initiator=(value) ⇒ Object

Sets the initiator property value. Initiator of the event.

Parameters:

  • value

    Value to set for the initiator property.

Returns:

  • a void



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

def initiator=(value)
    @initiator = value
end

#meeting_chat_enabledObject

Gets the meetingChatEnabled property value. Represents whether the meeting chat is enabled or not.

Returns:

  • a boolean



65
66
67
# File 'lib/models/meeting_policy_updated_event_message_detail.rb', line 65

def meeting_chat_enabled
    return @meeting_chat_enabled
end

#meeting_chat_enabled=(value) ⇒ Object

Sets the meetingChatEnabled property value. Represents whether the meeting chat is enabled or not.

Parameters:

  • value

    Value to set for the meetingChatEnabled property.

Returns:

  • a void



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

def meeting_chat_enabled=(value)
    @meeting_chat_enabled = value
end

#meeting_chat_idObject

Gets the meetingChatId property value. Unique identifier of the meeting chat.

Returns:

  • a string



80
81
82
# File 'lib/models/meeting_policy_updated_event_message_detail.rb', line 80

def meeting_chat_id
    return @meeting_chat_id
end

#meeting_chat_id=(value) ⇒ Object

Sets the meetingChatId property value. Unique identifier of the meeting chat.

Parameters:

  • value

    Value to set for the meetingChatId property.

Returns:

  • a void



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

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


96
97
98
99
100
101
102
# File 'lib/models/meeting_policy_updated_event_message_detail.rb', line 96

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_object_value("initiator", @initiator)
    writer.write_boolean_value("meetingChatEnabled", @meeting_chat_enabled)
    writer.write_string_value("meetingChatId", @meeting_chat_id)
end