lib/purecloudplatformclientv2/models/analytics_participant.rb in purecloudplatformclientv2-78.1.0 vs lib/purecloudplatformclientv2/models/analytics_participant.rb in purecloudplatformclientv2-79.0.0
- old
+ new
@@ -37,10 +37,13 @@
attr_accessor :external_organization_id
# Reason for which participant flagged conversation
attr_accessor :flagged_reason
+ # The team id the user is a member of
+ attr_accessor :team_id
+
# List of sessions associated to this participant
attr_accessor :sessions
# List of attributes associated to this participant
attr_accessor :attributes
@@ -61,10 +64,12 @@
:'external_organization_id' => :'externalOrganizationId',
:'flagged_reason' => :'flaggedReason',
+ :'team_id' => :'teamId',
+
:'sessions' => :'sessions',
:'attributes' => :'attributes'
}
@@ -86,10 +91,12 @@
:'external_organization_id' => :'String',
:'flagged_reason' => :'String',
+ :'team_id' => :'String',
+
:'sessions' => :'Array<AnalyticsSession>',
:'attributes' => :'Hash<String, String>'
}
@@ -165,10 +172,19 @@
end
+ if attributes.has_key?(:'teamId')
+
+
+ self.team_id = attributes[:'teamId']
+
+
+ end
+
+
if attributes.has_key?(:'sessions')
if (value = attributes[:'sessions']).is_a?(Array)
self.sessions = value
end
@@ -248,10 +264,14 @@
+
+
+
+
end
@@ -314,10 +334,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 &&
@@ -326,10 +351,11 @@
user_id == o.user_id &&
purpose == o.purpose &&
external_contact_id == o.external_contact_id &&
external_organization_id == o.external_organization_id &&
flagged_reason == o.flagged_reason &&
+ team_id == o.team_id &&
sessions == o.sessions &&
attributes == o.attributes
end
# @see the `==` method
@@ -339,10 +365,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [participant_id, participant_name, user_id, purpose, external_contact_id, external_organization_id, flagged_reason, sessions, attributes].hash
+ [participant_id, participant_name, user_id, purpose, external_contact_id, external_organization_id, flagged_reason, team_id, sessions, attributes].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)