lib/purecloudplatformclientv2/models/trust_user.rb in purecloudplatformclientv2-81.0.0 vs lib/purecloudplatformclientv2/models/trust_user.rb in purecloudplatformclientv2-82.0.0
- old
+ new
@@ -86,10 +86,13 @@
attr_accessor :locations
# The groups the user is a member of
attr_accessor :groups
+ # The team the user is a member of
+ attr_accessor :team
+
# Routing (ACD) skills possessed by the user
attr_accessor :skills
# Routing (ACD) languages possessed by the user
attr_accessor :languages
@@ -160,10 +163,12 @@
:'locations' => :'locations',
:'groups' => :'groups',
+ :'team' => :'team',
+
:'skills' => :'skills',
:'languages' => :'languages',
:'acd_auto_answer' => :'acdAutoAnswer',
@@ -233,10 +238,12 @@
:'locations' => :'Array<Location>',
:'groups' => :'Array<Group>',
+ :'team' => :'Team',
+
:'skills' => :'Array<UserRoutingSkill>',
:'languages' => :'Array<UserRoutingLanguage>',
:'acd_auto_answer' => :'BOOLEAN',
@@ -514,10 +521,19 @@
end
+ if attributes.has_key?(:'team')
+
+
+ self.team = attributes[:'team']
+
+
+ end
+
+
if attributes.has_key?(:'skills')
if (value = attributes[:'skills']).is_a?(Array)
self.skills = value
end
@@ -729,10 +745,14 @@
+
+
+
+
end
@@ -906,10 +926,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 &&
@@ -938,10 +963,11 @@
station == o.station &&
authorization == o.authorization &&
profile_skills == o.profile_skills &&
locations == o.locations &&
groups == o.groups &&
+ team == o.team &&
skills == o.skills &&
languages == o.languages &&
acd_auto_answer == o.acd_auto_answer &&
language_preference == o.language_preference &&
last_token_issued == o.last_token_issued &&
@@ -955,10 +981,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, certifications, biography, employer_info, routing_status, presence, conversation_summary, out_of_office, geolocation, station, authorization, profile_skills, locations, groups, skills, languages, acd_auto_answer, language_preference, last_token_issued, trust_user_details].hash
+ [id, name, division, chat, department, email, primary_contact_info, addresses, state, title, username, manager, images, version, certifications, biography, employer_info, routing_status, presence, conversation_summary, out_of_office, geolocation, station, authorization, profile_skills, locations, groups, team, skills, languages, acd_auto_answer, language_preference, last_token_issued, trust_user_details].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)