Class: MicrosoftGraph::Models::EventMessage
- Inherits:
-
Message
- Object
- Entity
- OutlookItem
- Message
- MicrosoftGraph::Models::EventMessage
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/event_message.rb
Direct Known Subclasses
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#end_date_time ⇒ Object
Gets the endDateTime property value.
-
#end_date_time=(value) ⇒ Object
Sets the endDateTime property value.
-
#event ⇒ Object
Gets the event property value.
-
#event=(value) ⇒ Object
Sets the event property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new eventMessage and sets the default values.
-
#is_all_day ⇒ Object
Gets the isAllDay property value.
-
#is_all_day=(value) ⇒ Object
Sets the isAllDay property value.
-
#is_delegated ⇒ Object
Gets the isDelegated property value.
-
#is_delegated=(value) ⇒ Object
Sets the isDelegated property value.
-
#is_out_of_date ⇒ Object
Gets the isOutOfDate property value.
-
#is_out_of_date=(value) ⇒ Object
Sets the isOutOfDate property value.
-
#location ⇒ Object
Gets the location property value.
-
#location=(value) ⇒ Object
Sets the location property value.
-
#meeting_message_type ⇒ Object
Gets the meetingMessageType property value.
-
#meeting_message_type=(value) ⇒ Object
Sets the meetingMessageType property value.
-
#recurrence ⇒ Object
Gets the recurrence property value.
-
#recurrence=(value) ⇒ Object
Sets the recurrence property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#start_date_time ⇒ Object
Gets the startDateTime property value.
-
#start_date_time=(value) ⇒ Object
Sets the startDateTime property value.
-
#type ⇒ Object
Gets the type property value.
-
#type=(value) ⇒ Object
Sets the type property value.
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
#initialize ⇒ Object
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
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_time ⇒ Object
Gets the endDateTime property value. The endDateTime property
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
78 79 80 |
# File 'lib/models/event_message.rb', line 78 def end_date_time=(value) @end_date_time = value end |
#event ⇒ Object
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.
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.
93 94 95 |
# File 'lib/models/event_message.rb', line 93 def event=(value) @event = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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| = 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_day ⇒ Object
Gets the isAllDay property value. The isAllDay property
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
126 127 128 |
# File 'lib/models/event_message.rb', line 126 def is_all_day=(value) @is_all_day = value end |
#is_delegated ⇒ Object
Gets the isDelegated property value. The isDelegated property
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
141 142 143 |
# File 'lib/models/event_message.rb', line 141 def is_delegated=(value) @is_delegated = value end |
#is_out_of_date ⇒ Object
Gets the isOutOfDate property value. The isOutOfDate property
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
156 157 158 |
# File 'lib/models/event_message.rb', line 156 def is_out_of_date=(value) @is_out_of_date = value end |
#location ⇒ Object
Gets the location property value. The location property
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
171 172 173 |
# File 'lib/models/event_message.rb', line 171 def location=(value) @location = value end |
#meeting_message_type ⇒ Object
Gets the meetingMessageType property value. The meetingMessageType property
178 179 180 |
# File 'lib/models/event_message.rb', line 178 def return end |
#meeting_message_type=(value) ⇒ Object
Sets the meetingMessageType property value. The meetingMessageType property
186 187 188 |
# File 'lib/models/event_message.rb', line 186 def (value) = value end |
#recurrence ⇒ Object
Gets the recurrence property value. The recurrence property
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
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
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", ) writer.write_object_value("recurrence", @recurrence) writer.write_object_value("startDateTime", @start_date_time) writer.write_enum_value("type", @type) end |
#start_date_time ⇒ Object
Gets the startDateTime property value. The startDateTime property
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
235 236 237 |
# File 'lib/models/event_message.rb', line 235 def start_date_time=(value) @start_date_time = value end |
#type ⇒ Object
Gets the type property value. The type property
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
250 251 252 |
# File 'lib/models/event_message.rb', line 250 def type=(value) @type = value end |