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

- old
+ new

@@ -58,10 +58,13 @@ attr_accessor :disconnected_time # The source provider for the social expression. attr_accessor :provider + # The UUID of the script to use. + attr_accessor :script_id + # The id of the peer communication corresponding to a matching leg for this communication. attr_accessor :peer_id # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map @@ -93,10 +96,12 @@ :'disconnected_time' => :'disconnectedTime', :'provider' => :'provider', + :'script_id' => :'scriptId', + :'peer_id' => :'peerId' } end @@ -130,10 +135,12 @@ :'disconnected_time' => :'DateTime', :'provider' => :'String', + :'script_id' => :'String', + :'peer_id' => :'String' } end @@ -272,10 +279,19 @@ end + if attributes.has_key?(:'scriptId') + + + self.script_id = attributes[:'scriptId'] + + + end + + if attributes.has_key?(:'peerId') self.peer_id = attributes[:'peerId'] @@ -366,10 +382,14 @@ + + + + end # Custom attribute writer method checking allowed values (enum). @@ -462,10 +482,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 && @@ -481,10 +506,11 @@ disconnect_type == o.disconnect_type && start_hold_time == o.start_hold_time && connected_time == o.connected_time && disconnected_time == o.disconnected_time && provider == o.provider && + script_id == o.script_id && peer_id == o.peer_id end # @see the `==` method # @param [Object] Object to be compared @@ -493,10 +519,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [state, id, social_media_id, social_media_hub, social_user_name, preview_text, recording_id, segments, held, disconnect_type, start_hold_time, connected_time, disconnected_time, provider, peer_id].hash + [state, id, social_media_id, social_media_hub, social_user_name, preview_text, recording_id, segments, held, disconnect_type, start_hold_time, connected_time, disconnected_time, provider, script_id, peer_id].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)