lib/purecloudplatformclientv2/models/analytics_participant.rb in purecloudplatformclientv2-27.1.0 vs lib/purecloudplatformclientv2/models/analytics_participant.rb in purecloudplatformclientv2-28.0.0

- old
+ new

@@ -34,10 +34,13 @@ attr_accessor :external_contact_id # External Organization Identifier attr_accessor :external_organization_id + # Reason for which participant flagged conversation + attr_accessor :flagged_reason + # List of sessions associated to this participant attr_accessor :sessions # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map @@ -53,10 +56,12 @@ :'external_contact_id' => :'externalContactId', :'external_organization_id' => :'externalOrganizationId', + :'flagged_reason' => :'flaggedReason', + :'sessions' => :'sessions' } end @@ -74,10 +79,12 @@ :'external_contact_id' => :'String', :'external_organization_id' => :'String', + :'flagged_reason' => :'String', + :'sessions' => :'Array<AnalyticsSession>' } end @@ -142,10 +149,19 @@ end + if attributes.has_key?(:'flaggedReason') + + + self.flagged_reason = attributes[:'flaggedReason'] + + + end + + if attributes.has_key?(:'sessions') if (value = attributes[:'sessions']).is_a?(Array) self.sessions = value end @@ -199,12 +215,21 @@ + allowed_values = ["general"] + if @flagged_reason && !allowed_values.include?(@flagged_reason) + return false + end + + + + + end @@ -244,14 +269,28 @@ + # Custom attribute writer method checking allowed values (enum). + # @param [Object] flagged_reason Object to be assigned + def flagged_reason=(flagged_reason) + allowed_values = ["general"] + if flagged_reason && !allowed_values.include?(flagged_reason) + fail ArgumentError, "invalid value for 'flagged_reason', must be one of #{allowed_values}." + end + @flagged_reason = flagged_reason + end + + + + + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && @@ -259,10 +298,11 @@ participant_name == o.participant_name && user_id == o.user_id && purpose == o.purpose && external_contact_id == o.external_contact_id && external_organization_id == o.external_organization_id && + flagged_reason == o.flagged_reason && sessions == o.sessions end # @see the `==` method # @param [Object] Object to be compared @@ -271,10 +311,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [participant_id, participant_name, user_id, purpose, external_contact_id, external_organization_id, sessions].hash + [participant_id, participant_name, user_id, purpose, external_contact_id, external_organization_id, flagged_reason, sessions].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)