lib/purecloudplatformclientv2/models/call.rb in purecloudplatformclientv2-13.1.0 vs lib/purecloudplatformclientv2/models/call.rb in purecloudplatformclientv2-14.0.0

- old
+ new

@@ -78,10 +78,13 @@ attr_accessor :script_id # The id of the peer communication corresponding to a matching leg for this communication. attr_accessor :peer_id + # User to User Information (UUI) data managed by SIP session application. + attr_accessor :uui_data + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'state' => :'state', @@ -122,12 +125,14 @@ :'provider' => :'provider', :'script_id' => :'scriptId', - :'peer_id' => :'peerId' + :'peer_id' => :'peerId', + :'uui_data' => :'uuiData' + } end # Attribute type mapping. def self.swagger_types @@ -171,12 +176,14 @@ :'provider' => :'String', :'script_id' => :'String', - :'peer_id' => :'String' + :'peer_id' => :'String', + :'uui_data' => :'String' + } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -378,10 +385,19 @@ end + if attributes.has_key?(:'uuiData') + + + self.uui_data = attributes[:'uuiData'] + + + end + + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properies with the reasons def list_invalid_properties @@ -497,10 +513,14 @@ + + + + end # Custom attribute writer method checking allowed values (enum). @@ -641,10 +661,15 @@ + + + + + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && @@ -666,11 +691,12 @@ disconnected_time == o.disconnected_time && disconnect_reasons == o.disconnect_reasons && fax_status == o.fax_status && provider == o.provider && script_id == o.script_id && - peer_id == o.peer_id + peer_id == o.peer_id && + uui_data == o.uui_data end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -678,10 +704,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code 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, disconnected_time, disconnect_reasons, fax_status, provider, script_id, peer_id].hash + [state, id, direction, recording, recording_state, muted, confined, held, recording_id, segments, error_info, disconnect_type, start_hold_time, document_id, connected_time, disconnected_time, disconnect_reasons, fax_status, provider, script_id, peer_id, uui_data].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)