lib/purecloudplatformclientv2/models/annotation.rb in purecloudplatformclientv2-18.0.0 vs lib/purecloudplatformclientv2/models/annotation.rb in purecloudplatformclientv2-19.0.0
- old
+ new
@@ -29,10 +29,22 @@
attr_accessor :location
# Duration of annotation in milliseconds.
attr_accessor :duration_ms
+ # Offset of annotation (milliseconds) from start of recording.
+ attr_accessor :absolute_location
+
+ # Duration of annotation (milliseconds).
+ attr_accessor :absolute_duration_ms
+
+ # Offset of annotation (milliseconds) from start of recording, adjusted for any recording cuts
+ attr_accessor :recording_location
+
+ # Duration of annotation (milliseconds), adjusted for any recording cuts.
+ attr_accessor :recording_duration_ms
+
# User that created this annotation (if any).
attr_accessor :user
# Text of annotation.
attr_accessor :description
@@ -82,10 +94,18 @@
:'location' => :'location',
:'duration_ms' => :'durationMs',
+ :'absolute_location' => :'absoluteLocation',
+
+ :'absolute_duration_ms' => :'absoluteDurationMs',
+
+ :'recording_location' => :'recordingLocation',
+
+ :'recording_duration_ms' => :'recordingDurationMs',
+
:'user' => :'user',
:'description' => :'description',
:'keyword_name' => :'keywordName',
@@ -125,10 +145,18 @@
:'location' => :'Integer',
:'duration_ms' => :'Integer',
+ :'absolute_location' => :'Integer',
+
+ :'absolute_duration_ms' => :'Integer',
+
+ :'recording_location' => :'Integer',
+
+ :'recording_duration_ms' => :'Integer',
+
:'user' => :'User',
:'description' => :'String',
:'keyword_name' => :'String',
@@ -208,10 +236,46 @@
end
+ if attributes.has_key?(:'absoluteLocation')
+
+
+ self.absolute_location = attributes[:'absoluteLocation']
+
+
+ end
+
+
+ if attributes.has_key?(:'absoluteDurationMs')
+
+
+ self.absolute_duration_ms = attributes[:'absoluteDurationMs']
+
+
+ end
+
+
+ if attributes.has_key?(:'recordingLocation')
+
+
+ self.recording_location = attributes[:'recordingLocation']
+
+
+ end
+
+
+ if attributes.has_key?(:'recordingDurationMs')
+
+
+ self.recording_duration_ms = attributes[:'recordingDurationMs']
+
+
+ end
+
+
if attributes.has_key?(:'user')
self.user = attributes[:'user']
@@ -401,10 +465,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
if @agent_score_modifier.nil?
return false
end
@@ -515,20 +595,44 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
id == o.id &&
name == o.name &&
type == o.type &&
location == o.location &&
duration_ms == o.duration_ms &&
+ absolute_location == o.absolute_location &&
+ absolute_duration_ms == o.absolute_duration_ms &&
+ recording_location == o.recording_location &&
+ recording_duration_ms == o.recording_duration_ms &&
user == o.user &&
description == o.description &&
keyword_name == o.keyword_name &&
confidence == o.confidence &&
keyword_set_id == o.keyword_set_id &&
@@ -549,10 +653,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [id, name, type, location, duration_ms, user, description, keyword_name, confidence, keyword_set_id, keyword_set_name, utterance, time_begin, time_end, keyword_confidence_threshold, agent_score_modifier, customer_score_modifier, self_uri].hash
+ [id, name, type, location, duration_ms, absolute_location, absolute_duration_ms, recording_location, recording_duration_ms, user, description, keyword_name, confidence, keyword_set_id, keyword_set_name, utterance, time_begin, time_end, keyword_confidence_threshold, agent_score_modifier, customer_score_modifier, self_uri].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)