lib/purecloudplatformclientv2/models/analytics_conversation.rb in purecloudplatformclientv2-37.0.0 vs lib/purecloudplatformclientv2/models/analytics_conversation.rb in purecloudplatformclientv2-38.0.0

- old
+ new

@@ -31,10 +31,13 @@ attr_accessor :participants # Evaluations tied to this conversation attr_accessor :evaluations + # Surveys tied to this conversation + attr_accessor :surveys + # Identifiers of divisions associated with this conversation attr_accessor :division_ids # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map @@ -48,10 +51,12 @@ :'participants' => :'participants', :'evaluations' => :'evaluations', + :'surveys' => :'surveys', + :'division_ids' => :'divisionIds' } end @@ -67,10 +72,12 @@ :'participants' => :'Array<AnalyticsParticipant>', :'evaluations' => :'Array<AnalyticsEvaluation>', + :'surveys' => :'Array<AnalyticsSurvey>', + :'division_ids' => :'Array<String>' } end @@ -130,10 +137,21 @@ end + if attributes.has_key?(:'surveys') + + if (value = attributes[:'surveys']).is_a?(Array) + self.surveys = value + end + + + + end + + if attributes.has_key?(:'divisionIds') if (value = attributes[:'divisionIds']).is_a?(Array) self.division_ids = value end @@ -180,10 +198,14 @@ + + + + end @@ -213,20 +235,26 @@ + + + + + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && conversation_id == o.conversation_id && conversation_start == o.conversation_start && conversation_end == o.conversation_end && participants == o.participants && evaluations == o.evaluations && + surveys == o.surveys && division_ids == o.division_ids end # @see the `==` method # @param [Object] Object to be compared @@ -235,10 +263,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [conversation_id, conversation_start, conversation_end, participants, evaluations, division_ids].hash + [conversation_id, conversation_start, conversation_end, participants, evaluations, surveys, division_ids].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)