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