lib/purecloud/models/social_expression.rb in purecloud-0.18.0 vs lib/purecloud/models/social_expression.rb in purecloud-0.25.0
- old
+ new
@@ -8,10 +8,12 @@
attr_accessor :social_media_id
attr_accessor :social_media_hub
+ attr_accessor :social_user_name
+
attr_accessor :preview_text
attr_accessor :recording_id
attr_accessor :segments
@@ -21,10 +23,13 @@
attr_accessor :disconnect_type
# Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
attr_accessor :start_hold_time
+ # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
+ attr_accessor :connected_time
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'state' => :'state',
@@ -33,38 +38,44 @@
:'social_media_id' => :'socialMediaId',
:'social_media_hub' => :'socialMediaHub',
+ :'social_user_name' => :'socialUserName',
+
:'preview_text' => :'previewText',
:'recording_id' => :'recordingId',
:'segments' => :'segments',
:'held' => :'held',
:'disconnect_type' => :'disconnectType',
- :'start_hold_time' => :'startHoldTime'
+ :'start_hold_time' => :'startHoldTime',
+ :'connected_time' => :'connectedTime'
+
}
end
# Attribute type mapping.
def self.swagger_types
{
:'state' => :'String',
:'id' => :'String',
:'social_media_id' => :'String',
:'social_media_hub' => :'String',
+ :'social_user_name' => :'String',
:'preview_text' => :'String',
:'recording_id' => :'String',
:'segments' => :'Array<Segment>',
:'held' => :'BOOLEAN',
:'disconnect_type' => :'String',
- :'start_hold_time' => :'DateTime'
+ :'start_hold_time' => :'DateTime',
+ :'connected_time' => :'DateTime'
}
end
def initialize(attributes = {})
@@ -88,10 +99,14 @@
if attributes[:'socialMediaHub']
self.social_media_hub = attributes[:'socialMediaHub']
end
+ if attributes[:'socialUserName']
+ self.social_user_name = attributes[:'socialUserName']
+ end
+
if attributes[:'previewText']
self.preview_text = attributes[:'previewText']
end
if attributes[:'recordingId']
@@ -116,10 +131,14 @@
if attributes[:'startHoldTime']
self.start_hold_time = attributes[:'startHoldTime']
end
+ if attributes[:'connectedTime']
+ self.connected_time = attributes[:'connectedTime']
+ end
+
end
# Custom attribute writer method checking allowed values (enum).
def state=(state)
allowed_values = ["ALERTING", "DIALING", "CONTACTING", "OFFERING", "CONNECTED", "DISCONNECTED", "TERMINATED", "NONE"]
@@ -144,25 +163,27 @@
self.class == o.class &&
state == o.state &&
id == o.id &&
social_media_id == o.social_media_id &&
social_media_hub == o.social_media_hub &&
+ social_user_name == o.social_user_name &&
preview_text == o.preview_text &&
recording_id == o.recording_id &&
segments == o.segments &&
held == o.held &&
disconnect_type == o.disconnect_type &&
- start_hold_time == o.start_hold_time
+ start_hold_time == o.start_hold_time &&
+ connected_time == o.connected_time
end
# @see the `==` method
def eql?(o)
self == o
end
# Calculate hash code according to all attributes.
def hash
- [state, id, social_media_id, social_media_hub, preview_text, recording_id, segments, held, disconnect_type, start_hold_time].hash
+ [state, id, social_media_id, social_media_hub, social_user_name, preview_text, recording_id, segments, held, disconnect_type, start_hold_time, connected_time].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)