/// <summary> /// Initializes a new instance of the <see cref="CallbackBasic" /> class. /// </summary> /// <param name="State">The connection state of this communication..</param> /// <param name="Id">A globally unique identifier for this communication..</param> /// <param name="Segments">The time line of the participant's callback, divided into activity segments..</param> /// <param name="Direction">The direction of the call.</param> /// <param name="Held">True if this call is held and the person on this side hears silence..</param> /// <param name="DisconnectType">System defined string indicating what caused the communication to disconnect. Will be null until the communication disconnects..</param> /// <param name="StartHoldTime">The timestamp the callback was placed on hold in the cloud clock if the callback is currently on hold. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param> /// <param name="DialerPreview">The preview data to be used when this callback is a Preview..</param> /// <param name="Voicemail">The voicemail data to be used when this callback is an ACD voicemail..</param> /// <param name="CallbackNumbers">The phone number(s) to use to place the callback..</param> /// <param name="CallbackUserName">The name of the user requesting a callback..</param> /// <param name="ScriptId">The UUID of the script to use..</param> /// <param name="SkipEnabled">True if the ability to skip a callback should be enabled..</param> /// <param name="TimeoutSeconds">The number of seconds before the system automatically places a call for a callback. 0 means the automatic placement is disabled..</param> /// <param name="StartAlertingTime">The timestamp the communication has when it is first put into an alerting state. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param> /// <param name="ConnectedTime">The timestamp when this communication was connected in the cloud clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param> /// <param name="DisconnectedTime">The timestamp when this communication disconnected from the conversation in the provider clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param> /// <param name="CallbackScheduledTime">The timestamp when this communication is scheduled in the provider clock. If this value is missing it indicates the callback will be placed immediately. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param> /// <param name="AutomatedCallbackConfigId">The id of the config for automatically placing the callback (and handling the disposition). If null, the callback will not be placed automatically but routed to an agent as per normal..</param> /// <param name="Provider">The source provider for the callback..</param> /// <param name="PeerId">The id of the peer communication corresponding to a matching leg for this communication..</param> public CallbackBasic(StateEnum?State = null, string Id = null, List <Segment> Segments = null, DirectionEnum?Direction = null, bool?Held = null, DisconnectTypeEnum?DisconnectType = null, DateTime?StartHoldTime = null, DialerPreview DialerPreview = null, Voicemail Voicemail = null, List <string> CallbackNumbers = null, string CallbackUserName = null, string ScriptId = null, bool?SkipEnabled = null, int?TimeoutSeconds = null, DateTime?StartAlertingTime = null, DateTime?ConnectedTime = null, DateTime?DisconnectedTime = null, DateTime?CallbackScheduledTime = null, string AutomatedCallbackConfigId = null, string Provider = null, string PeerId = null) { this.State = State; this.Id = Id; this.Segments = Segments; this.Direction = Direction; this.Held = Held; this.DisconnectType = DisconnectType; this.StartHoldTime = StartHoldTime; this.DialerPreview = DialerPreview; this.Voicemail = Voicemail; this.CallbackNumbers = CallbackNumbers; this.CallbackUserName = CallbackUserName; this.ScriptId = ScriptId; this.SkipEnabled = SkipEnabled; this.TimeoutSeconds = TimeoutSeconds; this.StartAlertingTime = StartAlertingTime; this.ConnectedTime = ConnectedTime; this.DisconnectedTime = DisconnectedTime; this.CallbackScheduledTime = CallbackScheduledTime; this.AutomatedCallbackConfigId = AutomatedCallbackConfigId; this.Provider = Provider; this.PeerId = PeerId; }
/// <summary> /// Initializes a new instance of the <see cref="CallbackMediaParticipant" /> class. /// </summary> /// <param name="Id">The unique participant ID..</param> /// <param name="Name">The display friendly name of the participant..</param> /// <param name="Address">The participant address..</param> /// <param name="StartTime">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.</param> /// <param name="ConnectedTime">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.</param> /// <param name="EndTime">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.</param> /// <param name="StartHoldTime">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.</param> /// <param name="Purpose">The participant's purpose. Values can be: 'agent', 'user', 'customer', 'external', 'acd', 'ivr.</param> /// <param name="State">The participant's state. Values can be: 'alerting', 'connected', 'disconnected', 'dialing', 'contacting.</param> /// <param name="Direction">The participant's direction. Values can be: 'inbound' or 'outbound'.</param> /// <param name="DisconnectType">The reason the participant was disconnected from the conversation..</param> /// <param name="Held">Value is true when the participant is on hold..</param> /// <param name="WrapupRequired">Value is true when the participant requires wrap-up..</param> /// <param name="WrapupPrompt">The wrap-up prompt indicating the type of wrap-up to be performed..</param> /// <param name="User">The PureCloud user for this participant..</param> /// <param name="Queue">The PureCloud queue for this participant..</param> /// <param name="Attributes">A list of ad-hoc attributes for the participant..</param> /// <param name="ErrorInfo">If the conversation ends in error, contains additional error details..</param> /// <param name="Script">The Engage script that should be used by this participant..</param> /// <param name="WrapupTimeoutMs">The amount of time the participant has to complete wrap-up..</param> /// <param name="WrapupSkipped">Value is true when the participant has skipped wrap-up..</param> /// <param name="AlertingTimeoutMs">Specifies how long the agent has to answer an interaction before being marked as not responding..</param> /// <param name="Provider">The source provider for the communication..</param> /// <param name="ExternalContact">If this participant represents an external contact, then this will be the reference for the external contact..</param> /// <param name="ExternalOrganization">If this participant represents an external org, then this will be the reference for the external org..</param> /// <param name="Wrapup">Wrapup for this participant, if it has been applied..</param> /// <param name="Peer">The peer communication corresponding to a matching leg for this communication..</param> /// <param name="FlaggedReason">The reason specifying why participant flagged the conversation..</param> /// <param name="JourneyContext">Journey System data/context that is applicable to this communication. When used for historical purposes, the context should be immutable. When null, there is no applicable Journey System context..</param> /// <param name="OutboundPreview">The outbound preview associated with this callback..</param> /// <param name="Voicemail">The voicemail associated with this callback..</param> /// <param name="CallbackNumbers">The list of phone number to use for this callback..</param> /// <param name="CallbackUserName">The name of the callback target..</param> /// <param name="SkipEnabled">If true, the callback can be skipped.</param> /// <param name="TimeoutSeconds">Duration in seconds before the callback will be auto-dialed..</param> /// <param name="AutomatedCallbackConfigId">The id of the config for automatically placing the callback (and handling the disposition). If absent, the callback will not be placed automatically but routed to an agent as per normal..</param> /// <param name="CallbackScheduledTime">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param> public CallbackMediaParticipant(string Id = null, string Name = null, string Address = null, DateTime?StartTime = null, DateTime?ConnectedTime = null, DateTime?EndTime = null, DateTime?StartHoldTime = null, string Purpose = null, StateEnum?State = null, DirectionEnum?Direction = null, DisconnectTypeEnum?DisconnectType = null, bool?Held = null, bool?WrapupRequired = null, string WrapupPrompt = null, UriReference User = null, UriReference Queue = null, Dictionary <string, string> Attributes = null, ErrorBody ErrorInfo = null, UriReference Script = null, int?WrapupTimeoutMs = null, bool?WrapupSkipped = null, int?AlertingTimeoutMs = null, string Provider = null, UriReference ExternalContact = null, UriReference ExternalOrganization = null, Wrapup Wrapup = null, string Peer = null, FlaggedReasonEnum?FlaggedReason = null, JourneyContext JourneyContext = null, DialerPreview OutboundPreview = null, Voicemail Voicemail = null, List <string> CallbackNumbers = null, string CallbackUserName = null, bool?SkipEnabled = null, int?TimeoutSeconds = null, string AutomatedCallbackConfigId = null, DateTime?CallbackScheduledTime = null) { this.Id = Id; this.Name = Name; this.Address = Address; this.StartTime = StartTime; this.ConnectedTime = ConnectedTime; this.EndTime = EndTime; this.StartHoldTime = StartHoldTime; this.Purpose = Purpose; this.State = State; this.Direction = Direction; this.DisconnectType = DisconnectType; this.Held = Held; this.WrapupRequired = WrapupRequired; this.WrapupPrompt = WrapupPrompt; this.User = User; this.Queue = Queue; this.Attributes = Attributes; this.ErrorInfo = ErrorInfo; this.Script = Script; this.WrapupTimeoutMs = WrapupTimeoutMs; this.WrapupSkipped = WrapupSkipped; this.AlertingTimeoutMs = AlertingTimeoutMs; this.Provider = Provider; this.ExternalContact = ExternalContact; this.ExternalOrganization = ExternalOrganization; this.Wrapup = Wrapup; this.Peer = Peer; this.FlaggedReason = FlaggedReason; this.JourneyContext = JourneyContext; this.OutboundPreview = OutboundPreview; this.Voicemail = Voicemail; this.CallbackNumbers = CallbackNumbers; this.CallbackUserName = CallbackUserName; this.SkipEnabled = SkipEnabled; this.TimeoutSeconds = TimeoutSeconds; this.AutomatedCallbackConfigId = AutomatedCallbackConfigId; this.CallbackScheduledTime = CallbackScheduledTime; }
/// <summary> /// Initializes a new instance of the <see cref="Callback" /> class. /// </summary> /// <param name="State">The connection state of this communication..</param> /// <param name="Id">A globally unique identifier for this communication..</param> /// <param name="Segments">The time line of the participant's callback, divided into activity segments..</param> /// <param name="Direction">The direction of the call.</param> /// <param name="Held">True if this call is held and the person on this side hears silence..</param> /// <param name="DisconnectType">System defined string indicating what caused the communication to disconnect. Will be null until the communication disconnects..</param> /// <param name="StartHoldTime">The timestamp the callback was placed on hold in the cloud clock if the callback is currently on hold. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z.</param> /// <param name="DialerPreview">The preview data to be used when this callback is a Preview..</param> /// <param name="Voicemail">The voicemail data to be used when this callback is an ACD voicemail..</param> /// <param name="CallbackNumbers">The phone number(s) to use to place the callback..</param> /// <param name="CallbackUserName">The name of the user requesting a callback..</param> /// <param name="ScriptId">The UUID of the script to use..</param> /// <param name="ExternalCampaign">True if the call for the callback uses external dialing..</param> /// <param name="SkipEnabled">True if the ability to skip a callback should be enabled..</param> /// <param name="TimeoutSeconds">The number of seconds before the system automatically places a call for a callback. 0 means the automatic placement is disabled..</param> /// <param name="StartAlertingTime">The timestamp the communication has when it is first put into an alerting state. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z.</param> /// <param name="ConnectedTime">The timestamp when this communication was connected in the cloud clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z.</param> /// <param name="DisconnectedTime">The timestamp when this communication disconnected from the conversation in the provider clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z.</param> /// <param name="CallbackScheduledTime">The timestamp when this communication is scheduled in the provider clock. If this value is missing it indicates the callback will be placed immediately. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z.</param> /// <param name="AutomatedCallbackConfigId">The id of the config for automatically placing the callback (and handling the disposition). If null, the callback will not be placed automatically but routed to an agent as per normal..</param> /// <param name="Provider">The source provider for the callback..</param> /// <param name="PeerId">The id of the peer communication corresponding to a matching leg for this communication..</param> /// <param name="Wrapup">Call wrap up or disposition data..</param> /// <param name="AfterCallWork">After-call work for the communication..</param> /// <param name="AfterCallWorkRequired">Indicates if after-call work is required for a communication. Only used when the ACW Setting is Agent Requested..</param> /// <param name="CallerId">The phone number displayed to recipients of the phone call. The value should conform to the E164 format..</param> /// <param name="CallerIdName">The name displayed to recipients of the phone call..</param> /// <param name="InitialState">The initial connection state of this communication..</param> public Callback(StateEnum?State = null, string Id = null, List <Segment> Segments = null, DirectionEnum?Direction = null, bool?Held = null, DisconnectTypeEnum?DisconnectType = null, DateTime?StartHoldTime = null, DialerPreview DialerPreview = null, Voicemail Voicemail = null, List <string> CallbackNumbers = null, string CallbackUserName = null, string ScriptId = null, bool?ExternalCampaign = null, bool?SkipEnabled = null, int?TimeoutSeconds = null, DateTime?StartAlertingTime = null, DateTime?ConnectedTime = null, DateTime?DisconnectedTime = null, DateTime?CallbackScheduledTime = null, string AutomatedCallbackConfigId = null, string Provider = null, string PeerId = null, Wrapup Wrapup = null, AfterCallWork AfterCallWork = null, bool?AfterCallWorkRequired = null, string CallerId = null, string CallerIdName = null, InitialStateEnum?InitialState = null) { this.State = State; this.Id = Id; this.Segments = Segments; this.Direction = Direction; this.Held = Held; this.DisconnectType = DisconnectType; this.StartHoldTime = StartHoldTime; this.DialerPreview = DialerPreview; this.Voicemail = Voicemail; this.CallbackNumbers = CallbackNumbers; this.CallbackUserName = CallbackUserName; this.ScriptId = ScriptId; this.ExternalCampaign = ExternalCampaign; this.SkipEnabled = SkipEnabled; this.TimeoutSeconds = TimeoutSeconds; this.StartAlertingTime = StartAlertingTime; this.ConnectedTime = ConnectedTime; this.DisconnectedTime = DisconnectedTime; this.CallbackScheduledTime = CallbackScheduledTime; this.AutomatedCallbackConfigId = AutomatedCallbackConfigId; this.Provider = Provider; this.PeerId = PeerId; this.Wrapup = Wrapup; this.AfterCallWork = AfterCallWork; this.AfterCallWorkRequired = AfterCallWorkRequired; this.CallerId = CallerId; this.CallerIdName = CallerIdName; this.InitialState = InitialState; }