lib/purecloud/models/cobrowsesession.rb in purecloud-0.56.1 vs lib/purecloud/models/cobrowsesession.rb in purecloud-0.57.1
- old
+ new
@@ -52,10 +52,13 @@
attr_accessor :disconnected_time
# The source provider for the co-browse session.
attr_accessor :provider
+ # The time line of the participant's call, divided into activity segments.
+ attr_accessor :segments
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'state' => :'state',
@@ -78,12 +81,14 @@
:'connected_time' => :'connectedTime',
:'disconnected_time' => :'disconnectedTime',
- :'provider' => :'provider'
+ :'provider' => :'provider',
+ :'segments' => :'segments'
+
}
end
# Attribute type mapping.
def self.swagger_types
@@ -97,11 +102,12 @@
:'controlling' => :'Array<String>',
:'viewer_url' => :'String',
:'provider_event_time' => :'DateTime',
:'connected_time' => :'DateTime',
:'disconnected_time' => :'DateTime',
- :'provider' => :'String'
+ :'provider' => :'String',
+ :'segments' => :'Array<Segment>'
}
end
def initialize(attributes = {})
@@ -159,10 +165,16 @@
if attributes[:'provider']
self.provider = attributes[:'provider']
end
+ if attributes[:'segments']
+ if (value = attributes[:'segments']).is_a?(Array)
+ self.segments = value
+ end
+ end
+
end
# Custom attribute writer method checking allowed values (enum).
def state=(state)
allowed_values = ["ALERTING", "DIALING", "CONTACTING", "OFFERING", "CONNECTED", "DISCONNECTED", "TERMINATED", "SCHEDULED", "NONE"]
@@ -194,20 +206,21 @@
controlling == o.controlling &&
viewer_url == o.viewer_url &&
provider_event_time == o.provider_event_time &&
connected_time == o.connected_time &&
disconnected_time == o.disconnected_time &&
- provider == o.provider
+ provider == o.provider &&
+ segments == o.segments
end
# @see the `==` method
def eql?(o)
self == o
end
# Calculate hash code according to all attributes.
def hash
- [state, id, disconnect_type, _self, cobrowse_session_id, cobrowse_role, controlling, viewer_url, provider_event_time, connected_time, disconnected_time, provider].hash
+ [state, id, disconnect_type, _self, cobrowse_session_id, cobrowse_role, controlling, viewer_url, provider_event_time, connected_time, disconnected_time, provider, segments].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)