lib/purecloud/models/conversation_notification_cobrowsesessions.rb in purecloud-0.68.1 vs lib/purecloud/models/conversation_notification_cobrowsesessions.rb in purecloud-0.69.1
- old
+ new
@@ -16,90 +16,90 @@
require 'date'
module PureCloud
class ConversationNotificationCobrowsesessions
- attr_accessor :id
-
- attr_accessor :disconnect_type
-
attr_accessor :disconnected_time
- attr_accessor :controlling
-
- attr_accessor :connected_time
-
- attr_accessor :additional_properties
-
attr_accessor :cobrowse_role
- attr_accessor :state
+ attr_accessor :cobrowse_session_id
+ attr_accessor :viewer_url
+
attr_accessor :room_id
attr_accessor :provider_event_time
attr_accessor :provider
+ attr_accessor :disconnect_type
+
attr_accessor :_self
- attr_accessor :viewer_url
+ attr_accessor :connected_time
- attr_accessor :cobrowse_session_id
+ attr_accessor :state
+ attr_accessor :id
+
+ attr_accessor :additional_properties
+
+ attr_accessor :controlling
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
- :'id' => :'id',
-
- :'disconnect_type' => :'disconnectType',
-
:'disconnected_time' => :'disconnectedTime',
- :'controlling' => :'controlling',
-
- :'connected_time' => :'connectedTime',
-
- :'additional_properties' => :'additionalProperties',
-
:'cobrowse_role' => :'cobrowseRole',
- :'state' => :'state',
+ :'cobrowse_session_id' => :'cobrowseSessionId',
+ :'viewer_url' => :'viewerUrl',
+
:'room_id' => :'roomId',
:'provider_event_time' => :'providerEventTime',
:'provider' => :'provider',
+ :'disconnect_type' => :'disconnectType',
+
:'_self' => :'self',
- :'viewer_url' => :'viewerUrl',
+ :'connected_time' => :'connectedTime',
- :'cobrowse_session_id' => :'cobrowseSessionId'
+ :'state' => :'state',
+ :'id' => :'id',
+
+ :'additional_properties' => :'additionalProperties',
+
+ :'controlling' => :'controlling'
+
}
end
# Attribute type mapping.
def self.swagger_types
{
- :'id' => :'String',
- :'disconnect_type' => :'String',
:'disconnected_time' => :'DateTime',
- :'controlling' => :'Array<String>',
- :'connected_time' => :'DateTime',
- :'additional_properties' => :'Object',
:'cobrowse_role' => :'String',
- :'state' => :'String',
+ :'cobrowse_session_id' => :'String',
+ :'viewer_url' => :'String',
:'room_id' => :'String',
:'provider_event_time' => :'DateTime',
:'provider' => :'String',
+ :'disconnect_type' => :'String',
:'_self' => :'ConversationNotificationAddress',
- :'viewer_url' => :'String',
- :'cobrowse_session_id' => :'String'
+ :'connected_time' => :'DateTime',
+ :'state' => :'String',
+ :'id' => :'String',
+ :'additional_properties' => :'Object',
+ :'controlling' => :'Array<String>'
}
end
def initialize(attributes = {})
@@ -107,44 +107,26 @@
# convert string to symbol for hash key
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
- if attributes[:'id']
- self.id = attributes[:'id']
- end
-
- if attributes[:'disconnectType']
- self.disconnect_type = attributes[:'disconnectType']
- end
-
if attributes[:'disconnectedTime']
self.disconnected_time = attributes[:'disconnectedTime']
end
- if attributes[:'controlling']
- if (value = attributes[:'controlling']).is_a?(Array)
- self.controlling = value
- end
- end
-
- if attributes[:'connectedTime']
- self.connected_time = attributes[:'connectedTime']
- end
-
- if attributes[:'additionalProperties']
- self.additional_properties = attributes[:'additionalProperties']
- end
-
if attributes[:'cobrowseRole']
self.cobrowse_role = attributes[:'cobrowseRole']
end
- if attributes[:'state']
- self.state = attributes[:'state']
+ if attributes[:'cobrowseSessionId']
+ self.cobrowse_session_id = attributes[:'cobrowseSessionId']
end
+ if attributes[:'viewerUrl']
+ self.viewer_url = attributes[:'viewerUrl']
+ end
+
if attributes[:'roomId']
self.room_id = attributes[:'roomId']
end
if attributes[:'providerEventTime']
@@ -153,22 +135,40 @@
if attributes[:'provider']
self.provider = attributes[:'provider']
end
+ if attributes[:'disconnectType']
+ self.disconnect_type = attributes[:'disconnectType']
+ end
+
if attributes[:'self']
self._self = attributes[:'self']
end
- if attributes[:'viewerUrl']
- self.viewer_url = attributes[:'viewerUrl']
+ if attributes[:'connectedTime']
+ self.connected_time = attributes[:'connectedTime']
end
- if attributes[:'cobrowseSessionId']
- self.cobrowse_session_id = attributes[:'cobrowseSessionId']
+ if attributes[:'state']
+ self.state = attributes[:'state']
end
+ if attributes[:'id']
+ self.id = attributes[:'id']
+ end
+
+ if attributes[:'additionalProperties']
+ self.additional_properties = attributes[:'additionalProperties']
+ end
+
+ if attributes[:'controlling']
+ if (value = attributes[:'controlling']).is_a?(Array)
+ self.controlling = value
+ end
+ end
+
end
# Custom attribute writer method checking allowed values (enum).
def disconnect_type=(disconnect_type)
allowed_values = ["ENDPOINT", "CLIENT", "SYSTEM", "TIMEOUT", "TRANSFER", "TRANSFER_CONFERENCE", "TRANSFER_CONSULT", "TRANSFER_FORWARD", "TRANSPORT_FAILURE", "ERROR", "PEER", "OTHER", "SPAM", "UNCALLABLE"]
@@ -189,33 +189,33 @@
# Check equality by comparing each attribute.
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
- id == o.id &&
- disconnect_type == o.disconnect_type &&
disconnected_time == o.disconnected_time &&
- controlling == o.controlling &&
- connected_time == o.connected_time &&
- additional_properties == o.additional_properties &&
cobrowse_role == o.cobrowse_role &&
- state == o.state &&
+ cobrowse_session_id == o.cobrowse_session_id &&
+ viewer_url == o.viewer_url &&
room_id == o.room_id &&
provider_event_time == o.provider_event_time &&
provider == o.provider &&
+ disconnect_type == o.disconnect_type &&
_self == o._self &&
- viewer_url == o.viewer_url &&
- cobrowse_session_id == o.cobrowse_session_id
+ connected_time == o.connected_time &&
+ state == o.state &&
+ id == o.id &&
+ additional_properties == o.additional_properties &&
+ controlling == o.controlling
end
# @see the `==` method
def eql?(o)
self == o
end
# Calculate hash code according to all attributes.
def hash
- [id, disconnect_type, disconnected_time, controlling, connected_time, additional_properties, cobrowse_role, state, room_id, provider_event_time, provider, _self, viewer_url, cobrowse_session_id].hash
+ [disconnected_time, cobrowse_role, cobrowse_session_id, viewer_url, room_id, provider_event_time, provider, disconnect_type, _self, connected_time, state, id, additional_properties, controlling].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)