lib/purecloud/models/conversation_notification_chats.rb in purecloud-0.68.1 vs lib/purecloud/models/conversation_notification_chats.rb in purecloud-0.69.1
- old
+ new
@@ -16,70 +16,70 @@
require 'date'
module PureCloud
class ConversationNotificationChats
- attr_accessor :disconnect_type
-
- attr_accessor :id
-
attr_accessor :disconnected_time
+ attr_accessor :provider
+
attr_accessor :held
+ attr_accessor :disconnect_type
+
attr_accessor :connected_time
- attr_accessor :additional_properties
+ attr_accessor :state
+ attr_accessor :id
+
attr_accessor :start_hold_time
- attr_accessor :state
+ attr_accessor :additional_properties
attr_accessor :room_id
- attr_accessor :provider
-
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
- :'disconnect_type' => :'disconnectType',
-
- :'id' => :'id',
-
:'disconnected_time' => :'disconnectedTime',
+ :'provider' => :'provider',
+
:'held' => :'held',
+ :'disconnect_type' => :'disconnectType',
+
:'connected_time' => :'connectedTime',
- :'additional_properties' => :'additionalProperties',
+ :'state' => :'state',
+ :'id' => :'id',
+
:'start_hold_time' => :'startHoldTime',
- :'state' => :'state',
+ :'additional_properties' => :'additionalProperties',
- :'room_id' => :'roomId',
+ :'room_id' => :'roomId'
- :'provider' => :'provider'
-
}
end
# Attribute type mapping.
def self.swagger_types
{
- :'disconnect_type' => :'String',
- :'id' => :'String',
:'disconnected_time' => :'DateTime',
+ :'provider' => :'String',
:'held' => :'BOOLEAN',
+ :'disconnect_type' => :'String',
:'connected_time' => :'DateTime',
- :'additional_properties' => :'Object',
- :'start_hold_time' => :'DateTime',
:'state' => :'String',
- :'room_id' => :'String',
- :'provider' => :'String'
+ :'id' => :'String',
+ :'start_hold_time' => :'DateTime',
+ :'additional_properties' => :'Object',
+ :'room_id' => :'String'
}
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[:'provider']
+ self.provider = attributes[:'provider']
+ end
+
if attributes[:'held']
self.held = attributes[:'held']
end
+ if attributes[:'disconnectType']
+ self.disconnect_type = attributes[:'disconnectType']
+ end
+
if attributes[:'connectedTime']
self.connected_time = attributes[:'connectedTime']
end
- if attributes[:'additionalProperties']
- self.additional_properties = attributes[:'additionalProperties']
+ if attributes[:'state']
+ self.state = attributes[:'state']
end
+ if attributes[:'id']
+ self.id = attributes[:'id']
+ end
+
if attributes[:'startHoldTime']
self.start_hold_time = attributes[:'startHoldTime']
end
- if attributes[:'state']
- self.state = attributes[:'state']
+ if attributes[:'additionalProperties']
+ self.additional_properties = attributes[:'additionalProperties']
end
if attributes[:'roomId']
self.room_id = attributes[:'roomId']
end
- if attributes[:'provider']
- self.provider = attributes[:'provider']
- 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_NOANSWER", "TRANSFER_NOTAVAILABLE", "TRANSFER_FORWARD", "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 &&
+ provider == o.provider &&
held == o.held &&
+ disconnect_type == o.disconnect_type &&
connected_time == o.connected_time &&
- additional_properties == o.additional_properties &&
- start_hold_time == o.start_hold_time &&
state == o.state &&
- room_id == o.room_id &&
- provider == o.provider
+ id == o.id &&
+ start_hold_time == o.start_hold_time &&
+ additional_properties == o.additional_properties &&
+ room_id == o.room_id
end
# @see the `==` method
def eql?(o)
self == o
end
# Calculate hash code according to all attributes.
def hash
- [disconnect_type, id, disconnected_time, held, connected_time, additional_properties, start_hold_time, state, room_id, provider].hash
+ [disconnected_time, provider, held, disconnect_type, connected_time, state, id, start_hold_time, additional_properties, room_id].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)