lib/purecloudplatformclientv2/models/email_message.rb in purecloudplatformclientv2-58.0.1 vs lib/purecloudplatformclientv2/models/email_message.rb in purecloudplatformclientv2-59.0.0
- old
+ new
@@ -48,10 +48,13 @@
attr_accessor :html_body
# The time when the message was received or sent. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
attr_accessor :time
+ # Indicates whether the history of previous emails of the conversation is included within the email bodies of this message.
+ attr_accessor :history_included
+
# The URI for this object
attr_accessor :self_uri
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
@@ -77,10 +80,12 @@
:'html_body' => :'htmlBody',
:'time' => :'time',
+ :'history_included' => :'historyIncluded',
+
:'self_uri' => :'selfUri'
}
end
@@ -108,10 +113,12 @@
:'html_body' => :'String',
:'time' => :'DateTime',
+ :'history_included' => :'BOOLEAN',
+
:'self_uri' => :'String'
}
end
@@ -229,10 +236,19 @@
end
+ if attributes.has_key?(:'historyIncluded')
+
+
+ self.history_included = attributes[:'historyIncluded']
+
+
+ end
+
+
if attributes.has_key?(:'selfUri')
self.self_uri = attributes[:'selfUri']
@@ -316,10 +332,14 @@
+
+
+
+
end
@@ -379,10 +399,15 @@
+
+
+
+
+
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
@@ -395,10 +420,11 @@
subject == o.subject &&
attachments == o.attachments &&
text_body == o.text_body &&
html_body == o.html_body &&
time == o.time &&
+ history_included == o.history_included &&
self_uri == o.self_uri
end
# @see the `==` method
# @param [Object] Object to be compared
@@ -407,10 +433,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [id, name, to, cc, bcc, from, subject, attachments, text_body, html_body, time, self_uri].hash
+ [id, name, to, cc, bcc, from, subject, attachments, text_body, html_body, time, history_included, self_uri].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)