lib/purecloud/models/conversation_notification_participants.rb in purecloud-0.68.1 vs lib/purecloud/models/conversation_notification_participants.rb in purecloud-0.69.1
- old
+ new
@@ -16,160 +16,160 @@
require 'date'
module PureCloud
class ConversationNotificationParticipants
+ attr_accessor :queue_id
+
+ attr_accessor :monitored_participant_id
+
attr_accessor :external_contact_id
- attr_accessor :wrapup
+ attr_accessor :purpose
- attr_accessor :connected_time
+ attr_accessor :group_id
- attr_accessor :queue_id
+ attr_accessor :wrapup_timeout_ms
- attr_accessor :consult_participant_id
+ attr_accessor :callbacks
attr_accessor :videos
- attr_accessor :wrapup_required
+ attr_accessor :external_organization_id
- attr_accessor :screenshares
+ attr_accessor :cobrowsesessions
- attr_accessor :social_expressions
-
attr_accessor :emails
- attr_accessor :purpose
+ attr_accessor :wrapup_required
- attr_accessor :end_time
+ attr_accessor :connected_time
- attr_accessor :calls
-
- attr_accessor :monitored_participant_id
-
- attr_accessor :wrapup_expected
-
attr_accessor :id
- attr_accessor :group_id
+ attr_accessor :wrapup
- attr_accessor :wrapup_prompt
-
attr_accessor :address
- attr_accessor :additional_properties
+ attr_accessor :user_id
- attr_accessor :callbacks
+ attr_accessor :consult_participant_id
- attr_accessor :user_id
+ attr_accessor :calls
+ attr_accessor :wrapup_expected
+
attr_accessor :name
- attr_accessor :wrapup_timeout_ms
+ attr_accessor :wrapup_prompt
- attr_accessor :external_organization_id
+ attr_accessor :chats
+ attr_accessor :social_expressions
+
attr_accessor :attributes
- attr_accessor :cobrowsesessions
+ attr_accessor :end_time
- attr_accessor :chats
+ attr_accessor :screenshares
+ attr_accessor :additional_properties
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
+ :'queue_id' => :'queueId',
+
+ :'monitored_participant_id' => :'monitoredParticipantId',
+
:'external_contact_id' => :'externalContactId',
- :'wrapup' => :'wrapup',
+ :'purpose' => :'purpose',
- :'connected_time' => :'connectedTime',
+ :'group_id' => :'groupId',
- :'queue_id' => :'queueId',
+ :'wrapup_timeout_ms' => :'wrapupTimeoutMs',
- :'consult_participant_id' => :'consultParticipantId',
+ :'callbacks' => :'callbacks',
:'videos' => :'videos',
- :'wrapup_required' => :'wrapupRequired',
+ :'external_organization_id' => :'externalOrganizationId',
- :'screenshares' => :'screenshares',
+ :'cobrowsesessions' => :'cobrowsesessions',
- :'social_expressions' => :'socialExpressions',
-
:'emails' => :'emails',
- :'purpose' => :'purpose',
+ :'wrapup_required' => :'wrapupRequired',
- :'end_time' => :'endTime',
+ :'connected_time' => :'connectedTime',
- :'calls' => :'calls',
-
- :'monitored_participant_id' => :'monitoredParticipantId',
-
- :'wrapup_expected' => :'wrapupExpected',
-
:'id' => :'id',
- :'group_id' => :'groupId',
+ :'wrapup' => :'wrapup',
- :'wrapup_prompt' => :'wrapupPrompt',
-
:'address' => :'address',
- :'additional_properties' => :'additionalProperties',
+ :'user_id' => :'userId',
- :'callbacks' => :'callbacks',
+ :'consult_participant_id' => :'consultParticipantId',
- :'user_id' => :'userId',
+ :'calls' => :'calls',
+ :'wrapup_expected' => :'wrapupExpected',
+
:'name' => :'name',
- :'wrapup_timeout_ms' => :'wrapupTimeoutMs',
+ :'wrapup_prompt' => :'wrapupPrompt',
- :'external_organization_id' => :'externalOrganizationId',
+ :'chats' => :'chats',
+ :'social_expressions' => :'socialExpressions',
+
:'attributes' => :'attributes',
- :'cobrowsesessions' => :'cobrowsesessions',
+ :'end_time' => :'endTime',
- :'chats' => :'chats'
+ :'screenshares' => :'screenshares',
+ :'additional_properties' => :'additionalProperties'
+
}
end
# Attribute type mapping.
def self.swagger_types
{
- :'external_contact_id' => :'String',
- :'wrapup' => :'ConversationNotificationWrapup',
- :'connected_time' => :'DateTime',
:'queue_id' => :'String',
- :'consult_participant_id' => :'String',
+ :'monitored_participant_id' => :'String',
+ :'external_contact_id' => :'String',
+ :'purpose' => :'String',
+ :'group_id' => :'String',
+ :'wrapup_timeout_ms' => :'Integer',
+ :'callbacks' => :'Array<ConversationNotificationCallbacks>',
:'videos' => :'Array<ConversationNotificationVideos>',
- :'wrapup_required' => :'BOOLEAN',
- :'screenshares' => :'Array<ConversationNotificationScreenshares>',
- :'social_expressions' => :'Array<ConversationNotificationSocialExpressions>',
+ :'external_organization_id' => :'String',
+ :'cobrowsesessions' => :'Array<ConversationNotificationCobrowsesessions>',
:'emails' => :'Array<ConversationNotificationEmails>',
- :'purpose' => :'String',
- :'end_time' => :'DateTime',
- :'calls' => :'Array<ConversationNotificationCalls>',
- :'monitored_participant_id' => :'String',
- :'wrapup_expected' => :'BOOLEAN',
+ :'wrapup_required' => :'BOOLEAN',
+ :'connected_time' => :'DateTime',
:'id' => :'String',
- :'group_id' => :'String',
- :'wrapup_prompt' => :'String',
+ :'wrapup' => :'ConversationNotificationWrapup',
:'address' => :'String',
- :'additional_properties' => :'Object',
- :'callbacks' => :'Array<ConversationNotificationCallbacks>',
:'user_id' => :'String',
+ :'consult_participant_id' => :'String',
+ :'calls' => :'Array<ConversationNotificationCalls>',
+ :'wrapup_expected' => :'BOOLEAN',
:'name' => :'String',
- :'wrapup_timeout_ms' => :'Integer',
- :'external_organization_id' => :'String',
+ :'wrapup_prompt' => :'String',
+ :'chats' => :'Array<ConversationNotificationChats>',
+ :'social_expressions' => :'Array<ConversationNotificationSocialExpressions>',
:'attributes' => :'Hash<String, String>',
- :'cobrowsesessions' => :'Array<ConversationNotificationCobrowsesessions>',
- :'chats' => :'Array<ConversationNotificationChats>'
+ :'end_time' => :'DateTime',
+ :'screenshares' => :'Array<ConversationNotificationScreenshares>',
+ :'additional_properties' => :'Object'
}
end
def initialize(attributes = {})
@@ -177,183 +177,183 @@
# convert string to symbol for hash key
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
+ if attributes[:'queueId']
+ self.queue_id = attributes[:'queueId']
+ end
+
+ if attributes[:'monitoredParticipantId']
+ self.monitored_participant_id = attributes[:'monitoredParticipantId']
+ end
+
if attributes[:'externalContactId']
self.external_contact_id = attributes[:'externalContactId']
end
- if attributes[:'wrapup']
- self.wrapup = attributes[:'wrapup']
+ if attributes[:'purpose']
+ self.purpose = attributes[:'purpose']
end
- if attributes[:'connectedTime']
- self.connected_time = attributes[:'connectedTime']
+ if attributes[:'groupId']
+ self.group_id = attributes[:'groupId']
end
- if attributes[:'queueId']
- self.queue_id = attributes[:'queueId']
+ if attributes[:'wrapupTimeoutMs']
+ self.wrapup_timeout_ms = attributes[:'wrapupTimeoutMs']
end
- if attributes[:'consultParticipantId']
- self.consult_participant_id = attributes[:'consultParticipantId']
+ if attributes[:'callbacks']
+ if (value = attributes[:'callbacks']).is_a?(Array)
+ self.callbacks = value
+ end
end
if attributes[:'videos']
if (value = attributes[:'videos']).is_a?(Array)
self.videos = value
end
end
- if attributes[:'wrapupRequired']
- self.wrapup_required = attributes[:'wrapupRequired']
+ if attributes[:'externalOrganizationId']
+ self.external_organization_id = attributes[:'externalOrganizationId']
end
- if attributes[:'screenshares']
- if (value = attributes[:'screenshares']).is_a?(Array)
- self.screenshares = value
+ if attributes[:'cobrowsesessions']
+ if (value = attributes[:'cobrowsesessions']).is_a?(Array)
+ self.cobrowsesessions = value
end
end
- if attributes[:'socialExpressions']
- if (value = attributes[:'socialExpressions']).is_a?(Array)
- self.social_expressions = value
- end
- end
-
if attributes[:'emails']
if (value = attributes[:'emails']).is_a?(Array)
self.emails = value
end
end
- if attributes[:'purpose']
- self.purpose = attributes[:'purpose']
+ if attributes[:'wrapupRequired']
+ self.wrapup_required = attributes[:'wrapupRequired']
end
- if attributes[:'endTime']
- self.end_time = attributes[:'endTime']
+ if attributes[:'connectedTime']
+ self.connected_time = attributes[:'connectedTime']
end
- if attributes[:'calls']
- if (value = attributes[:'calls']).is_a?(Array)
- self.calls = value
- end
- end
-
- if attributes[:'monitoredParticipantId']
- self.monitored_participant_id = attributes[:'monitoredParticipantId']
- end
-
- if attributes[:'wrapupExpected']
- self.wrapup_expected = attributes[:'wrapupExpected']
- end
-
if attributes[:'id']
self.id = attributes[:'id']
end
- if attributes[:'groupId']
- self.group_id = attributes[:'groupId']
+ if attributes[:'wrapup']
+ self.wrapup = attributes[:'wrapup']
end
- if attributes[:'wrapupPrompt']
- self.wrapup_prompt = attributes[:'wrapupPrompt']
- end
-
if attributes[:'address']
self.address = attributes[:'address']
end
- if attributes[:'additionalProperties']
- self.additional_properties = attributes[:'additionalProperties']
+ if attributes[:'userId']
+ self.user_id = attributes[:'userId']
end
- if attributes[:'callbacks']
- if (value = attributes[:'callbacks']).is_a?(Array)
- self.callbacks = value
+ if attributes[:'consultParticipantId']
+ self.consult_participant_id = attributes[:'consultParticipantId']
+ end
+
+ if attributes[:'calls']
+ if (value = attributes[:'calls']).is_a?(Array)
+ self.calls = value
end
end
- if attributes[:'userId']
- self.user_id = attributes[:'userId']
+ if attributes[:'wrapupExpected']
+ self.wrapup_expected = attributes[:'wrapupExpected']
end
if attributes[:'name']
self.name = attributes[:'name']
end
- if attributes[:'wrapupTimeoutMs']
- self.wrapup_timeout_ms = attributes[:'wrapupTimeoutMs']
+ if attributes[:'wrapupPrompt']
+ self.wrapup_prompt = attributes[:'wrapupPrompt']
end
- if attributes[:'externalOrganizationId']
- self.external_organization_id = attributes[:'externalOrganizationId']
+ if attributes[:'chats']
+ if (value = attributes[:'chats']).is_a?(Array)
+ self.chats = value
+ end
end
+ if attributes[:'socialExpressions']
+ if (value = attributes[:'socialExpressions']).is_a?(Array)
+ self.social_expressions = value
+ end
+ end
+
if attributes[:'attributes']
if (value = attributes[:'attributes']).is_a?(Array)
self.attributes = value
end
end
- if attributes[:'cobrowsesessions']
- if (value = attributes[:'cobrowsesessions']).is_a?(Array)
- self.cobrowsesessions = value
- end
+ if attributes[:'endTime']
+ self.end_time = attributes[:'endTime']
end
- if attributes[:'chats']
- if (value = attributes[:'chats']).is_a?(Array)
- self.chats = value
+ if attributes[:'screenshares']
+ if (value = attributes[:'screenshares']).is_a?(Array)
+ self.screenshares = value
end
end
+ if attributes[:'additionalProperties']
+ self.additional_properties = attributes[:'additionalProperties']
+ end
+
end
# Check equality by comparing each attribute.
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
- external_contact_id == o.external_contact_id &&
- wrapup == o.wrapup &&
- connected_time == o.connected_time &&
queue_id == o.queue_id &&
- consult_participant_id == o.consult_participant_id &&
+ monitored_participant_id == o.monitored_participant_id &&
+ external_contact_id == o.external_contact_id &&
+ purpose == o.purpose &&
+ group_id == o.group_id &&
+ wrapup_timeout_ms == o.wrapup_timeout_ms &&
+ callbacks == o.callbacks &&
videos == o.videos &&
- wrapup_required == o.wrapup_required &&
- screenshares == o.screenshares &&
- social_expressions == o.social_expressions &&
+ external_organization_id == o.external_organization_id &&
+ cobrowsesessions == o.cobrowsesessions &&
emails == o.emails &&
- purpose == o.purpose &&
- end_time == o.end_time &&
- calls == o.calls &&
- monitored_participant_id == o.monitored_participant_id &&
- wrapup_expected == o.wrapup_expected &&
+ wrapup_required == o.wrapup_required &&
+ connected_time == o.connected_time &&
id == o.id &&
- group_id == o.group_id &&
- wrapup_prompt == o.wrapup_prompt &&
+ wrapup == o.wrapup &&
address == o.address &&
- additional_properties == o.additional_properties &&
- callbacks == o.callbacks &&
user_id == o.user_id &&
+ consult_participant_id == o.consult_participant_id &&
+ calls == o.calls &&
+ wrapup_expected == o.wrapup_expected &&
name == o.name &&
- wrapup_timeout_ms == o.wrapup_timeout_ms &&
- external_organization_id == o.external_organization_id &&
+ wrapup_prompt == o.wrapup_prompt &&
+ chats == o.chats &&
+ social_expressions == o.social_expressions &&
attributes == o.attributes &&
- cobrowsesessions == o.cobrowsesessions &&
- chats == o.chats
+ end_time == o.end_time &&
+ screenshares == o.screenshares &&
+ additional_properties == o.additional_properties
end
# @see the `==` method
def eql?(o)
self == o
end
# Calculate hash code according to all attributes.
def hash
- [external_contact_id, wrapup, connected_time, queue_id, consult_participant_id, videos, wrapup_required, screenshares, social_expressions, emails, purpose, end_time, calls, monitored_participant_id, wrapup_expected, id, group_id, wrapup_prompt, address, additional_properties, callbacks, user_id, name, wrapup_timeout_ms, external_organization_id, attributes, cobrowsesessions, chats].hash
+ [queue_id, monitored_participant_id, external_contact_id, purpose, group_id, wrapup_timeout_ms, callbacks, videos, external_organization_id, cobrowsesessions, emails, wrapup_required, connected_time, id, wrapup, address, user_id, consult_participant_id, calls, wrapup_expected, name, wrapup_prompt, chats, social_expressions, attributes, end_time, screenshares, additional_properties].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)