/// <summary>
 /// Initializes a new instance of the <see cref="MediachatinteractionsidputonholdData" /> class.
 /// </summary>
 /// <param name="Queue">The name of the queue where the Workspace API should put the interaction. (required).</param>
 /// <param name="Reason">A collection of key/value pairs..</param>
 /// <param name="Extension">A collection of key/value pairs..</param>
 /// <param name="AddedProperties">A collection of key/value pairs of properties to add to the interaction..</param>
 /// <param name="ChangedProperties">A collection of key/value pairs of properties to change on the interaction..</param>
 /// <param name="DeletedProperties">A collection of key/value pairs of properties to delete from the interaction..</param>
 public MediachatinteractionsidputonholdData(string Queue = default(string), IxnReasonCode Reason = default(IxnReasonCode), List <Kvpair> Extension = default(List <Kvpair>), List <Kvpair> AddedProperties = default(List <Kvpair>), List <Kvpair> ChangedProperties = default(List <Kvpair>), List <Kvpair> DeletedProperties = default(List <Kvpair>))
 {
     // to ensure "Queue" is required (not null)
     if (Queue == null)
     {
         throw new InvalidDataException("Queue is a required property for MediachatinteractionsidputonholdData and cannot be null");
     }
     else
     {
         this.Queue = Queue;
     }
     this.Reason            = Reason;
     this.Extension         = Extension;
     this.AddedProperties   = AddedProperties;
     this.ChangedProperties = ChangedProperties;
     this.DeletedProperties = DeletedProperties;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MediamediatypeinteractionsidpullData" /> class.
 /// </summary>
 /// <param name="OwnerId">Id of the owner of the workbin.</param>
 /// <param name="WorkbinId">Id of the workbin.</param>
 /// <param name="Reason">Reason.</param>
 /// <param name="Extension">A key/value pairs list of additional data..</param>
 public MediamediatypeinteractionsidpullData(string OwnerId = default(string), string WorkbinId = default(string), IxnReasonCode Reason = default(IxnReasonCode), List <Kvpair> Extension = default(List <Kvpair>))
 {
     this.OwnerId   = OwnerId;
     this.WorkbinId = WorkbinId;
     this.Reason    = Reason;
     this.Extension = Extension;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="WorkbinsworkbinIdaddinteractionData" /> class.
 /// </summary>
 /// <param name="OwnerId">Id of the owner of the workbin.</param>
 /// <param name="InteractionId">Id of the interaction (required).</param>
 /// <param name="Reason">Reason.</param>
 /// <param name="Extension">A key/value pairs list of additional data..</param>
 public WorkbinsworkbinIdaddinteractionData(string OwnerId = default(string), string InteractionId = default(string), IxnReasonCode Reason = default(IxnReasonCode), List <Kvpair> Extension = default(List <Kvpair>))
 {
     // to ensure "InteractionId" is required (not null)
     if (InteractionId == null)
     {
         throw new InvalidDataException("InteractionId is a required property for WorkbinsworkbinIdaddinteractionData and cannot be null");
     }
     else
     {
         this.InteractionId = InteractionId;
     }
     this.OwnerId   = OwnerId;
     this.Reason    = Reason;
     this.Extension = Extension;
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MediamediatypelogoutData" /> class.
 /// </summary>
 /// <param name="Reason">A collection of key/value pairs..</param>
 /// <param name="Extension">A collection of key/value pairs..</param>
 public MediamediatypelogoutData(IxnReasonCode Reason = default(IxnReasonCode), List <Kvpair> Extension = default(List <Kvpair>))
 {
     this.Reason    = Reason;
     this.Extension = Extension;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MedianotreadyData" /> class.
 /// </summary>
 /// <param name="ReasonCode">ReasonCode.</param>
 /// <param name="Reason">A collection of key/value pairs..</param>
 /// <param name="Extension">A collection of key/value pairs..</param>
 public MedianotreadyData(string ReasonCode = default(string), IxnReasonCode Reason = default(IxnReasonCode), List <Kvpair> Extension = default(List <Kvpair>))
 {
     this.ReasonCode = ReasonCode;
     this.Reason     = Reason;
     this.Extension  = Extension;
 }