lib/purecloudplatformclientv2/models/trust_user.rb in purecloudplatformclientv2-47.0.0 vs lib/purecloudplatformclientv2/models/trust_user.rb in purecloudplatformclientv2-48.0.0
- old
+ new
@@ -89,10 +89,13 @@
attr_accessor :languages
# acd auto answer
attr_accessor :acd_auto_answer
+ # preferred language by the user
+ attr_accessor :language_preference
+
attr_accessor :trust_user_details
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
@@ -149,10 +152,12 @@
:'languages' => :'languages',
:'acd_auto_answer' => :'acdAutoAnswer',
+ :'language_preference' => :'languagePreference',
+
:'trust_user_details' => :'trustUserDetails'
}
end
@@ -212,10 +217,12 @@
:'languages' => :'Array<UserRoutingLanguage>',
:'acd_auto_answer' => :'BOOLEAN',
+ :'language_preference' => :'String',
+
:'trust_user_details' => :'TrustUserDetails'
}
end
@@ -485,10 +492,19 @@
end
+ if attributes.has_key?(:'languagePreference')
+
+
+ self.language_preference = attributes[:'languagePreference']
+
+
+ end
+
+
if attributes.has_key?(:'trustUserDetails')
self.trust_user_details = attributes[:'trustUserDetails']
@@ -631,10 +647,14 @@
+
+
+
+
end
@@ -783,10 +803,15 @@
+
+
+
+
+
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
@@ -815,10 +840,11 @@
locations == o.locations &&
groups == o.groups &&
skills == o.skills &&
languages == o.languages &&
acd_auto_answer == o.acd_auto_answer &&
+ language_preference == o.language_preference &&
trust_user_details == o.trust_user_details
end
# @see the `==` method
# @param [Object] Object to be compared
@@ -827,10 +853,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [id, name, division, chat, department, email, primary_contact_info, addresses, state, title, username, manager, images, version, routing_status, presence, conversation_summary, out_of_office, geolocation, station, authorization, profile_skills, locations, groups, skills, languages, acd_auto_answer, trust_user_details].hash
+ [id, name, division, chat, department, email, primary_contact_info, addresses, state, title, username, manager, images, version, routing_status, presence, conversation_summary, out_of_office, geolocation, station, authorization, profile_skills, locations, groups, skills, languages, acd_auto_answer, language_preference, trust_user_details].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)