lib/purecloud/models/email.rb in purecloud-0.18.0 vs lib/purecloud/models/email.rb in purecloud-0.25.0

- old
+ new

@@ -23,10 +23,13 @@ attr_accessor :disconnect_type # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ 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 + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'state' => :'state', @@ -47,12 +50,14 @@ :'error_info' => :'errorInfo', :'disconnect_type' => :'disconnectType', - :'start_hold_time' => :'startHoldTime' + :'start_hold_time' => :'startHoldTime', + :'connected_time' => :'connectedTime' + } end # Attribute type mapping. def self.swagger_types @@ -65,11 +70,12 @@ :'segments' => :'Array<Segment>', :'direction' => :'String', :'recording_id' => :'String', :'error_info' => :'ErrorBody', :'disconnect_type' => :'String', - :'start_hold_time' => :'DateTime' + :'start_hold_time' => :'DateTime', + :'connected_time' => :'DateTime' } end def initialize(attributes = {}) @@ -125,10 +131,14 @@ if attributes[:'startHoldTime'] self.start_hold_time = attributes[:'startHoldTime'] 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", "CONNECTED", "DISCONNECTED", "NONE"] @@ -168,20 +178,21 @@ segments == o.segments && direction == o.direction && recording_id == o.recording_id && error_info == o.error_info && disconnect_type == o.disconnect_type && - start_hold_time == o.start_hold_time + start_hold_time == o.start_hold_time && + 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, held, subject, messages_sent, segments, direction, recording_id, error_info, disconnect_type, start_hold_time].hash + [state, id, held, subject, messages_sent, segments, direction, recording_id, error_info, disconnect_type, start_hold_time, connected_time].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)