/// <summary> /// Initializes a new instance of the <see cref="CallBasic" /> 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="Direction">The direction of the call.</param> /// <param name="Recording">True if this call is being recorded..</param> /// <param name="RecordingState">State of recording on this call..</param> /// <param name="Muted">True if this call is muted so that remote participants can't hear any audio from this end..</param> /// <param name="Confined">True if this call is held and the person on this side hears hold music..</param> /// <param name="Held">True if this call is held and the person on this side hears silence..</param> /// <param name="RecordingId">A globally unique identifier for the recording associated with this call..</param> /// <param name="Segments">The time line of the participant's call, divided into activity segments..</param> /// <param name="ErrorInfo">ErrorInfo.</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 call was placed on hold in the cloud clock if the call 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="DocumentId">If call is an outbound fax of a document from content management, then this is the id in content management..</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="DisconnectReasons">List of reasons that this call was disconnected. This will be set once the call disconnects..</param> /// <param name="FaxStatus">Extra information on fax transmission..</param> /// <param name="Provider">The source provider for the call..</param> /// <param name="ScriptId">The UUID of the script to use..</param> /// <param name="PeerId">The id of the peer communication corresponding to a matching leg for this communication..</param> /// <param name="UuiData">User to User Information (UUI) data managed by SIP session application..</param> /// <param name="Self">Address and name data for a call endpoint..</param> /// <param name="Other">Address and name data for a call endpoint..</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="AgentAssistantId">UUID of virtual agent assistant that provide suggestions to the agent participant during the conversation..</param> /// <param name="InitialState">The initial connection state of this communication..</param> public CallBasic(StateEnum?State = null, string Id = null, DirectionEnum?Direction = null, bool?Recording = null, RecordingStateEnum?RecordingState = null, bool?Muted = null, bool?Confined = null, bool?Held = null, string RecordingId = null, List <Segment> Segments = null, ErrorInfo ErrorInfo = null, DisconnectTypeEnum?DisconnectType = null, DateTime?StartHoldTime = null, string DocumentId = null, DateTime?StartAlertingTime = null, DateTime?ConnectedTime = null, DateTime?DisconnectedTime = null, List <DisconnectReason> DisconnectReasons = null, FaxStatus FaxStatus = null, string Provider = null, string ScriptId = null, string PeerId = null, string UuiData = null, Address Self = null, Address Other = null, Wrapup Wrapup = null, AfterCallWork AfterCallWork = null, bool?AfterCallWorkRequired = null, string AgentAssistantId = null, InitialStateEnum?InitialState = null) { this.State = State; this.Id = Id; this.Direction = Direction; this.Recording = Recording; this.RecordingState = RecordingState; this.Muted = Muted; this.Confined = Confined; this.Held = Held; this.RecordingId = RecordingId; this.Segments = Segments; this.ErrorInfo = ErrorInfo; this.DisconnectType = DisconnectType; this.StartHoldTime = StartHoldTime; this.DocumentId = DocumentId; this.StartAlertingTime = StartAlertingTime; this.ConnectedTime = ConnectedTime; this.DisconnectedTime = DisconnectedTime; this.DisconnectReasons = DisconnectReasons; this.FaxStatus = FaxStatus; this.Provider = Provider; this.ScriptId = ScriptId; this.PeerId = PeerId; this.UuiData = UuiData; this.Self = Self; this.Other = Other; this.Wrapup = Wrapup; this.AfterCallWork = AfterCallWork; this.AfterCallWorkRequired = AfterCallWorkRequired; this.AgentAssistantId = AgentAssistantId; this.InitialState = InitialState; }
/// <summary> /// Initializes a new instance of the <see cref="Call" /> 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="Direction">The direction of the call.</param> /// <param name="Recording">True if this call is being recorded..</param> /// <param name="RecordingState">State of recording on this call..</param> /// <param name="Muted">True if this call is muted so that remote participants can't hear any audio from this end..</param> /// <param name="Confined">True if this call is held and the person on this side hears hold music..</param> /// <param name="Held">True if this call is held and the person on this side hears silence..</param> /// <param name="RecordingId">A globally unique identifier for the recording associated with this call..</param> /// <param name="Segments">The time line of the participant's call, divided into activity segments..</param> /// <param name="ErrorInfo">ErrorInfo.</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 call was placed on hold in the cloud clock if the call is currently on hold. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param> /// <param name="DocumentId">If call is an outbound fax of a document from content management, then this is the id in content management..</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="DisconnectReasons">List of reasons that this call was disconnected. This will be set once the call disconnects..</param> /// <param name="FaxStatus">Extra information on fax transmission..</param> /// <param name="Provider">The source provider for the call..</param> /// <param name="ScriptId">The UUID of the script to use..</param> /// <param name="PeerId">The id of the peer communication corresponding to a matching leg for this communication..</param> /// <param name="UuiData">User to User Information (UUI) data managed by SIP session application..</param> /// <param name="Self">Address and name data for a call endpoint..</param> /// <param name="Other">Address and name data for a call endpoint..</param> public Call(StateEnum?State = null, string Id = null, DirectionEnum?Direction = null, bool?Recording = null, RecordingStateEnum?RecordingState = null, bool?Muted = null, bool?Confined = null, bool?Held = null, string RecordingId = null, List <Segment> Segments = null, ErrorBody ErrorInfo = null, DisconnectTypeEnum?DisconnectType = null, DateTime?StartHoldTime = null, string DocumentId = null, DateTime?ConnectedTime = null, DateTime?DisconnectedTime = null, List <DisconnectReason> DisconnectReasons = null, FaxStatus FaxStatus = null, string Provider = null, string ScriptId = null, string PeerId = null, string UuiData = null, Address Self = null, Address Other = null) { this.State = State; this.Id = Id; this.Direction = Direction; this.Recording = Recording; this.RecordingState = RecordingState; this.Muted = Muted; this.Confined = Confined; this.Held = Held; this.RecordingId = RecordingId; this.Segments = Segments; this.ErrorInfo = ErrorInfo; this.DisconnectType = DisconnectType; this.StartHoldTime = StartHoldTime; this.DocumentId = DocumentId; this.ConnectedTime = ConnectedTime; this.DisconnectedTime = DisconnectedTime; this.DisconnectReasons = DisconnectReasons; this.FaxStatus = FaxStatus; this.Provider = Provider; this.ScriptId = ScriptId; this.PeerId = PeerId; this.UuiData = UuiData; this.Self = Self; this.Other = Other; }