lib/purecloud/models/call_media_participant.rb in purecloud-0.50.1 vs lib/purecloud/models/call_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
+
# Value is true when the call is muted.
attr_accessor :muted
# Value is true when the call is confined.
attr_accessor :confined
@@ -158,10 +167,16 @@
:'wrapup_timeout_ms' => :'wrapupTimeoutMs',
:'wrapup_skipped' => :'wrapupSkipped',
+ :'provider' => :'provider',
+
+ :'external_contact' => :'externalContact',
+
+ :'external_organization' => :'externalOrganization',
+
:'muted' => :'muted',
:'confined' => :'confined',
:'recording' => :'recording',
@@ -207,10 +222,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',
:'muted' => :'BOOLEAN',
:'confined' => :'BOOLEAN',
:'recording' => :'BOOLEAN',
:'recording_state' => :'String',
:'group' => :'UriReference',
@@ -321,10 +339,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[:'muted']
self.muted = attributes[:'muted']
else
self.muted = false
end
@@ -393,11 +423,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
@@ -434,10 +464,13 @@
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 &&
muted == o.muted &&
confined == o.confined &&
recording == o.recording &&
recording_state == o.recording_state &&
group == o.group &&
@@ -454,10 +487,10 @@
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, muted, confined, recording, recording_state, group, ani, dnis, document_id, fax_status, monitored_participant_id, consult_participant_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, muted, confined, recording, recording_state, group, ani, dnis, document_id, fax_status, monitored_participant_id, consult_participant_id].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)