Class: MicrosoftGraph::Models::EventMessage

Inherits:
Message show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/event_message.rb

Direct Known Subclasses

EventMessageRequest, EventMessageResponse

Class Method Summary collapse

Instance Method Summary collapse

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 eventMessage and sets the default values.



43
44
45
46
# File 'lib/models/event_message.rb', line 43

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

Raises:

  • (StandardError)


52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/models/event_message.rb', line 52

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    mapping_value_node = parse_node.get_child_node("@odata.type")
    unless mapping_value_node.nil? then
        mapping_value = mapping_value_node.get_string_value
        case mapping_value
            when "#microsoft.graph.eventMessageRequest"
                return EventMessageRequest.new
            when "#microsoft.graph.eventMessageResponse"
                return EventMessageResponse.new
        end
    end
    return EventMessage.new
end

Instance Method Details

#end_date_timeObject

Gets the endDateTime property value. The endDateTime property

Returns:

  • a date_time_time_zone



70
71
72
# File 'lib/models/event_message.rb', line 70

def end_date_time
    return @end_date_time
end

#end_date_time=(value) ⇒ Object

Sets the endDateTime property value. The endDateTime property

Parameters:

  • value

    Value to set for the endDateTime property.

Returns:

  • a void



78
79
80
# File 'lib/models/event_message.rb', line 78

def end_date_time=(value)
    @end_date_time = value
end

#eventObject

Gets the event property value. The event associated with the event message. The assumption for attendees or room resources is that the Calendar Attendant is set to automatically update the calendar with an event when meeting request event messages arrive. Navigation property. Read-only.

Returns:

  • a event



85
86
87
# File 'lib/models/event_message.rb', line 85

def event
    return @event
end

#event=(value) ⇒ Object

Sets the event property value. The event associated with the event message. The assumption for attendees or room resources is that the Calendar Attendant is set to automatically update the calendar with an event when meeting request event messages arrive. Navigation property. Read-only.

Parameters:

  • value

    Value to set for the event property.

Returns:

  • a void



93
94
95
# File 'lib/models/event_message.rb', line 93

def event=(value)
    @event = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



100
101
102
103
104
105
106
107
108
109
110
111
112
113
# File 'lib/models/event_message.rb', line 100

def get_field_deserializers()
    return super.merge({
        "endDateTime" => lambda {|n| @end_date_time = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DateTimeTimeZone.create_from_discriminator_value(pn) }) },
        "event" => lambda {|n| @event = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Event.create_from_discriminator_value(pn) }) },
        "isAllDay" => lambda {|n| @is_all_day = n.get_boolean_value() },
        "isDelegated" => lambda {|n| @is_delegated = n.get_boolean_value() },
        "isOutOfDate" => lambda {|n| @is_out_of_date = n.get_boolean_value() },
        "location" => lambda {|n| @location = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Location.create_from_discriminator_value(pn) }) },
        "meetingMessageType" => lambda {|n| @meeting_message_type = n.get_enum_value(MicrosoftGraph::Models::MeetingMessageType) },
        "recurrence" => lambda {|n| @recurrence = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::PatternedRecurrence.create_from_discriminator_value(pn) }) },
        "startDateTime" => lambda {|n| @start_date_time = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DateTimeTimeZone.create_from_discriminator_value(pn) }) },
        "type" => lambda {|n| @type = n.get_enum_value(MicrosoftGraph::Models::EventType) },
    })
end

#is_all_dayObject

Gets the isAllDay property value. The isAllDay property

Returns:

  • a boolean



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

def is_all_day
    return @is_all_day
end

#is_all_day=(value) ⇒ Object

Sets the isAllDay property value. The isAllDay property

Parameters:

  • value

    Value to set for the isAllDay property.

Returns:

  • a void



126
127
128
# File 'lib/models/event_message.rb', line 126

def is_all_day=(value)
    @is_all_day = value
end

#is_delegatedObject

Gets the isDelegated property value. The isDelegated property

Returns:

  • a boolean



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

def is_delegated
    return @is_delegated
end

#is_delegated=(value) ⇒ Object

Sets the isDelegated property value. The isDelegated property

Parameters:

  • value

    Value to set for the isDelegated property.

Returns:

  • a void



141
142
143
# File 'lib/models/event_message.rb', line 141

def is_delegated=(value)
    @is_delegated = value
end

#is_out_of_dateObject

Gets the isOutOfDate property value. The isOutOfDate property

Returns:

  • a boolean



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

def is_out_of_date
    return @is_out_of_date
end

#is_out_of_date=(value) ⇒ Object

Sets the isOutOfDate property value. The isOutOfDate property

Parameters:

  • value

    Value to set for the isOutOfDate property.

Returns:

  • a void



156
157
158
# File 'lib/models/event_message.rb', line 156

def is_out_of_date=(value)
    @is_out_of_date = value
end

#locationObject

Gets the location property value. The location property

Returns:

  • a location



163
164
165
# File 'lib/models/event_message.rb', line 163

def location
    return @location
end

#location=(value) ⇒ Object

Sets the location property value. The location property

Parameters:

  • value

    Value to set for the location property.

Returns:

  • a void



171
172
173
# File 'lib/models/event_message.rb', line 171

def location=(value)
    @location = value
end

#meeting_message_typeObject

Gets the meetingMessageType property value. The meetingMessageType property

Returns:

  • a meeting_message_type



178
179
180
# File 'lib/models/event_message.rb', line 178

def meeting_message_type
    return @meeting_message_type
end

#meeting_message_type=(value) ⇒ Object

Sets the meetingMessageType property value. The meetingMessageType property

Parameters:

  • value

    Value to set for the meetingMessageType property.

Returns:

  • a void



186
187
188
# File 'lib/models/event_message.rb', line 186

def meeting_message_type=(value)
    @meeting_message_type = value
end

#recurrenceObject

Gets the recurrence property value. The recurrence property

Returns:

  • a patterned_recurrence



193
194
195
# File 'lib/models/event_message.rb', line 193

def recurrence
    return @recurrence
end

#recurrence=(value) ⇒ Object

Sets the recurrence property value. The recurrence property

Parameters:

  • value

    Value to set for the recurrence property.

Returns:

  • a void



201
202
203
# File 'lib/models/event_message.rb', line 201

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


209
210
211
212
213
214
215
216
217
218
219
220
221
222
# File 'lib/models/event_message.rb', line 209

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_object_value("endDateTime", @end_date_time)
    writer.write_object_value("event", @event)
    writer.write_boolean_value("isAllDay", @is_all_day)
    writer.write_boolean_value("isDelegated", @is_delegated)
    writer.write_boolean_value("isOutOfDate", @is_out_of_date)
    writer.write_object_value("location", @location)
    writer.write_enum_value("meetingMessageType", @meeting_message_type)
    writer.write_object_value("recurrence", @recurrence)
    writer.write_object_value("startDateTime", @start_date_time)
    writer.write_enum_value("type", @type)
end

#start_date_timeObject

Gets the startDateTime property value. The startDateTime property

Returns:

  • a date_time_time_zone



227
228
229
# File 'lib/models/event_message.rb', line 227

def start_date_time
    return @start_date_time
end

#start_date_time=(value) ⇒ Object

Sets the startDateTime property value. The startDateTime property

Parameters:

  • value

    Value to set for the startDateTime property.

Returns:

  • a void



235
236
237
# File 'lib/models/event_message.rb', line 235

def start_date_time=(value)
    @start_date_time = value
end

#typeObject

Gets the type property value. The type property

Returns:

  • a event_type



242
243
244
# File 'lib/models/event_message.rb', line 242

def type
    return @type
end

#type=(value) ⇒ Object

Sets the type property value. The type property

Parameters:

  • value

    Value to set for the type property.

Returns:

  • a void



250
251
252
# File 'lib/models/event_message.rb', line 250

def type=(value)
    @type = value
end