lib/purecloud/models/social_expression.rb in purecloud-0.52.1 vs lib/purecloud/models/social_expression.rb in purecloud-0.53.1
- old
+ new
@@ -55,10 +55,13 @@
attr_accessor :connected_time
# The timestamp when this communication disconnected from the conversation in the provider clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
attr_accessor :disconnected_time
+ # The source provider for the video.
+ attr_accessor :provider
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'state' => :'state',
@@ -83,12 +86,14 @@
:'start_hold_time' => :'startHoldTime',
:'connected_time' => :'connectedTime',
- :'disconnected_time' => :'disconnectedTime'
+ :'disconnected_time' => :'disconnectedTime',
+ :'provider' => :'provider'
+
}
end
# Attribute type mapping.
def self.swagger_types
@@ -103,11 +108,12 @@
:'segments' => :'Array<Segment>',
:'held' => :'BOOLEAN',
:'disconnect_type' => :'String',
:'start_hold_time' => :'DateTime',
:'connected_time' => :'DateTime',
- :'disconnected_time' => :'DateTime'
+ :'disconnected_time' => :'DateTime',
+ :'provider' => :'String'
}
end
def initialize(attributes = {})
@@ -171,10 +177,14 @@
if attributes[:'disconnectedTime']
self.disconnected_time = attributes[:'disconnectedTime']
end
+ if attributes[:'provider']
+ self.provider = attributes[:'provider']
+ end
+
end
# Custom attribute writer method checking allowed values (enum).
def state=(state)
allowed_values = ["ALERTING", "DIALING", "CONTACTING", "OFFERING", "CONNECTED", "DISCONNECTED", "TERMINATED", "NONE"]
@@ -207,20 +217,21 @@
segments == o.segments &&
held == o.held &&
disconnect_type == o.disconnect_type &&
start_hold_time == o.start_hold_time &&
connected_time == o.connected_time &&
- disconnected_time == o.disconnected_time
+ disconnected_time == o.disconnected_time &&
+ provider == o.provider
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, social_user_name, preview_text, recording_id, segments, held, disconnect_type, start_hold_time, connected_time, disconnected_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, disconnected_time, provider].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)