lib/purecloud/models/conversation_notification_screenshares.rb in purecloud-0.68.1 vs lib/purecloud/models/conversation_notification_screenshares.rb in purecloud-0.69.1
- old
+ new
@@ -16,70 +16,70 @@
require 'date'
module PureCloud
class ConversationNotificationScreenshares
- attr_accessor :disconnect_type
-
- attr_accessor :id
-
attr_accessor :disconnected_time
- attr_accessor :sharing
+ attr_accessor :provider
- attr_accessor :connected_time
+ attr_accessor :context
- attr_accessor :additional_properties
+ attr_accessor :_self
- attr_accessor :context
+ attr_accessor :disconnect_type
+ attr_accessor :connected_time
+
attr_accessor :state
- attr_accessor :provider
+ attr_accessor :id
- attr_accessor :_self
+ attr_accessor :additional_properties
+ attr_accessor :sharing
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
- :'disconnect_type' => :'disconnectType',
-
- :'id' => :'id',
-
:'disconnected_time' => :'disconnectedTime',
- :'sharing' => :'sharing',
+ :'provider' => :'provider',
- :'connected_time' => :'connectedTime',
+ :'context' => :'context',
- :'additional_properties' => :'additionalProperties',
+ :'_self' => :'self',
- :'context' => :'context',
+ :'disconnect_type' => :'disconnectType',
+ :'connected_time' => :'connectedTime',
+
:'state' => :'state',
- :'provider' => :'provider',
+ :'id' => :'id',
- :'_self' => :'self'
+ :'additional_properties' => :'additionalProperties',
+ :'sharing' => :'sharing'
+
}
end
# Attribute type mapping.
def self.swagger_types
{
- :'disconnect_type' => :'String',
- :'id' => :'String',
:'disconnected_time' => :'DateTime',
- :'sharing' => :'BOOLEAN',
- :'connected_time' => :'DateTime',
- :'additional_properties' => :'Object',
+ :'provider' => :'String',
:'context' => :'String',
+ :'_self' => :'ConversationNotificationAddress',
+ :'disconnect_type' => :'String',
+ :'connected_time' => :'DateTime',
:'state' => :'String',
- :'provider' => :'String',
- :'_self' => :'ConversationNotificationAddress'
+ :'id' => :'String',
+ :'additional_properties' => :'Object',
+ :'sharing' => :'BOOLEAN'
}
end
def initialize(attributes = {})
@@ -87,50 +87,50 @@
# convert string to symbol for hash key
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
- if attributes[:'disconnectType']
- self.disconnect_type = attributes[:'disconnectType']
- end
-
- if attributes[:'id']
- self.id = attributes[:'id']
- end
-
if attributes[:'disconnectedTime']
self.disconnected_time = attributes[:'disconnectedTime']
end
- if attributes[:'sharing']
- self.sharing = attributes[:'sharing']
+ if attributes[:'provider']
+ self.provider = attributes[:'provider']
end
- if attributes[:'connectedTime']
- self.connected_time = attributes[:'connectedTime']
+ if attributes[:'context']
+ self.context = attributes[:'context']
end
- if attributes[:'additionalProperties']
- self.additional_properties = attributes[:'additionalProperties']
+ if attributes[:'self']
+ self._self = attributes[:'self']
end
- if attributes[:'context']
- self.context = attributes[:'context']
+ if attributes[:'disconnectType']
+ self.disconnect_type = attributes[:'disconnectType']
end
+ if attributes[:'connectedTime']
+ self.connected_time = attributes[:'connectedTime']
+ end
+
if attributes[:'state']
self.state = attributes[:'state']
end
- if attributes[:'provider']
- self.provider = attributes[:'provider']
+ if attributes[:'id']
+ self.id = attributes[:'id']
end
- if attributes[:'self']
- self._self = attributes[:'self']
+ if attributes[:'additionalProperties']
+ self.additional_properties = attributes[:'additionalProperties']
end
+ if attributes[:'sharing']
+ self.sharing = attributes[:'sharing']
+ 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", "TRANSFER_NOANSWER", "TRANSFER_NOTAVAILABLE", "TRANSPORT_FAILURE", "ERROR", "PEER", "OTHER", "SPAM", "UNCALLABLE"]
@@ -151,29 +151,29 @@
# Check equality by comparing each attribute.
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
- disconnect_type == o.disconnect_type &&
- id == o.id &&
disconnected_time == o.disconnected_time &&
- sharing == o.sharing &&
- connected_time == o.connected_time &&
- additional_properties == o.additional_properties &&
+ provider == o.provider &&
context == o.context &&
+ _self == o._self &&
+ disconnect_type == o.disconnect_type &&
+ connected_time == o.connected_time &&
state == o.state &&
- provider == o.provider &&
- _self == o._self
+ id == o.id &&
+ additional_properties == o.additional_properties &&
+ sharing == o.sharing
end
# @see the `==` method
def eql?(o)
self == o
end
# Calculate hash code according to all attributes.
def hash
- [disconnect_type, id, disconnected_time, sharing, connected_time, additional_properties, context, state, provider, _self].hash
+ [disconnected_time, provider, context, _self, disconnect_type, connected_time, state, id, additional_properties, sharing].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)