lib/purecloud/models/conversation_notification_participants.rb in purecloud-0.58.1 vs lib/purecloud/models/conversation_notification_participants.rb in purecloud-0.59.1

- old
+ new

@@ -18,158 +18,158 @@ module PureCloud class ConversationNotificationParticipants attr_accessor :external_contact_id - attr_accessor :queue_id + attr_accessor :wrapup attr_accessor :connected_time + attr_accessor :queue_id + attr_accessor :consult_participant_id + attr_accessor :videos + + attr_accessor :wrapup_required + + attr_accessor :screenshares + 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 :name + attr_accessor :address - attr_accessor :user_id + attr_accessor :additional_properties attr_accessor :callbacks - attr_accessor :wrapup_timeout_ms + attr_accessor :user_id - attr_accessor :chats + attr_accessor :name - attr_accessor :screen_shares + attr_accessor :wrapup_timeout_ms - 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 { :'external_contact_id' => :'externalContactId', - :'queue_id' => :'queueId', + :'wrapup' => :'wrapup', :'connected_time' => :'connectedTime', + :'queue_id' => :'queueId', + :'consult_participant_id' => :'consultParticipantId', + :'videos' => :'videos', + + :'wrapup_required' => :'wrapupRequired', + + :'screenshares' => :'screenshares', + :'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', - :'name' => :'name', + :'address' => :'address', - :'user_id' => :'userId', + :'additional_properties' => :'additionalProperties', :'callbacks' => :'callbacks', - :'wrapup_timeout_ms' => :'wrapupTimeoutMs', + :'user_id' => :'userId', - :'chats' => :'chats', + :'name' => :'name', - :'screen_shares' => :'screenShares', + :'wrapup_timeout_ms' => :'wrapupTimeoutMs', - :'wrapup' => :'wrapup', - - :'videos' => :'videos', - - :'wrapup_required' => :'wrapupRequired', - - :'emails' => :'emails', - - :'calls' => :'calls', - - :'group_id' => :'groupId', - - :'address' => :'address', - - :'additional_properties' => :'additionalProperties', - :'external_organization_id' => :'externalOrganizationId', :'attributes' => :'attributes', - :'cobrowsesessions' => :'cobrowsesessions' + :'cobrowsesessions' => :'cobrowsesessions', + :'chats' => :'chats' + } end # Attribute type mapping. def self.swagger_types { :'external_contact_id' => :'String', - :'queue_id' => :'String', + :'wrapup' => :'ConversationNotificationWrapup', :'connected_time' => :'DateTime', + :'queue_id' => :'String', :'consult_participant_id' => :'String', + :'videos' => :'Array<ConversationNotificationVideos>', + :'wrapup_required' => :'BOOLEAN', + :'screenshares' => :'Array<ConversationNotificationScreenshares>', :'social_expressions' => :'Array<ConversationNotificationSocialExpressions>', + :'emails' => :'Array<ConversationNotificationEmails>', :'purpose' => :'String', :'end_time' => :'DateTime', + :'calls' => :'Array<ConversationNotificationCalls>', :'monitored_participant_id' => :'String', :'wrapup_expected' => :'BOOLEAN', :'id' => :'String', - :'wrapup_prompt' => :'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', + :'wrapup_prompt' => :'String', :'address' => :'String', :'additional_properties' => :'Object', + :'callbacks' => :'Array<ConversationNotificationCallbacks>', + :'user_id' => :'String', + :'name' => :'String', + :'wrapup_timeout_ms' => :'Integer', :'external_organization_id' => :'String', :'attributes' => :'Hash<String, String>', - :'cobrowsesessions' => :'Array<ConversationNotificationCobrowsesessions>' + :'cobrowsesessions' => :'Array<ConversationNotificationCobrowsesessions>', + :'chats' => :'Array<ConversationNotificationChats>' } end def initialize(attributes = {}) @@ -181,36 +181,68 @@ if attributes[:'externalContactId'] self.external_contact_id = attributes[:'externalContactId'] end - if attributes[:'queueId'] - self.queue_id = attributes[:'queueId'] + if attributes[:'wrapup'] + self.wrapup = attributes[:'wrapup'] 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[:'screenshares'] + if (value = attributes[:'screenshares']).is_a?(Array) + self.screenshares = 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'] 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'] @@ -219,82 +251,44 @@ 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[:'name'] - self.name = attributes[:'name'] + if attributes[:'address'] + self.address = attributes[:'address'] end - if attributes[:'userId'] - self.user_id = attributes[:'userId'] + if attributes[:'additionalProperties'] + self.additional_properties = attributes[:'additionalProperties'] end if attributes[:'callbacks'] if (value = attributes[:'callbacks']).is_a?(Array) self.callbacks = value end end - if attributes[:'wrapupTimeoutMs'] - self.wrapup_timeout_ms = attributes[:'wrapupTimeoutMs'] + if attributes[:'userId'] + self.user_id = attributes[:'userId'] end - if attributes[:'chats'] - if (value = attributes[:'chats']).is_a?(Array) - self.chats = value - end + if attributes[:'name'] + self.name = attributes[:'name'] end - if attributes[:'screenShares'] - if (value = attributes[:'screenShares']).is_a?(Array) - self.screen_shares = value - end + if attributes[:'wrapupTimeoutMs'] + self.wrapup_timeout_ms = attributes[:'wrapupTimeoutMs'] 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'] @@ -307,53 +301,59 @@ 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 && external_contact_id == o.external_contact_id && - queue_id == o.queue_id && + wrapup == o.wrapup && connected_time == o.connected_time && + queue_id == o.queue_id && consult_participant_id == o.consult_participant_id && + videos == o.videos && + wrapup_required == o.wrapup_required && + screenshares == o.screenshares && 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 && - wrapup_prompt == o.wrapup_prompt && - 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 && + wrapup_prompt == o.wrapup_prompt && address == o.address && additional_properties == o.additional_properties && + callbacks == o.callbacks && + user_id == o.user_id && + name == o.name && + wrapup_timeout_ms == o.wrapup_timeout_ms && external_organization_id == o.external_organization_id && attributes == o.attributes && - cobrowsesessions == o.cobrowsesessions + cobrowsesessions == o.cobrowsesessions && + chats == o.chats end # @see the `==` method def eql?(o) self == o end # Calculate hash code according to all attributes. def 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 + [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 end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)