lib/purecloudplatformclientv2/models/annotation.rb in purecloudplatformclientv2-8.0.0 vs lib/purecloudplatformclientv2/models/annotation.rb in purecloudplatformclientv2-9.0.0

- old
+ new

@@ -71,52 +71,90 @@ attr_accessor :self_uri # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'id' => :'id', + :'name' => :'name', + :'type' => :'type', + :'location' => :'location', + :'duration_ms' => :'durationMs', + :'user' => :'user', + :'description' => :'description', + :'keyword_name' => :'keywordName', + :'confidence' => :'confidence', + :'keyword_set_id' => :'keywordSetId', + :'keyword_set_name' => :'keywordSetName', + :'utterance' => :'utterance', + :'time_begin' => :'timeBegin', + :'time_end' => :'timeEnd', + :'keyword_confidence_threshold' => :'keywordConfidenceThreshold', + :'agent_score_modifier' => :'agentScoreModifier', + :'customer_score_modifier' => :'customerScoreModifier', + :'self_uri' => :'selfUri' + } end # Attribute type mapping. def self.swagger_types { + :'id' => :'String', + :'name' => :'String', + :'type' => :'String', + :'location' => :'Integer', + :'duration_ms' => :'Integer', + :'user' => :'User', + :'description' => :'String', + :'keyword_name' => :'String', + :'confidence' => :'Float', + :'keyword_set_id' => :'String', + :'keyword_set_name' => :'String', + :'utterance' => :'String', + :'time_begin' => :'String', + :'time_end' => :'String', + :'keyword_confidence_threshold' => :'String', + :'agent_score_modifier' => :'String', + :'customer_score_modifier' => :'String', + :'self_uri' => :'String' + } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -124,103 +162,362 @@ return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + if attributes.has_key?(:'id') + + self.id = attributes[:'id'] + + end + if attributes.has_key?(:'name') + + self.name = attributes[:'name'] + + end + if attributes.has_key?(:'type') + + self.type = attributes[:'type'] + + end + if attributes.has_key?(:'location') + + self.location = attributes[:'location'] + + end + if attributes.has_key?(:'durationMs') + + self.duration_ms = attributes[:'durationMs'] + + end + if attributes.has_key?(:'user') + + self.user = attributes[:'user'] + + end + if attributes.has_key?(:'description') + + self.description = attributes[:'description'] + + end + if attributes.has_key?(:'keywordName') + + self.keyword_name = attributes[:'keywordName'] + + end + if attributes.has_key?(:'confidence') + + self.confidence = attributes[:'confidence'] + + end + if attributes.has_key?(:'keywordSetId') + + self.keyword_set_id = attributes[:'keywordSetId'] + + end + if attributes.has_key?(:'keywordSetName') + + self.keyword_set_name = attributes[:'keywordSetName'] + + end + if attributes.has_key?(:'utterance') + + self.utterance = attributes[:'utterance'] + + end + if attributes.has_key?(:'timeBegin') + + self.time_begin = attributes[:'timeBegin'] + + end + if attributes.has_key?(:'timeEnd') + + self.time_end = attributes[:'timeEnd'] + + end + if attributes.has_key?(:'keywordConfidenceThreshold') + + self.keyword_confidence_threshold = attributes[:'keywordConfidenceThreshold'] + + end + if attributes.has_key?(:'agentScoreModifier') + + self.agent_score_modifier = attributes[:'agentScoreModifier'] + + end + if attributes.has_key?(:'customerScoreModifier') + + self.customer_score_modifier = attributes[:'customerScoreModifier'] + + end + if attributes.has_key?(:'selfUri') + + self.self_uri = attributes[:'selfUri'] + + 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 invalid_properties = Array.new + + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + if @agent_score_modifier.nil? return false end + + + + + if @customer_score_modifier.nil? return false end + + + + + + + + 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 &&