Class: MicrosoftGraph::Models::EventMessageResponse

Inherits:
EventMessage show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/event_message_response.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from EventMessage

#end_date_time, #end_date_time=, #event, #event=, #is_all_day, #is_all_day=, #is_delegated, #is_delegated=, #is_out_of_date, #is_out_of_date=, #location, #location=, #meeting_message_type, #meeting_message_type=, #recurrence, #recurrence=, #start_date_time, #start_date_time=, #type, #type=

Methods inherited from Message

#attachments, #attachments=, #bcc_recipients, #bcc_recipients=, #body, #body=, #body_preview, #body_preview=, #cc_recipients, #cc_recipients=, #conversation_id, #conversation_id=, #conversation_index, #conversation_index=, #extensions, #extensions=, #flag, #flag=, #from, #from=, #has_attachments, #has_attachments=, #importance, #importance=, #inference_classification, #inference_classification=, #internet_message_headers, #internet_message_headers=, #internet_message_id, #internet_message_id=, #is_delivery_receipt_requested, #is_delivery_receipt_requested=, #is_draft, #is_draft=, #is_read, #is_read=, #is_read_receipt_requested, #is_read_receipt_requested=, #multi_value_extended_properties, #multi_value_extended_properties=, #parent_folder_id, #parent_folder_id=, #received_date_time, #received_date_time=, #reply_to, #reply_to=, #sender, #sender=, #sent_date_time, #sent_date_time=, #single_value_extended_properties, #single_value_extended_properties=, #subject, #subject=, #to_recipients, #to_recipients=, #unique_body, #unique_body=, #web_link, #web_link=

Methods inherited from OutlookItem

#categories, #categories=, #change_key, #change_key=, #created_date_time, #created_date_time=, #last_modified_date_time, #last_modified_date_time=

Methods inherited from Entity

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

Constructor Details

#initializeObject

Instantiates a new eventMessageResponse and sets the default values.



19
20
21
22
# File 'lib/models/event_message_response.rb', line 19

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

Raises:

  • (StandardError)


28
29
30
31
# File 'lib/models/event_message_response.rb', line 28

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

Instance Method Details

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



36
37
38
39
40
41
# File 'lib/models/event_message_response.rb', line 36

def get_field_deserializers()
    return super.merge({
        "proposedNewTime" => lambda {|n| @proposed_new_time = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::TimeSlot.create_from_discriminator_value(pn) }) },
        "responseType" => lambda {|n| @response_type = n.get_enum_value(MicrosoftGraph::Models::ResponseType) },
    })
end

#proposed_new_timeObject

Gets the proposedNewTime property value. The proposedNewTime property

Returns:

  • a time_slot



46
47
48
# File 'lib/models/event_message_response.rb', line 46

def proposed_new_time
    return @proposed_new_time
end

#proposed_new_time=(value) ⇒ Object

Sets the proposedNewTime property value. The proposedNewTime property

Parameters:

  • value

    Value to set for the proposedNewTime property.

Returns:

  • a void



54
55
56
# File 'lib/models/event_message_response.rb', line 54

def proposed_new_time=(value)
    @proposed_new_time = value
end

#response_typeObject

Gets the responseType property value. The responseType property

Returns:

  • a response_type



61
62
63
# File 'lib/models/event_message_response.rb', line 61

def response_type
    return @response_type
end

#response_type=(value) ⇒ Object

Sets the responseType property value. The responseType property

Parameters:

  • value

    Value to set for the responseType property.

Returns:

  • a void



69
70
71
# File 'lib/models/event_message_response.rb', line 69

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


77
78
79
80
81
82
# File 'lib/models/event_message_response.rb', line 77

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_object_value("proposedNewTime", @proposed_new_time)
    writer.write_enum_value("responseType", @response_type)
end