lib/purecloud/models/chat_media_participant.rb in purecloud-0.50.1 vs lib/purecloud/models/chat_media_participant.rb in purecloud-0.51.1
- old
+ new
@@ -25,17 +25,17 @@
attr_accessor :name
# The participant address.
attr_accessor :address
- # The time when this participant joined the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
+ # The time when this participant first joined the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
attr_accessor :start_time
- # The time when this participant went connected on the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
+ # The time when this participant went connected for this media (eg: video connected time). Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
attr_accessor :connected_time
- # The time when this participant when disconnected on the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
+ # The time when this participant went disconnected for this media (eg: video disconnected time). Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
attr_accessor :end_time
# The time when this participant's hold started. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
attr_accessor :start_hold_time
@@ -79,10 +79,19 @@
attr_accessor :wrapup_timeout_ms
# Value is true when the participant has skipped wrap-up.
attr_accessor :wrapup_skipped
+ # The source provider for the communication.
+ attr_accessor :provider
+
+ # If this participant represents an external contact, then this will be the reference for the external contact.
+ attr_accessor :external_contact
+
+ # If this participant represents an external org, then this will be the reference for the external org.
+ attr_accessor :external_organization
+
# The ID of the chat room.
attr_accessor :room_id
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
@@ -128,10 +137,16 @@
:'wrapup_timeout_ms' => :'wrapupTimeoutMs',
:'wrapup_skipped' => :'wrapupSkipped',
+ :'provider' => :'provider',
+
+ :'external_contact' => :'externalContact',
+
+ :'external_organization' => :'externalOrganization',
+
:'room_id' => :'roomId'
}
end
@@ -157,10 +172,13 @@
:'attributes' => :'Hash<String, String>',
:'error_info' => :'ErrorBody',
:'script' => :'UriReference',
:'wrapup_timeout_ms' => :'Integer',
:'wrapup_skipped' => :'BOOLEAN',
+ :'provider' => :'String',
+ :'external_contact' => :'UriReference',
+ :'external_organization' => :'UriReference',
:'room_id' => :'String'
}
end
@@ -261,10 +279,22 @@
self.wrapup_skipped = attributes[:'wrapupSkipped']
else
self.wrapup_skipped = false
end
+ if attributes[:'provider']
+ self.provider = attributes[:'provider']
+ end
+
+ if attributes[:'externalContact']
+ self.external_contact = attributes[:'externalContact']
+ end
+
+ if attributes[:'externalOrganization']
+ self.external_organization = attributes[:'externalOrganization']
+ end
+
if attributes[:'roomId']
self.room_id = attributes[:'roomId']
end
end
@@ -287,11 +317,11 @@
@direction = direction
end
# Custom attribute writer method checking allowed values (enum).
def disconnect_type=(disconnect_type)
- allowed_values = ["ENDPOINT", "CLIENT", "SYSTEM", "TRANSFER", "TRANSFER_CONFERENCE", "TRANSFER_CONSULT", "TRANSFER_FORWARD", "TRANSPORT_FAILURE", "ERROR", "PEER", "OTHER", "SPAM"]
+ allowed_values = ["ENDPOINT", "CLIENT", "SYSTEM", "TRANSFER", "TRANSFER_CONFERENCE", "TRANSFER_CONSULT", "TRANSFER_FORWARD", "TRANSFER_NO_ANSWER", "TRANSFER_NOT_AVAILABLE", "TRANSPORT_FAILURE", "ERROR", "PEER", "OTHER", "SPAM"]
if disconnect_type && !allowed_values.include?(disconnect_type)
fail "invalid value for 'disconnect_type', must be one of #{allowed_values}"
end
@disconnect_type = disconnect_type
end
@@ -319,20 +349,23 @@
attributes == o.attributes &&
error_info == o.error_info &&
script == o.script &&
wrapup_timeout_ms == o.wrapup_timeout_ms &&
wrapup_skipped == o.wrapup_skipped &&
+ provider == o.provider &&
+ external_contact == o.external_contact &&
+ external_organization == o.external_organization &&
room_id == o.room_id
end
# @see the `==` method
def eql?(o)
self == o
end
# Calculate hash code according to all attributes.
def hash
- [id, name, address, start_time, connected_time, end_time, start_hold_time, purpose, state, direction, disconnect_type, held, wrapup_required, wrapup_prompt, user, queue, attributes, error_info, script, wrapup_timeout_ms, wrapup_skipped, room_id].hash
+ [id, name, address, start_time, connected_time, end_time, start_hold_time, purpose, state, direction, disconnect_type, held, wrapup_required, wrapup_prompt, user, queue, attributes, error_info, script, wrapup_timeout_ms, wrapup_skipped, provider, external_contact, external_organization, room_id].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)