lib/purecloudplatformclientv2/models/cobrowsesession.rb in purecloudplatformclientv2-6.0.0 vs lib/purecloudplatformclientv2/models/cobrowsesession.rb in purecloudplatformclientv2-7.0.0

- old
+ new

@@ -52,10 +52,13 @@ attr_accessor :disconnected_time # The source provider for the co-browse session. attr_accessor :provider + # The id of the peer communication corresponding to a matching leg for this communication. + attr_accessor :peer_id + # 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 @@ -70,10 +73,11 @@ :'viewer_url' => :'viewerUrl', :'provider_event_time' => :'providerEventTime', :'connected_time' => :'connectedTime', :'disconnected_time' => :'disconnectedTime', :'provider' => :'provider', + :'peer_id' => :'peerId', :'segments' => :'segments' } end # Attribute type mapping. @@ -89,10 +93,11 @@ :'viewer_url' => :'String', :'provider_event_time' => :'DateTime', :'connected_time' => :'DateTime', :'disconnected_time' => :'DateTime', :'provider' => :'String', + :'peer_id' => :'String', :'segments' => :'Array<Segment>' } end # Initializes the object @@ -151,10 +156,14 @@ if attributes.has_key?(:'provider') self.provider = attributes[:'provider'] end + if attributes.has_key?(:'peerId') + self.peer_id = attributes[:'peerId'] + end + if attributes.has_key?(:'segments') if (value = attributes[:'segments']).is_a?(Array) self.segments = value end end @@ -216,10 +225,11 @@ 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 && + peer_id == o.peer_id && segments == o.segments end # @see the `==` method # @param [Object] Object to be compared @@ -228,10 +238,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [state, id, disconnect_type, _self, cobrowse_session_id, cobrowse_role, controlling, viewer_url, provider_event_time, connected_time, disconnected_time, provider, segments].hash + [state, id, disconnect_type, _self, cobrowse_session_id, cobrowse_role, controlling, viewer_url, provider_event_time, connected_time, disconnected_time, provider, peer_id, segments].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)