lib/purecloud/models/cobrowsesession.rb in purecloud-0.52.1 vs lib/purecloud/models/cobrowsesession.rb in purecloud-0.53.1

- old
+ new

@@ -49,10 +49,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 co-browse session. + attr_accessor :provider + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'state' => :'state', @@ -73,12 +76,14 @@ :'provider_event_time' => :'providerEventTime', :'connected_time' => :'connectedTime', - :'disconnected_time' => :'disconnectedTime' + :'disconnected_time' => :'disconnectedTime', + :'provider' => :'provider' + } end # Attribute type mapping. def self.swagger_types @@ -91,11 +96,12 @@ :'cobrowse_role' => :'String', :'controlling' => :'Array<String>', :'viewer_url' => :'String', :'provider_event_time' => :'DateTime', :'connected_time' => :'DateTime', - :'disconnected_time' => :'DateTime' + :'disconnected_time' => :'DateTime', + :'provider' => :'String' } end def initialize(attributes = {}) @@ -149,10 +155,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", "SCHEDULED", "NONE"] @@ -183,20 +193,21 @@ cobrowse_role == o.cobrowse_role && 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 + 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, disconnect_type, _self, cobrowse_session_id, cobrowse_role, controlling, viewer_url, provider_event_time, connected_time, disconnected_time].hash + [state, id, disconnect_type, _self, cobrowse_session_id, cobrowse_role, controlling, viewer_url, provider_event_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)