lib/purecloud/models/call.rb in purecloud-0.28.0 vs lib/purecloud/models/call.rb in purecloud-0.29.1
- old
+ new
@@ -32,10 +32,12 @@
attr_accessor :document_id
# Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
attr_accessor :connected_time
+ attr_accessor :disconnect_reasons
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'state' => :'state',
@@ -64,12 +66,14 @@
:'start_hold_time' => :'startHoldTime',
:'document_id' => :'documentId',
- :'connected_time' => :'connectedTime'
+ :'connected_time' => :'connectedTime',
+ :'disconnect_reasons' => :'disconnectReasons'
+
}
end
# Attribute type mapping.
def self.swagger_types
@@ -86,11 +90,12 @@
:'segments' => :'Array<Segment>',
:'error_info' => :'ErrorBody',
:'disconnect_type' => :'String',
:'start_hold_time' => :'DateTime',
:'document_id' => :'String',
- :'connected_time' => :'DateTime'
+ :'connected_time' => :'DateTime',
+ :'disconnect_reasons' => :'Array<DisconnectReason>'
}
end
def initialize(attributes = {})
@@ -168,10 +173,16 @@
if attributes[:'connectedTime']
self.connected_time = attributes[:'connectedTime']
end
+ if attributes[:'disconnectReasons']
+ if (value = attributes[:'disconnectReasons']).is_a?(Array)
+ self.disconnect_reasons = value
+ end
+ end
+
end
# Custom attribute writer method checking allowed values (enum).
def state=(state)
allowed_values = ["ALERTING", "DIALING", "CONTACTING", "OFFERING", "CONNECTED", "DISCONNECTED", "TERMINATED", "CONVERTING", "UPLOADING", "TRANSMITTING", "NONE"]
@@ -224,20 +235,21 @@
segments == o.segments &&
error_info == o.error_info &&
disconnect_type == o.disconnect_type &&
start_hold_time == o.start_hold_time &&
document_id == o.document_id &&
- connected_time == o.connected_time
+ connected_time == o.connected_time &&
+ disconnect_reasons == o.disconnect_reasons
end
# @see the `==` method
def eql?(o)
self == o
end
# Calculate hash code according to all attributes.
def hash
- [state, id, direction, recording, recording_state, muted, confined, held, recording_id, segments, error_info, disconnect_type, start_hold_time, document_id, connected_time].hash
+ [state, id, direction, recording, recording_state, muted, confined, held, recording_id, segments, error_info, disconnect_type, start_hold_time, document_id, connected_time, disconnect_reasons].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)