lib/purecloud/models/call.rb in purecloud-0.18.0 vs lib/purecloud/models/call.rb in purecloud-0.25.0
- old
+ new
@@ -29,10 +29,17 @@
# Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
attr_accessor :start_hold_time
attr_accessor :document_id
+ attr_accessor :_self
+
+ attr_accessor :other
+
+ # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
+ attr_accessor :connected_time
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'state' => :'state',
@@ -59,12 +66,18 @@
:'disconnect_type' => :'disconnectType',
:'start_hold_time' => :'startHoldTime',
- :'document_id' => :'documentId'
+ :'document_id' => :'documentId',
+ :'_self' => :'self',
+
+ :'other' => :'other',
+
+ :'connected_time' => :'connectedTime'
+
}
end
# Attribute type mapping.
def self.swagger_types
@@ -80,11 +93,14 @@
:'recording_id' => :'String',
:'segments' => :'Array<Segment>',
:'error_info' => :'ErrorBody',
:'disconnect_type' => :'String',
:'start_hold_time' => :'DateTime',
- :'document_id' => :'String'
+ :'document_id' => :'String',
+ :'_self' => :'Address',
+ :'other' => :'Address',
+ :'connected_time' => :'DateTime'
}
end
def initialize(attributes = {})
@@ -158,10 +174,22 @@
if attributes[:'documentId']
self.document_id = attributes[:'documentId']
end
+ if attributes[:'self']
+ self._self = attributes[:'self']
+ end
+
+ if attributes[:'other']
+ self.other = attributes[:'other']
+ end
+
+ if attributes[:'connectedTime']
+ self.connected_time = attributes[:'connectedTime']
+ 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"]
@@ -189,11 +217,11 @@
@recording_state = recording_state
end
# Custom attribute writer method checking allowed values (enum).
def disconnect_type=(disconnect_type)
- allowed_values = ["ENDPOINT", "CLIENT", "SYSTEM", "TRANSFER", "TRANSFER_CONFERENCE", "TRANSFER_CONSULT", "ERROR", "PEER", "OTHER"]
+ allowed_values = ["ENDPOINT", "CLIENT", "SYSTEM", "TIMEOUT", "TRANSFER", "TRANSFER_CONFERENCE", "TRANSFER_CONSULT", "ERROR", "PEER", "OTHER"]
if disconnect_type && !allowed_values.include?(disconnect_type)
fail "invalid value for 'disconnect_type', must be one of #{allowed_values}"
end
@disconnect_type = disconnect_type
end
@@ -213,20 +241,23 @@
recording_id == o.recording_id &&
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
+ document_id == o.document_id &&
+ _self == o._self &&
+ other == o.other &&
+ connected_time == o.connected_time
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].hash
+ [state, id, direction, recording, recording_state, muted, confined, held, recording_id, segments, error_info, disconnect_type, start_hold_time, document_id, _self, other, connected_time].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)