lib/purecloudplatformclientv2/models/analytics_conversation.rb in purecloudplatformclientv2-48.1.0 vs lib/purecloudplatformclientv2/models/analytics_conversation.rb in purecloudplatformclientv2-48.2.0

- old
+ new

@@ -31,10 +31,13 @@ attr_accessor :media_stats_min_conversation_mos # The lowest R-factor value among all of the audio streams belonging to this conversation attr_accessor :media_stats_min_conversation_r_factor + # The original direction of the conversation + attr_accessor :originating_direction + # Participants in the conversation attr_accessor :participants # Evaluations tied to this conversation attr_accessor :evaluations @@ -57,10 +60,12 @@ :'media_stats_min_conversation_mos' => :'mediaStatsMinConversationMos', :'media_stats_min_conversation_r_factor' => :'mediaStatsMinConversationRFactor', + :'originating_direction' => :'originatingDirection', + :'participants' => :'participants', :'evaluations' => :'evaluations', :'surveys' => :'surveys', @@ -82,10 +87,12 @@ :'media_stats_min_conversation_mos' => :'Float', :'media_stats_min_conversation_r_factor' => :'Float', + :'originating_direction' => :'String', + :'participants' => :'Array<AnalyticsParticipant>', :'evaluations' => :'Array<AnalyticsEvaluation>', :'surveys' => :'Array<AnalyticsSurvey>', @@ -147,10 +154,19 @@ end + if attributes.has_key?(:'originatingDirection') + + + self.originating_direction = attributes[:'originatingDirection'] + + + end + + if attributes.has_key?(:'participants') if (value = attributes[:'participants']).is_a?(Array) self.participants = value end @@ -228,10 +244,14 @@ + allowed_values = ["inbound", "outbound"] + if @originating_direction && !allowed_values.include?(@originating_direction) + return false + end @@ -242,10 +262,15 @@ + + + + + end @@ -271,10 +296,20 @@ + # Custom attribute writer method checking allowed values (enum). + # @param [Object] originating_direction Object to be assigned + def originating_direction=(originating_direction) + allowed_values = ["inbound", "outbound"] + if originating_direction && !allowed_values.include?(originating_direction) + fail ArgumentError, "invalid value for 'originating_direction', must be one of #{allowed_values}." + end + @originating_direction = originating_direction + end + @@ -290,20 +325,25 @@ + + + + # 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 && media_stats_min_conversation_mos == o.media_stats_min_conversation_mos && media_stats_min_conversation_r_factor == o.media_stats_min_conversation_r_factor && + originating_direction == o.originating_direction && participants == o.participants && evaluations == o.evaluations && surveys == o.surveys && division_ids == o.division_ids end @@ -315,10 +355,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [conversation_id, conversation_start, conversation_end, media_stats_min_conversation_mos, media_stats_min_conversation_r_factor, participants, evaluations, surveys, division_ids].hash + [conversation_id, conversation_start, conversation_end, media_stats_min_conversation_mos, media_stats_min_conversation_r_factor, originating_direction, participants, evaluations, surveys, division_ids].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)