lib/purecloud/models/conversation_chat.rb in purecloud-0.32.1 vs lib/purecloud/models/conversation_chat.rb in purecloud-0.33.1

- old
+ new

@@ -22,10 +22,13 @@ attr_accessor :start_hold_time # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ attr_accessor :connected_time + # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ + attr_accessor :disconnected_time + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'state' => :'state', @@ -44,12 +47,14 @@ :'disconnect_type' => :'disconnectType', :'start_hold_time' => :'startHoldTime', - :'connected_time' => :'connectedTime' + :'connected_time' => :'connectedTime', + :'disconnected_time' => :'disconnectedTime' + } end # Attribute type mapping. def self.swagger_types @@ -61,11 +66,12 @@ :'segments' => :'Array<Segment>', :'held' => :'BOOLEAN', :'direction' => :'String', :'disconnect_type' => :'String', :'start_hold_time' => :'DateTime', - :'connected_time' => :'DateTime' + :'connected_time' => :'DateTime', + :'disconnected_time' => :'DateTime' } end def initialize(attributes = {}) @@ -117,10 +123,14 @@ if attributes[:'connectedTime'] self.connected_time = attributes[:'connectedTime'] end + if attributes[:'disconnectedTime'] + self.disconnected_time = attributes[:'disconnectedTime'] + end + end # Custom attribute writer method checking allowed values (enum). def state=(state) allowed_values = ["ALERTING", "DIALING", "CONTACTING", "OFFERING", "CONNECTED", "DISCONNECTED", "TERMINATED", "NONE"] @@ -139,11 +149,11 @@ @direction = direction 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", "TRANSFER", "TRANSFER_CONFERENCE", "TRANSFER_CONSULT", "TRANSFER_FORWARD", "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 @@ -159,20 +169,21 @@ segments == o.segments && held == o.held && direction == o.direction && disconnect_type == o.disconnect_type && start_hold_time == o.start_hold_time && - connected_time == o.connected_time + connected_time == o.connected_time && + disconnected_time == o.disconnected_time end # @see the `==` method def eql?(o) self == o end # Calculate hash code according to all attributes. def hash - [state, id, room_id, recording_id, segments, held, direction, disconnect_type, start_hold_time, connected_time].hash + [state, id, room_id, recording_id, segments, held, direction, disconnect_type, start_hold_time, connected_time, disconnected_time].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)