Class: AsposeEmailCloud::MapiCalendarDto
- Inherits:
-
MapiMessageItemBaseDto
- Object
- MapiMessageItemBaseDto
- AsposeEmailCloud::MapiCalendarDto
- Defined in:
- lib/aspose-email-cloud/models/mapi_calendar_dto.rb
Overview
Represents the mapi calendar object
Instance Attribute Summary collapse
-
#appointment_counter_proposal ⇒ BOOLEAN
Value indicating whether a Meeting Response object is a counter proposal.
-
#attachments ⇒ Array<MapiAttachmentDto>
Message item attachments.
-
#attendees ⇒ MapiCalendarAttendeesDto
Attendees.
-
#billing ⇒ String
Billing information associated with an item.
-
#body ⇒ String
Message text.
-
#body_html ⇒ String
Gets the BodyRtf of the message converted to HTML, if present, otherwise an empty string.
-
#body_rtf ⇒ String
RTF formatted message text.
-
#body_type ⇒ String
The content type of message body.
-
#busy_status ⇒ String
Enumerates the mapi calendar possible busy status.
-
#categories ⇒ Array<String>
Contains keywords or categories for the message object.
-
#client_intent ⇒ Array<String>
Actions the user has taken on this Meeting object.
-
#companies ⇒ Array<String>
Contains the names of the companies that are associated with an item.
-
#end_date ⇒ DateTime
End date and time of the event.
-
#end_date_time_zone ⇒ MapiCalendarTimeZoneDto
Time zone information that indicates the time zone of the EndDate property.
-
#is_all_day ⇒ BOOLEAN
Value indicating whether the event is an all-day event.
-
#item_id ⇒ String
The item id, uses with a server.
-
#key_words ⇒ String
Categories of the calendar object.
-
#location ⇒ String
Location of the event.
-
#message_class ⇒ String
Case-sensitive string that identifies the sender-defined message class, such as IPM.Note.
-
#mileage ⇒ String
Contains the mileage information that is associated with an item.
-
#organizer ⇒ MapiElectronicAddressDto
Organizer.
-
#properties ⇒ Array<MapiPropertyDto>
List of MAPI properties.
-
#recipients ⇒ Array<MapiRecipientDto>
Recipients of the message.
-
#recurrence ⇒ MapiCalendarEventRecurrenceDto
Recurrence properties.
-
#reminder_delta ⇒ Integer
Interval, in minutes, between the time at which the reminder first becomes overdue and the start time of the Calendar object.
-
#reminder_file_parameter ⇒ String
Full path of the sound that a client SHOULD play when the reminder becomes overdue.
-
#reminder_set ⇒ BOOLEAN
Value indicating whether a reminder is set on the object.
-
#sensitivity ⇒ String
Contains values that indicate the message sensitivity.
-
#sequence ⇒ Integer
Sequence number.
-
#start_date ⇒ DateTime
Start date and time of the event.
-
#start_date_time_zone ⇒ MapiCalendarTimeZoneDto
Time zone information that indicates the time zone of the StartDate property.
-
#subject ⇒ String
Subject of the message.
-
#subject_prefix ⇒ String
Subject prefix that typically indicates some action on a message, such as "FW: " for forwarding.
-
#uid ⇒ String
Unique identifier.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
-
#discriminator ⇒ Object
getter method.
-
#discriminator=(discriminator) ⇒ Object
setter method, parameter ignored.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attachments: nil, billing: nil, body: nil, body_html: nil, body_rtf: nil, body_type: nil, categories: nil, companies: nil, item_id: nil, message_class: nil, mileage: nil, recipients: nil, sensitivity: nil, subject: nil, subject_prefix: nil, properties: nil, appointment_counter_proposal: nil, attendees: nil, busy_status: nil, client_intent: nil, end_date: nil, end_date_time_zone: nil, is_all_day: nil, key_words: nil, location: nil, recurrence: nil, reminder_delta: nil, reminder_file_parameter: nil, reminder_set: nil, sequence: nil, start_date: nil, start_date_time_zone: nil, uid: nil, organizer: nil) ⇒ MapiCalendarDto
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attachments: nil, billing: nil, body: nil, body_html: nil, body_rtf: nil, body_type: nil, categories: nil, companies: nil, item_id: nil, message_class: nil, mileage: nil, recipients: nil, sensitivity: nil, subject: nil, subject_prefix: nil, properties: nil, appointment_counter_proposal: nil, attendees: nil, busy_status: nil, client_intent: nil, end_date: nil, end_date_time_zone: nil, is_all_day: nil, key_words: nil, location: nil, recurrence: nil, reminder_delta: nil, reminder_file_parameter: nil, reminder_set: nil, sequence: nil, start_date: nil, start_date_time_zone: nil, uid: nil, organizer: nil) ⇒ MapiCalendarDto
Initializes the object
257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 257 def initialize( attachments: nil, billing: nil, body: nil, body_html: nil, body_rtf: nil, body_type: nil, categories: nil, companies: nil, item_id: nil, message_class: nil, mileage: nil, recipients: nil, sensitivity: nil, subject: nil, subject_prefix: nil, properties: nil, appointment_counter_proposal: nil, attendees: nil, busy_status: nil, client_intent: nil, end_date: nil, end_date_time_zone: nil, is_all_day: nil, key_words: nil, location: nil, recurrence: nil, reminder_delta: nil, reminder_file_parameter: nil, reminder_set: nil, sequence: nil, start_date: nil, start_date_time_zone: nil, uid: nil, organizer: nil) self. = if self.billing = billing if billing self.body = body if body self.body_html = body_html if body_html self.body_rtf = body_rtf if body_rtf self.body_type = body_type if body_type self.categories = categories if categories self.companies = companies if companies self.item_id = item_id if item_id self. = if self.mileage = mileage if mileage self.recipients = recipients if recipients self.sensitivity = sensitivity if sensitivity self.subject = subject if subject self.subject_prefix = subject_prefix if subject_prefix self.properties = properties if properties self.appointment_counter_proposal = appointment_counter_proposal if appointment_counter_proposal self.attendees = attendees if attendees self.busy_status = busy_status if busy_status self.client_intent = client_intent if client_intent self.end_date = end_date if end_date self.end_date_time_zone = end_date_time_zone if end_date_time_zone self.is_all_day = is_all_day if is_all_day self.key_words = key_words if key_words self.location = location if location self.recurrence = recurrence if recurrence self.reminder_delta = reminder_delta if reminder_delta self.reminder_file_parameter = reminder_file_parameter if reminder_file_parameter self.reminder_set = reminder_set if reminder_set self.sequence = sequence if sequence self.start_date = start_date if start_date self.start_date_time_zone = start_date_time_zone if start_date_time_zone self.uid = uid if uid self.organizer = organizer if organizer end |
Instance Attribute Details
#appointment_counter_proposal ⇒ BOOLEAN
Value indicating whether a Meeting Response object is a counter proposal.
88 89 90 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 88 def appointment_counter_proposal @appointment_counter_proposal end |
#attachments ⇒ Array<MapiAttachmentDto>
Message item attachments.
33 34 35 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 33 def @attachments end |
#attendees ⇒ MapiCalendarAttendeesDto
Attendees
91 92 93 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 91 def attendees @attendees end |
#billing ⇒ String
Billing information associated with an item.
36 37 38 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 36 def billing @billing end |
#body ⇒ String
Message text.
39 40 41 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 39 def body @body end |
#body_html ⇒ String
Gets the BodyRtf of the message converted to HTML, if present, otherwise an empty string.
42 43 44 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 42 def body_html @body_html end |
#body_rtf ⇒ String
RTF formatted message text.
45 46 47 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 45 def body_rtf @body_rtf end |
#body_type ⇒ String
The content type of message body. Enum, available values: PlainText, Html, Rtf
48 49 50 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 48 def body_type @body_type end |
#busy_status ⇒ String
Enumerates the mapi calendar possible busy status. Enum, available values: Free, Tentative, Busy, OutOfOffice
94 95 96 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 94 def busy_status @busy_status end |
#categories ⇒ Array<String>
Contains keywords or categories for the message object.
51 52 53 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 51 def categories @categories end |
#client_intent ⇒ Array<String>
Actions the user has taken on this Meeting object. Items: Enumerates the actions the user can taken on the Meeting object. Enum, available values: Manager, Delegate, DeletedWithNoResponse, DeletedExceptionWithNoResponse, RespondedTentative, RespondedAccept, RespondedDecline, ModifiedStartTime, ModifiedEndTime, ModifiedLocation, RespondedExceptionDecline, Canceled, ExceptionCanceled
97 98 99 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 97 def client_intent @client_intent end |
#companies ⇒ Array<String>
Contains the names of the companies that are associated with an item.
54 55 56 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 54 def companies @companies end |
#end_date ⇒ DateTime
End date and time of the event. If the date is not set, default value for DateTime is returned.
100 101 102 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 100 def end_date @end_date end |
#end_date_time_zone ⇒ MapiCalendarTimeZoneDto
Time zone information that indicates the time zone of the EndDate property.
103 104 105 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 103 def end_date_time_zone @end_date_time_zone end |
#is_all_day ⇒ BOOLEAN
Value indicating whether the event is an all-day event.
106 107 108 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 106 def is_all_day @is_all_day end |
#item_id ⇒ String
The item id, uses with a server.
57 58 59 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 57 def item_id @item_id end |
#key_words ⇒ String
Categories of the calendar object.
109 110 111 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 109 def key_words @key_words end |
#location ⇒ String
Location of the event.
112 113 114 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 112 def location @location end |
#message_class ⇒ String
Case-sensitive string that identifies the sender-defined message class, such as IPM.Note. The message class specifies the type, purpose, or content of the message.
60 61 62 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 60 def @message_class end |
#mileage ⇒ String
Contains the mileage information that is associated with an item.
63 64 65 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 63 def mileage @mileage end |
#organizer ⇒ MapiElectronicAddressDto
Organizer
139 140 141 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 139 def organizer @organizer end |
#properties ⇒ Array<MapiPropertyDto>
List of MAPI properties
78 79 80 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 78 def properties @properties end |
#recipients ⇒ Array<MapiRecipientDto>
Recipients of the message.
66 67 68 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 66 def recipients @recipients end |
#recurrence ⇒ MapiCalendarEventRecurrenceDto
Recurrence properties.
115 116 117 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 115 def recurrence @recurrence end |
#reminder_delta ⇒ Integer
Interval, in minutes, between the time at which the reminder first becomes overdue and the start time of the Calendar object.
118 119 120 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 118 def reminder_delta @reminder_delta end |
#reminder_file_parameter ⇒ String
Full path of the sound that a client SHOULD play when the reminder becomes overdue.
121 122 123 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 121 def reminder_file_parameter @reminder_file_parameter end |
#reminder_set ⇒ BOOLEAN
Value indicating whether a reminder is set on the object.
124 125 126 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 124 def reminder_set @reminder_set end |
#sensitivity ⇒ String
Contains values that indicate the message sensitivity. Enum, available values: None, Personal, Private, CompanyConfidential
69 70 71 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 69 def sensitivity @sensitivity end |
#sequence ⇒ Integer
Sequence number.
127 128 129 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 127 def sequence @sequence end |
#start_date ⇒ DateTime
Start date and time of the event. If the date is not set, default value for DateTime is returned.
130 131 132 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 130 def start_date @start_date end |
#start_date_time_zone ⇒ MapiCalendarTimeZoneDto
Time zone information that indicates the time zone of the StartDate property.
133 134 135 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 133 def start_date_time_zone @start_date_time_zone end |
#subject ⇒ String
Subject of the message.
72 73 74 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 72 def subject @subject end |
#subject_prefix ⇒ String
Subject prefix that typically indicates some action on a message, such as "FW: " for forwarding.
75 76 77 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 75 def subject_prefix @subject_prefix end |
#uid ⇒ String
Unique identifier.
136 137 138 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 136 def uid @uid end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 141 def self.attribute_map { :'attachments' => :'attachments', :'billing' => :'billing', :'body' => :'body', :'body_html' => :'bodyHtml', :'body_rtf' => :'bodyRtf', :'body_type' => :'bodyType', :'categories' => :'categories', :'companies' => :'companies', :'item_id' => :'itemId', :'message_class' => :'messageClass', :'mileage' => :'mileage', :'recipients' => :'recipients', :'sensitivity' => :'sensitivity', :'subject' => :'subject', :'subject_prefix' => :'subjectPrefix', :'properties' => :'properties', :'discriminator' => :'discriminator', :'appointment_counter_proposal' => :'appointmentCounterProposal', :'attendees' => :'attendees', :'busy_status' => :'busyStatus', :'client_intent' => :'clientIntent', :'end_date' => :'endDate', :'end_date_time_zone' => :'endDateTimeZone', :'is_all_day' => :'isAllDay', :'key_words' => :'keyWords', :'location' => :'location', :'recurrence' => :'recurrence', :'reminder_delta' => :'reminderDelta', :'reminder_file_parameter' => :'reminderFileParameter', :'reminder_set' => :'reminderSet', :'sequence' => :'sequence', :'start_date' => :'startDate', :'start_date_time_zone' => :'startDateTimeZone', :'uid' => :'uid', :'organizer' => :'organizer' } end |
.swagger_types ⇒ Object
Attribute type mapping.
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 182 def self.swagger_types { :'attachments' => :'Array<MapiAttachmentDto>', :'billing' => :'String', :'body' => :'String', :'body_html' => :'String', :'body_rtf' => :'String', :'body_type' => :'String', :'categories' => :'Array<String>', :'companies' => :'Array<String>', :'item_id' => :'String', :'message_class' => :'String', :'mileage' => :'String', :'recipients' => :'Array<MapiRecipientDto>', :'sensitivity' => :'String', :'subject' => :'String', :'subject_prefix' => :'String', :'properties' => :'Array<MapiPropertyDto>', :'discriminator' => :'String', :'appointment_counter_proposal' => :'BOOLEAN', :'attendees' => :'MapiCalendarAttendeesDto', :'busy_status' => :'String', :'client_intent' => :'Array<String>', :'end_date' => :'DateTime', :'end_date_time_zone' => :'MapiCalendarTimeZoneDto', :'is_all_day' => :'BOOLEAN', :'key_words' => :'String', :'location' => :'String', :'recurrence' => :'MapiCalendarEventRecurrenceDto', :'reminder_delta' => :'Integer', :'reminder_file_parameter' => :'String', :'reminder_set' => :'BOOLEAN', :'sequence' => :'Integer', :'start_date' => :'DateTime', :'start_date_time_zone' => :'MapiCalendarTimeZoneDto', :'uid' => :'String', :'organizer' => :'MapiElectronicAddressDto' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 398 def ==(o) return true if self.equal?(o) self.class == o.class && == o. && billing == o.billing && body == o.body && body_html == o.body_html && body_rtf == o.body_rtf && body_type == o.body_type && categories == o.categories && companies == o.companies && item_id == o.item_id && == o. && mileage == o.mileage && recipients == o.recipients && sensitivity == o.sensitivity && subject == o.subject && subject_prefix == o.subject_prefix && properties == o.properties && discriminator == o.discriminator && appointment_counter_proposal == o.appointment_counter_proposal && attendees == o.attendees && busy_status == o.busy_status && client_intent == o.client_intent && end_date == o.end_date && end_date_time_zone == o.end_date_time_zone && is_all_day == o.is_all_day && key_words == o.key_words && location == o.location && recurrence == o.recurrence && reminder_delta == o.reminder_delta && reminder_file_parameter == o.reminder_file_parameter && reminder_set == o.reminder_set && sequence == o.sequence && start_date == o.start_date && start_date_time_zone == o.start_date_time_zone && uid == o.uid && organizer == o.organizer end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 476 def _deserialize(type, value) case type.to_sym when :DateTime DateTime.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :BOOLEAN if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model sub_type = value[:type] || value[:discriminator] || type if AsposeEmailCloud.const_defined?(sub_type) type = sub_type end temp_model = AsposeEmailCloud.const_get(type).new temp_model.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
546 547 548 549 550 551 552 553 554 555 556 557 558 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 546 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 453 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| attribute_key = self.class.attribute_map[key] attribute_key = (attribute_key[0, 1].downcase + attribute_key[1..-1]).to_sym if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[attribute_key].is_a?(Array) self.send("#{key}=", attributes[attribute_key].map { |v| _deserialize($1, v) }) end elsif !attributes[attribute_key].nil? self.send("#{key}=", _deserialize(type, attributes[attribute_key])) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#discriminator ⇒ Object
getter method
79 80 81 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 79 def discriminator #getter method self.class.name.split('::').last end |
#discriminator=(discriminator) ⇒ Object
setter method, parameter ignored
83 84 85 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 83 def discriminator=(discriminator) #setter method, parameter ignored @discriminator = self.class.name.split('::').last end |
#eql?(o) ⇒ Boolean
440 441 442 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 440 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
446 447 448 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 446 def hash [, billing, body, body_html, body_rtf, body_type, categories, companies, item_id, , mileage, recipients, sensitivity, subject, subject_prefix, properties, discriminator, appointment_counter_proposal, attendees, busy_status, client_intent, end_date, end_date_time_zone, is_all_day, key_words, location, recurrence, reminder_delta, reminder_file_parameter, reminder_set, sequence, start_date, start_date_time_zone, uid, organizer].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 330 def list_invalid_properties invalid_properties = Array.new if @body_type.nil? invalid_properties.push('invalid value for "body_type", body_type cannot be nil.') end if @sensitivity.nil? invalid_properties.push('invalid value for "sensitivity", sensitivity cannot be nil.') end if @discriminator.nil? invalid_properties.push('invalid value for "discriminator", discriminator cannot be nil.') end if @appointment_counter_proposal.nil? invalid_properties.push('invalid value for "appointment_counter_proposal", appointment_counter_proposal cannot be nil.') end if @busy_status.nil? invalid_properties.push('invalid value for "busy_status", busy_status cannot be nil.') end if @end_date.nil? invalid_properties.push('invalid value for "end_date", end_date cannot be nil.') end if @is_all_day.nil? invalid_properties.push('invalid value for "is_all_day", is_all_day cannot be nil.') end if @reminder_delta.nil? invalid_properties.push('invalid value for "reminder_delta", reminder_delta cannot be nil.') end if @reminder_set.nil? invalid_properties.push('invalid value for "reminder_set", reminder_set cannot be nil.') end if @sequence.nil? invalid_properties.push('invalid value for "sequence", sequence cannot be nil.') end if @start_date.nil? invalid_properties.push('invalid value for "start_date", start_date cannot be nil.') end invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
526 527 528 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 526 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
532 533 534 535 536 537 538 539 540 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 532 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) next if value.nil? hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
520 521 522 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 520 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
381 382 383 384 385 386 387 388 389 390 391 392 393 394 |
# File 'lib/aspose-email-cloud/models/mapi_calendar_dto.rb', line 381 def valid? return false if @body_type.nil? return false if @sensitivity.nil? return false if @discriminator.nil? return false if @appointment_counter_proposal.nil? return false if @busy_status.nil? return false if @end_date.nil? return false if @is_all_day.nil? return false if @reminder_delta.nil? return false if @reminder_set.nil? return false if @sequence.nil? return false if @start_date.nil? true end |