Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiDialplanQueue" /> class.
 /// </summary>
 /// <param name="applicationName">applicationName (required).</param>
 /// <param name="callID">callID (required).</param>
 /// <param name="commands">commands (required).</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="insertAt">insertAt.</param>
 public KapiDialplanQueue(ApplicationNameEnum applicationName = default(ApplicationNameEnum), string callID = default(string), List <string> commands = default(List <string>), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), InsertAtEnum?insertAt = default(InsertAtEnum?))
 {
     // to ensure "applicationName" is required (not null)
     if (applicationName == null)
     {
         throw new InvalidDataException("applicationName is a required property for KapiDialplanQueue and cannot be null");
     }
     else
     {
         this.ApplicationName = applicationName;
     }
     // to ensure "callID" is required (not null)
     if (callID == null)
     {
         throw new InvalidDataException("callID is a required property for KapiDialplanQueue and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     // to ensure "commands" is required (not null)
     if (commands == null)
     {
         throw new InvalidDataException("commands is a required property for KapiDialplanQueue and cannot be null");
     }
     else
     {
         this.Commands = commands;
     }
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
     this.InsertAt      = insertAt;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiDialplanMediaMacro" /> class.
 /// </summary>
 /// <param name="applicationName">applicationName (required).</param>
 /// <param name="callID">callID (required).</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="insertAt">insertAt.</param>
 /// <param name="mediaMacros">mediaMacros (required).</param>
 public KapiDialplanMediaMacro(ApplicationNameEnum applicationName = default(ApplicationNameEnum), string callID = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), InsertAtEnum?insertAt = default(InsertAtEnum?), Object mediaMacros = default(Object))
 {
     // to ensure "applicationName" is required (not null)
     if (applicationName == null)
     {
         throw new InvalidDataException("applicationName is a required property for KapiDialplanMediaMacro and cannot be null");
     }
     else
     {
         this.ApplicationName = applicationName;
     }
     // to ensure "callID" is required (not null)
     if (callID == null)
     {
         throw new InvalidDataException("callID is a required property for KapiDialplanMediaMacro and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     // to ensure "mediaMacros" is required (not null)
     if (mediaMacros == null)
     {
         throw new InvalidDataException("mediaMacros is a required property for KapiDialplanMediaMacro and cannot be null");
     }
     else
     {
         this.MediaMacros = mediaMacros;
     }
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
     this.InsertAt      = insertAt;
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiDialplanPark" /> class.
 /// </summary>
 /// <param name="applicationName">applicationName (required).</param>
 /// <param name="callID">callID (required).</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="hangupCause">hangupCause.</param>
 /// <param name="insertAt">insertAt.</param>
 /// <param name="timeout">timeout.</param>
 public KapiDialplanPark(ApplicationNameEnum applicationName = default(ApplicationNameEnum), string callID = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string hangupCause = default(string), InsertAtEnum?insertAt = default(InsertAtEnum?), string timeout = default(string))
 {
     // to ensure "applicationName" is required (not null)
     if (applicationName == null)
     {
         throw new InvalidDataException("applicationName is a required property for KapiDialplanPark and cannot be null");
     }
     else
     {
         this.ApplicationName = applicationName;
     }
     // to ensure "callID" is required (not null)
     if (callID == null)
     {
         throw new InvalidDataException("callID is a required property for KapiDialplanPark and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
     this.HangupCause   = hangupCause;
     this.InsertAt      = insertAt;
     this.Timeout       = timeout;
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiDialplanSoftHold" /> class.
 /// </summary>
 /// <param name="aMOH">aMOH.</param>
 /// <param name="applicationName">applicationName (required).</param>
 /// <param name="bMOH">bMOH.</param>
 /// <param name="callID">callID (required).</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="insertAt">insertAt.</param>
 /// <param name="unholdKey">unholdKey (required).</param>
 public KapiDialplanSoftHold(string aMOH = default(string), ApplicationNameEnum applicationName = default(ApplicationNameEnum), string bMOH = default(string), string callID = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), InsertAtEnum?insertAt = default(InsertAtEnum?), string unholdKey = default(string))
 {
     // to ensure "applicationName" is required (not null)
     if (applicationName == null)
     {
         throw new InvalidDataException("applicationName is a required property for KapiDialplanSoftHold and cannot be null");
     }
     else
     {
         this.ApplicationName = applicationName;
     }
     // to ensure "callID" is required (not null)
     if (callID == null)
     {
         throw new InvalidDataException("callID is a required property for KapiDialplanSoftHold and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     // to ensure "unholdKey" is required (not null)
     if (unholdKey == null)
     {
         throw new InvalidDataException("unholdKey is a required property for KapiDialplanSoftHold and cannot be null");
     }
     else
     {
         this.UnholdKey = unholdKey;
     }
     this.A_MOH         = aMOH;
     this.B_MOH         = bMOH;
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
     this.InsertAt      = insertAt;
 }
Example #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiDialplanHoldControl" /> class.
 /// </summary>
 /// <param name="action">action (required).</param>
 /// <param name="applicationName">applicationName (required).</param>
 /// <param name="callID">callID (required).</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="insertAt">insertAt.</param>
 public KapiDialplanHoldControl(ActionEnum action = default(ActionEnum), ApplicationNameEnum applicationName = default(ApplicationNameEnum), string callID = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), InsertAtEnum?insertAt = default(InsertAtEnum?))
 {
     // to ensure "action" is required (not null)
     if (action == null)
     {
         throw new InvalidDataException("action is a required property for KapiDialplanHoldControl and cannot be null");
     }
     else
     {
         this.Action = action;
     }
     // to ensure "applicationName" is required (not null)
     if (applicationName == null)
     {
         throw new InvalidDataException("applicationName is a required property for KapiDialplanHoldControl and cannot be null");
     }
     else
     {
         this.ApplicationName = applicationName;
     }
     // to ensure "callID" is required (not null)
     if (callID == null)
     {
         throw new InvalidDataException("callID is a required property for KapiDialplanHoldControl and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
     this.InsertAt      = insertAt;
 }
Example #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiDialplanExecuteExtension" /> class.
 /// </summary>
 /// <param name="applicationName">applicationName (required).</param>
 /// <param name="callID">callID (required).</param>
 /// <param name="customChannelVars">customChannelVars.</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="extension">extension (required).</param>
 /// <param name="insertAt">insertAt.</param>
 /// <param name="reset">reset.</param>
 public KapiDialplanExecuteExtension(ApplicationNameEnum applicationName = default(ApplicationNameEnum), string callID = default(string), Object customChannelVars = default(Object), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string extension = default(string), InsertAtEnum?insertAt = default(InsertAtEnum?), string reset = default(string))
 {
     // to ensure "applicationName" is required (not null)
     if (applicationName == null)
     {
         throw new InvalidDataException("applicationName is a required property for KapiDialplanExecuteExtension and cannot be null");
     }
     else
     {
         this.ApplicationName = applicationName;
     }
     // to ensure "callID" is required (not null)
     if (callID == null)
     {
         throw new InvalidDataException("callID is a required property for KapiDialplanExecuteExtension and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     // to ensure "extension" is required (not null)
     if (extension == null)
     {
         throw new InvalidDataException("extension is a required property for KapiDialplanExecuteExtension and cannot be null");
     }
     else
     {
         this.Extension = extension;
     }
     this.CustomChannelVars = customChannelVars;
     this.EventCategory     = eventCategory;
     this.EventName         = eventName;
     this.InsertAt          = insertAt;
     this.Reset             = reset;
 }
Example #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiDialplanSendDtmf" /> class.
 /// </summary>
 /// <param name="applicationName">applicationName (required).</param>
 /// <param name="callID">callID (required).</param>
 /// <param name="dTMFs">dTMFs (required).</param>
 /// <param name="duration">duration.</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="insertAt">insertAt.</param>
 public KapiDialplanSendDtmf(ApplicationNameEnum applicationName = default(ApplicationNameEnum), string callID = default(string), string dTMFs = default(string), string duration = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), InsertAtEnum?insertAt = default(InsertAtEnum?))
 {
     // to ensure "applicationName" is required (not null)
     if (applicationName == null)
     {
         throw new InvalidDataException("applicationName is a required property for KapiDialplanSendDtmf and cannot be null");
     }
     else
     {
         this.ApplicationName = applicationName;
     }
     // to ensure "callID" is required (not null)
     if (callID == null)
     {
         throw new InvalidDataException("callID is a required property for KapiDialplanSendDtmf and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     // to ensure "dTMFs" is required (not null)
     if (dTMFs == null)
     {
         throw new InvalidDataException("dTMFs is a required property for KapiDialplanSendDtmf and cannot be null");
     }
     else
     {
         this.DTMFs = dTMFs;
     }
     this.Duration      = duration;
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
     this.InsertAt      = insertAt;
 }
Example #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiDialplanReceiveFax" /> class.
 /// </summary>
 /// <param name="applicationName">applicationName (required).</param>
 /// <param name="callID">callID (required).</param>
 /// <param name="enableT38Fax">enableT38Fax.</param>
 /// <param name="enableT38FaxRequest">enableT38FaxRequest.</param>
 /// <param name="enableT38Gateway">enableT38Gateway.</param>
 /// <param name="enableT38Passthrough">enableT38Passthrough.</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="faxLocalFilename">faxLocalFilename.</param>
 /// <param name="insertAt">insertAt.</param>
 public KapiDialplanReceiveFax(ApplicationNameEnum applicationName = default(ApplicationNameEnum), string callID = default(string), string enableT38Fax = default(string), string enableT38FaxRequest = default(string), string enableT38Gateway = default(string), string enableT38Passthrough = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string faxLocalFilename = default(string), InsertAtEnum?insertAt = default(InsertAtEnum?))
 {
     // to ensure "applicationName" is required (not null)
     if (applicationName == null)
     {
         throw new InvalidDataException("applicationName is a required property for KapiDialplanReceiveFax and cannot be null");
     }
     else
     {
         this.ApplicationName = applicationName;
     }
     // to ensure "callID" is required (not null)
     if (callID == null)
     {
         throw new InvalidDataException("callID is a required property for KapiDialplanReceiveFax and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     this.EnableT38Fax         = enableT38Fax;
     this.EnableT38FaxRequest  = enableT38FaxRequest;
     this.EnableT38Gateway     = enableT38Gateway;
     this.EnableT38Passthrough = enableT38Passthrough;
     this.EventCategory        = eventCategory;
     this.EventName            = eventName;
     this.FaxLocalFilename     = faxLocalFilename;
     this.InsertAt             = insertAt;
 }
Example #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiDialplanFetch" /> class.
 /// </summary>
 /// <param name="applicationName">applicationName (required).</param>
 /// <param name="callID">callID (required).</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="fromOtherLeg">fromOtherLeg.</param>
 /// <param name="insertAt">insertAt.</param>
 public KapiDialplanFetch(ApplicationNameEnum applicationName = default(ApplicationNameEnum), string callID = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), bool?fromOtherLeg = default(bool?), InsertAtEnum?insertAt = default(InsertAtEnum?))
 {
     // to ensure "applicationName" is required (not null)
     if (applicationName == null)
     {
         throw new InvalidDataException("applicationName is a required property for KapiDialplanFetch and cannot be null");
     }
     else
     {
         this.ApplicationName = applicationName;
     }
     // to ensure "callID" is required (not null)
     if (callID == null)
     {
         throw new InvalidDataException("callID is a required property for KapiDialplanFetch and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
     this.FromOtherLeg  = fromOtherLeg;
     this.InsertAt      = insertAt;
 }
Example #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiDialplanRedirect" /> class.
 /// </summary>
 /// <param name="applicationName">applicationName (required).</param>
 /// <param name="callID">callID (required).</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="insertAt">insertAt.</param>
 /// <param name="redirectContact">redirectContact (required).</param>
 /// <param name="redirectNode">redirectNode.</param>
 /// <param name="redirectServer">redirectServer.</param>
 public KapiDialplanRedirect(ApplicationNameEnum applicationName = default(ApplicationNameEnum), string callID = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), InsertAtEnum?insertAt = default(InsertAtEnum?), string redirectContact = default(string), string redirectNode = default(string), string redirectServer = default(string))
 {
     // to ensure "applicationName" is required (not null)
     if (applicationName == null)
     {
         throw new InvalidDataException("applicationName is a required property for KapiDialplanRedirect and cannot be null");
     }
     else
     {
         this.ApplicationName = applicationName;
     }
     // to ensure "callID" is required (not null)
     if (callID == null)
     {
         throw new InvalidDataException("callID is a required property for KapiDialplanRedirect and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     // to ensure "redirectContact" is required (not null)
     if (redirectContact == null)
     {
         throw new InvalidDataException("redirectContact is a required property for KapiDialplanRedirect and cannot be null");
     }
     else
     {
         this.RedirectContact = redirectContact;
     }
     this.EventCategory  = eventCategory;
     this.EventName      = eventName;
     this.InsertAt       = insertAt;
     this.RedirectNode   = redirectNode;
     this.RedirectServer = redirectServer;
 }
Example #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiDialplanNoop" /> class.
 /// </summary>
 /// <param name="applicationName">applicationName (required).</param>
 /// <param name="bLegEvents">bLegEvents.</param>
 /// <param name="callID">callID (required).</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="filterApplications">filterApplications.</param>
 /// <param name="insertAt">insertAt.</param>
 public KapiDialplanNoop(ApplicationNameEnum applicationName = default(ApplicationNameEnum), List <BLegEventsEnum> bLegEvents = default(List <BLegEventsEnum>), string callID = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string filterApplications = default(string), InsertAtEnum?insertAt = default(InsertAtEnum?))
 {
     // to ensure "applicationName" is required (not null)
     if (applicationName == null)
     {
         throw new InvalidDataException("applicationName is a required property for KapiDialplanNoop and cannot be null");
     }
     else
     {
         this.ApplicationName = applicationName;
     }
     // to ensure "callID" is required (not null)
     if (callID == null)
     {
         throw new InvalidDataException("callID is a required property for KapiDialplanNoop and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     this.BLegEvents         = bLegEvents;
     this.EventCategory      = eventCategory;
     this.EventName          = eventName;
     this.FilterApplications = filterApplications;
     this.InsertAt           = insertAt;
 }
Example #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiDialplanSet" /> class.
 /// </summary>
 /// <param name="applicationName">applicationName (required).</param>
 /// <param name="callID">callID (required).</param>
 /// <param name="customApplicationVars">customApplicationVars.</param>
 /// <param name="customCallVars">customCallVars (required).</param>
 /// <param name="customChannelVars">customChannelVars (required).</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="exportAll">exportAll.</param>
 /// <param name="insertAt">insertAt.</param>
 public KapiDialplanSet(ApplicationNameEnum applicationName = default(ApplicationNameEnum), string callID = default(string), Object customApplicationVars = default(Object), Object customCallVars = default(Object), Object customChannelVars = default(Object), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), bool?exportAll = default(bool?), InsertAtEnum?insertAt = default(InsertAtEnum?))
 {
     // to ensure "applicationName" is required (not null)
     if (applicationName == null)
     {
         throw new InvalidDataException("applicationName is a required property for KapiDialplanSet and cannot be null");
     }
     else
     {
         this.ApplicationName = applicationName;
     }
     // to ensure "callID" is required (not null)
     if (callID == null)
     {
         throw new InvalidDataException("callID is a required property for KapiDialplanSet and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     // to ensure "customCallVars" is required (not null)
     if (customCallVars == null)
     {
         throw new InvalidDataException("customCallVars is a required property for KapiDialplanSet and cannot be null");
     }
     else
     {
         this.CustomCallVars = customCallVars;
     }
     // to ensure "customChannelVars" is required (not null)
     if (customChannelVars == null)
     {
         throw new InvalidDataException("customChannelVars is a required property for KapiDialplanSet and cannot be null");
     }
     else
     {
         this.CustomChannelVars = customChannelVars;
     }
     this.CustomApplicationVars = customApplicationVars;
     this.EventCategory         = eventCategory;
     this.EventName             = eventName;
     this.ExportAll             = exportAll;
     this.InsertAt = insertAt;
 }
Example #13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiDialplanConnectLeg" /> class.
 /// </summary>
 /// <param name="applicationName">applicationName (required).</param>
 /// <param name="bLegEvents">bLegEvents.</param>
 /// <param name="callID">callID (required).</param>
 /// <param name="continueOnCancel">continueOnCancel.</param>
 /// <param name="continueOnFail">continueOnFail.</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="hangupAfterPickup">hangupAfterPickup.</param>
 /// <param name="insertAt">insertAt.</param>
 /// <param name="moveChannelIfNecessary">moveChannelIfNecessary.</param>
 /// <param name="otherLeg">otherLeg.</param>
 /// <param name="parkAfterPickup">parkAfterPickup.</param>
 /// <param name="publishUsurp">publishUsurp.</param>
 /// <param name="targetCallID">targetCallID (required).</param>
 /// <param name="unansweredOnly">unansweredOnly.</param>
 /// <param name="unbridgedOnly">unbridgedOnly.</param>
 public KapiDialplanConnectLeg(ApplicationNameEnum applicationName = default(ApplicationNameEnum), List <BLegEventsEnum> bLegEvents = default(List <BLegEventsEnum>), string callID = default(string), string continueOnCancel = default(string), string continueOnFail = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), bool?hangupAfterPickup = default(bool?), InsertAtEnum?insertAt = default(InsertAtEnum?), bool?moveChannelIfNecessary = default(bool?), string otherLeg = default(string), bool?parkAfterPickup = default(bool?), bool?publishUsurp = default(bool?), string targetCallID = default(string), string unansweredOnly = default(string), string unbridgedOnly = default(string))
 {
     // to ensure "applicationName" is required (not null)
     if (applicationName == null)
     {
         throw new InvalidDataException("applicationName is a required property for KapiDialplanConnectLeg and cannot be null");
     }
     else
     {
         this.ApplicationName = applicationName;
     }
     // to ensure "callID" is required (not null)
     if (callID == null)
     {
         throw new InvalidDataException("callID is a required property for KapiDialplanConnectLeg and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     // to ensure "targetCallID" is required (not null)
     if (targetCallID == null)
     {
         throw new InvalidDataException("targetCallID is a required property for KapiDialplanConnectLeg and cannot be null");
     }
     else
     {
         this.TargetCallID = targetCallID;
     }
     this.BLegEvents             = bLegEvents;
     this.ContinueOnCancel       = continueOnCancel;
     this.ContinueOnFail         = continueOnFail;
     this.EventCategory          = eventCategory;
     this.EventName              = eventName;
     this.HangupAfterPickup      = hangupAfterPickup;
     this.InsertAt               = insertAt;
     this.MoveChannelIfNecessary = moveChannelIfNecessary;
     this.OtherLeg               = otherLeg;
     this.ParkAfterPickup        = parkAfterPickup;
     this.PublishUsurp           = publishUsurp;
     this.UnansweredOnly         = unansweredOnly;
     this.UnbridgedOnly          = unbridgedOnly;
 }
Example #14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiDialplanPage" /> class.
 /// </summary>
 /// <param name="applicationName">applicationName (required).</param>
 /// <param name="callID">callID (required).</param>
 /// <param name="calleeIDName">calleeIDName.</param>
 /// <param name="calleeIDNumber">calleeIDNumber.</param>
 /// <param name="callerIDName">callerIDName.</param>
 /// <param name="callerIDNumber">callerIDNumber.</param>
 /// <param name="customChannelVars">customChannelVars.</param>
 /// <param name="customSIPHeaders">customSIPHeaders.</param>
 /// <param name="endpoints">endpoints (required).</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="insertAt">insertAt.</param>
 /// <param name="pageOptions">pageOptions.</param>
 /// <param name="timeout">timeout.</param>
 public KapiDialplanPage(ApplicationNameEnum applicationName = default(ApplicationNameEnum), string callID = default(string), string calleeIDName = default(string), string calleeIDNumber = default(string), string callerIDName = default(string), string callerIDNumber = default(string), Object customChannelVars = default(Object), Object customSIPHeaders = default(Object), List <KapiDialplanBridgeEndpoint> endpoints = default(List <KapiDialplanBridgeEndpoint>), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), InsertAtEnum?insertAt = default(InsertAtEnum?), string pageOptions = default(string), string timeout = default(string))
 {
     // to ensure "applicationName" is required (not null)
     if (applicationName == null)
     {
         throw new InvalidDataException("applicationName is a required property for KapiDialplanPage and cannot be null");
     }
     else
     {
         this.ApplicationName = applicationName;
     }
     // to ensure "callID" is required (not null)
     if (callID == null)
     {
         throw new InvalidDataException("callID is a required property for KapiDialplanPage and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     // to ensure "endpoints" is required (not null)
     if (endpoints == null)
     {
         throw new InvalidDataException("endpoints is a required property for KapiDialplanPage and cannot be null");
     }
     else
     {
         this.Endpoints = endpoints;
     }
     this.CalleeIDName      = calleeIDName;
     this.CalleeIDNumber    = calleeIDNumber;
     this.CallerIDName      = callerIDName;
     this.CallerIDNumber    = callerIDNumber;
     this.CustomChannelVars = customChannelVars;
     this.CustomSIPHeaders  = customSIPHeaders;
     this.EventCategory     = eventCategory;
     this.EventName         = eventName;
     this.InsertAt          = insertAt;
     this.PageOptions       = pageOptions;
     this.Timeout           = timeout;
 }
Example #15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiDialplanConference" /> class.
 /// </summary>
 /// <param name="applicationName">applicationName (required).</param>
 /// <param name="callID">callID (required).</param>
 /// <param name="conferenceID">conferenceID (required).</param>
 /// <param name="deaf">deaf.</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="insertAt">insertAt.</param>
 /// <param name="memberNospeak">memberNospeak.</param>
 /// <param name="moderator">moderator.</param>
 /// <param name="mute">mute.</param>
 /// <param name="nospeakCheck">nospeakCheck.</param>
 /// <param name="profile">profile.</param>
 /// <param name="reinvite">reinvite.</param>
 public KapiDialplanConference(ApplicationNameEnum applicationName = default(ApplicationNameEnum), string callID = default(string), string conferenceID = default(string), bool?deaf = default(bool?), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), InsertAtEnum?insertAt = default(InsertAtEnum?), string memberNospeak = default(string), bool?moderator = default(bool?), bool?mute = default(bool?), string nospeakCheck = default(string), string profile = default(string), bool?reinvite = default(bool?))
 {
     // to ensure "applicationName" is required (not null)
     if (applicationName == null)
     {
         throw new InvalidDataException("applicationName is a required property for KapiDialplanConference and cannot be null");
     }
     else
     {
         this.ApplicationName = applicationName;
     }
     // to ensure "callID" is required (not null)
     if (callID == null)
     {
         throw new InvalidDataException("callID is a required property for KapiDialplanConference and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     // to ensure "conferenceID" is required (not null)
     if (conferenceID == null)
     {
         throw new InvalidDataException("conferenceID is a required property for KapiDialplanConference and cannot be null");
     }
     else
     {
         this.ConferenceID = conferenceID;
     }
     this.Deaf          = deaf;
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
     this.InsertAt      = insertAt;
     this.MemberNospeak = memberNospeak;
     this.Moderator     = moderator;
     this.Mute          = mute;
     this.NospeakCheck  = nospeakCheck;
     this.Profile       = profile;
     this.Reinvite      = reinvite;
 }
Example #16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiDialplanEavesdrop" /> class.
 /// </summary>
 /// <param name="applicationName">applicationName (required).</param>
 /// <param name="callID">callID (required).</param>
 /// <param name="continueOnCancel">continueOnCancel.</param>
 /// <param name="continueOnFail">continueOnFail.</param>
 /// <param name="enableDTMF">enableDTMF.</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="insertAt">insertAt.</param>
 /// <param name="moveChannelIfNecessary">moveChannelIfNecessary.</param>
 /// <param name="otherLeg">otherLeg.</param>
 /// <param name="targetCallID">targetCallID (required).</param>
 public KapiDialplanEavesdrop(ApplicationNameEnum applicationName = default(ApplicationNameEnum), string callID = default(string), string continueOnCancel = default(string), string continueOnFail = default(string), string enableDTMF = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), InsertAtEnum?insertAt = default(InsertAtEnum?), bool?moveChannelIfNecessary = default(bool?), string otherLeg = default(string), string targetCallID = default(string))
 {
     // to ensure "applicationName" is required (not null)
     if (applicationName == null)
     {
         throw new InvalidDataException("applicationName is a required property for KapiDialplanEavesdrop and cannot be null");
     }
     else
     {
         this.ApplicationName = applicationName;
     }
     // to ensure "callID" is required (not null)
     if (callID == null)
     {
         throw new InvalidDataException("callID is a required property for KapiDialplanEavesdrop and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     // to ensure "targetCallID" is required (not null)
     if (targetCallID == null)
     {
         throw new InvalidDataException("targetCallID is a required property for KapiDialplanEavesdrop and cannot be null");
     }
     else
     {
         this.TargetCallID = targetCallID;
     }
     this.ContinueOnCancel       = continueOnCancel;
     this.ContinueOnFail         = continueOnFail;
     this.EnableDTMF             = enableDTMF;
     this.EventCategory          = eventCategory;
     this.EventName              = eventName;
     this.InsertAt               = insertAt;
     this.MoveChannelIfNecessary = moveChannelIfNecessary;
     this.OtherLeg               = otherLeg;
 }
Example #17
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiDialplanRecordCall" /> class.
 /// </summary>
 /// <param name="additionalHeaders">additionalHeaders.</param>
 /// <param name="applicationName">applicationName (required).</param>
 /// <param name="callID">callID (required).</param>
 /// <param name="channelsAsStereo">channelsAsStereo.</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="followTransfer">followTransfer.</param>
 /// <param name="insertAt">insertAt.</param>
 /// <param name="mediaName">mediaName.</param>
 /// <param name="mediaRecorder">mediaRecorder.</param>
 /// <param name="mediaRecordingEndpointID">mediaRecordingEndpointID.</param>
 /// <param name="mediaRecordingID">mediaRecordingID.</param>
 /// <param name="mediaRecordingOrigin">mediaRecordingOrigin.</param>
 /// <param name="mediaTransferDestination">mediaTransferDestination.</param>
 /// <param name="mediaTransferMethod">mediaTransferMethod.</param>
 /// <param name="recordAction">recordAction (required).</param>
 /// <param name="recordMinSec">recordMinSec.</param>
 /// <param name="recordSampleRate">recordSampleRate.</param>
 /// <param name="recordingVariables">recordingVariables.</param>
 /// <param name="timeLimit">timeLimit.</param>
 public KapiDialplanRecordCall(List <Object> additionalHeaders = default(List <Object>), ApplicationNameEnum applicationName = default(ApplicationNameEnum), string callID = default(string), string channelsAsStereo = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string followTransfer = default(string), InsertAtEnum?insertAt = default(InsertAtEnum?), string mediaName = default(string), string mediaRecorder = default(string), string mediaRecordingEndpointID = default(string), string mediaRecordingID = default(string), string mediaRecordingOrigin = default(string), string mediaTransferDestination = default(string), string mediaTransferMethod = default(string), RecordActionEnum recordAction = default(RecordActionEnum), string recordMinSec = default(string), int?recordSampleRate = default(int?), string recordingVariables = default(string), int?timeLimit = default(int?))
 {
     // to ensure "applicationName" is required (not null)
     if (applicationName == null)
     {
         throw new InvalidDataException("applicationName is a required property for KapiDialplanRecordCall and cannot be null");
     }
     else
     {
         this.ApplicationName = applicationName;
     }
     // to ensure "callID" is required (not null)
     if (callID == null)
     {
         throw new InvalidDataException("callID is a required property for KapiDialplanRecordCall and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     // to ensure "recordAction" is required (not null)
     if (recordAction == null)
     {
         throw new InvalidDataException("recordAction is a required property for KapiDialplanRecordCall and cannot be null");
     }
     else
     {
         this.RecordAction = recordAction;
     }
     this.AdditionalHeaders        = additionalHeaders;
     this.ChannelsAsStereo         = channelsAsStereo;
     this.EventCategory            = eventCategory;
     this.EventName                = eventName;
     this.FollowTransfer           = followTransfer;
     this.InsertAt                 = insertAt;
     this.MediaName                = mediaName;
     this.MediaRecorder            = mediaRecorder;
     this.MediaRecordingEndpointID = mediaRecordingEndpointID;
     this.MediaRecordingID         = mediaRecordingID;
     this.MediaRecordingOrigin     = mediaRecordingOrigin;
     this.MediaTransferDestination = mediaTransferDestination;
     this.MediaTransferMethod      = mediaTransferMethod;
     this.RecordMinSec             = recordMinSec;
     this.RecordSampleRate         = recordSampleRate;
     this.RecordingVariables       = recordingVariables;
     this.TimeLimit                = timeLimit;
 }
Example #18
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiDialplanPlayAndCollectDigits" /> class.
 /// </summary>
 /// <param name="applicationName">applicationName (required).</param>
 /// <param name="callID">callID (required).</param>
 /// <param name="digitsRegex">digitsRegex (required).</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="failedMediaName">failedMediaName.</param>
 /// <param name="insertAt">insertAt.</param>
 /// <param name="maximumDigits">maximumDigits (required).</param>
 /// <param name="mediaName">mediaName (required).</param>
 /// <param name="mediaTries">mediaTries (required).</param>
 /// <param name="minimumDigits">minimumDigits (required).</param>
 /// <param name="terminators">terminators (required).</param>
 /// <param name="timeout">timeout (required).</param>
 public KapiDialplanPlayAndCollectDigits(ApplicationNameEnum applicationName = default(ApplicationNameEnum), string callID = default(string), string digitsRegex = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string failedMediaName = default(string), InsertAtEnum?insertAt = default(InsertAtEnum?), string maximumDigits = default(string), string mediaName = default(string), string mediaTries = default(string), string minimumDigits = default(string), List <TerminatorsEnum> terminators = default(List <TerminatorsEnum>), string timeout = default(string))
 {
     // to ensure "applicationName" is required (not null)
     if (applicationName == null)
     {
         throw new InvalidDataException("applicationName is a required property for KapiDialplanPlayAndCollectDigits and cannot be null");
     }
     else
     {
         this.ApplicationName = applicationName;
     }
     // to ensure "callID" is required (not null)
     if (callID == null)
     {
         throw new InvalidDataException("callID is a required property for KapiDialplanPlayAndCollectDigits and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     // to ensure "digitsRegex" is required (not null)
     if (digitsRegex == null)
     {
         throw new InvalidDataException("digitsRegex is a required property for KapiDialplanPlayAndCollectDigits and cannot be null");
     }
     else
     {
         this.DigitsRegex = digitsRegex;
     }
     // to ensure "maximumDigits" is required (not null)
     if (maximumDigits == null)
     {
         throw new InvalidDataException("maximumDigits is a required property for KapiDialplanPlayAndCollectDigits and cannot be null");
     }
     else
     {
         this.MaximumDigits = maximumDigits;
     }
     // to ensure "mediaName" is required (not null)
     if (mediaName == null)
     {
         throw new InvalidDataException("mediaName is a required property for KapiDialplanPlayAndCollectDigits and cannot be null");
     }
     else
     {
         this.MediaName = mediaName;
     }
     // to ensure "mediaTries" is required (not null)
     if (mediaTries == null)
     {
         throw new InvalidDataException("mediaTries is a required property for KapiDialplanPlayAndCollectDigits and cannot be null");
     }
     else
     {
         this.MediaTries = mediaTries;
     }
     // to ensure "minimumDigits" is required (not null)
     if (minimumDigits == null)
     {
         throw new InvalidDataException("minimumDigits is a required property for KapiDialplanPlayAndCollectDigits and cannot be null");
     }
     else
     {
         this.MinimumDigits = minimumDigits;
     }
     // to ensure "terminators" is required (not null)
     if (terminators == null)
     {
         throw new InvalidDataException("terminators is a required property for KapiDialplanPlayAndCollectDigits and cannot be null");
     }
     else
     {
         this.Terminators = terminators;
     }
     // to ensure "timeout" is required (not null)
     if (timeout == null)
     {
         throw new InvalidDataException("timeout is a required property for KapiDialplanPlayAndCollectDigits and cannot be null");
     }
     else
     {
         this.Timeout = timeout;
     }
     this.EventCategory   = eventCategory;
     this.EventName       = eventName;
     this.FailedMediaName = failedMediaName;
     this.InsertAt        = insertAt;
 }
Example #19
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiDialplanStore" /> class.
 /// </summary>
 /// <param name="additionalHeaders">additionalHeaders.</param>
 /// <param name="applicationName">applicationName (required).</param>
 /// <param name="callID">callID (required).</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="insertAt">insertAt.</param>
 /// <param name="mediaName">mediaName (required).</param>
 /// <param name="mediaTransferDestination">mediaTransferDestination (required).</param>
 /// <param name="mediaTransferMethod">mediaTransferMethod (required).</param>
 /// <param name="suppressErrorReport">suppressErrorReport.</param>
 public KapiDialplanStore(List <string> additionalHeaders = default(List <string>), ApplicationNameEnum applicationName = default(ApplicationNameEnum), string callID = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), InsertAtEnum?insertAt = default(InsertAtEnum?), string mediaName = default(string), string mediaTransferDestination = default(string), MediaTransferMethodEnum mediaTransferMethod = default(MediaTransferMethodEnum), bool?suppressErrorReport = default(bool?))
 {
     // to ensure "applicationName" is required (not null)
     if (applicationName == null)
     {
         throw new InvalidDataException("applicationName is a required property for KapiDialplanStore and cannot be null");
     }
     else
     {
         this.ApplicationName = applicationName;
     }
     // to ensure "callID" is required (not null)
     if (callID == null)
     {
         throw new InvalidDataException("callID is a required property for KapiDialplanStore and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     // to ensure "mediaName" is required (not null)
     if (mediaName == null)
     {
         throw new InvalidDataException("mediaName is a required property for KapiDialplanStore and cannot be null");
     }
     else
     {
         this.MediaName = mediaName;
     }
     // to ensure "mediaTransferDestination" is required (not null)
     if (mediaTransferDestination == null)
     {
         throw new InvalidDataException("mediaTransferDestination is a required property for KapiDialplanStore and cannot be null");
     }
     else
     {
         this.MediaTransferDestination = mediaTransferDestination;
     }
     // to ensure "mediaTransferMethod" is required (not null)
     if (mediaTransferMethod == null)
     {
         throw new InvalidDataException("mediaTransferMethod is a required property for KapiDialplanStore and cannot be null");
     }
     else
     {
         this.MediaTransferMethod = mediaTransferMethod;
     }
     this.AdditionalHeaders   = additionalHeaders;
     this.EventCategory       = eventCategory;
     this.EventName           = eventName;
     this.InsertAt            = insertAt;
     this.SuppressErrorReport = suppressErrorReport;
 }
Example #20
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiDialplanTransfer" /> class.
 /// </summary>
 /// <param name="applicationName">applicationName (required).</param>
 /// <param name="attendedTransferKeys">attendedTransferKeys.</param>
 /// <param name="callID">callID (required).</param>
 /// <param name="callerIDName">callerIDName.</param>
 /// <param name="callerIDNumber">callerIDNumber.</param>
 /// <param name="customChannelVars">customChannelVars.</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="insertAt">insertAt.</param>
 /// <param name="transferContext">transferContext.</param>
 /// <param name="transferLeg">transferLeg.</param>
 /// <param name="transferTo">transferTo (required).</param>
 /// <param name="transferType">transferType (required).</param>
 public KapiDialplanTransfer(ApplicationNameEnum applicationName = default(ApplicationNameEnum), string attendedTransferKeys = default(string), string callID = default(string), string callerIDName = default(string), string callerIDNumber = default(string), Object customChannelVars = default(Object), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), InsertAtEnum?insertAt = default(InsertAtEnum?), string transferContext = default(string), TransferLegEnum?transferLeg = default(TransferLegEnum?), string transferTo = default(string), TransferTypeEnum transferType = default(TransferTypeEnum))
 {
     // to ensure "applicationName" is required (not null)
     if (applicationName == null)
     {
         throw new InvalidDataException("applicationName is a required property for KapiDialplanTransfer and cannot be null");
     }
     else
     {
         this.ApplicationName = applicationName;
     }
     // to ensure "callID" is required (not null)
     if (callID == null)
     {
         throw new InvalidDataException("callID is a required property for KapiDialplanTransfer and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     // to ensure "transferTo" is required (not null)
     if (transferTo == null)
     {
         throw new InvalidDataException("transferTo is a required property for KapiDialplanTransfer and cannot be null");
     }
     else
     {
         this.TransferTo = transferTo;
     }
     // to ensure "transferType" is required (not null)
     if (transferType == null)
     {
         throw new InvalidDataException("transferType is a required property for KapiDialplanTransfer and cannot be null");
     }
     else
     {
         this.TransferType = transferType;
     }
     this.AttendedTransferKeys = attendedTransferKeys;
     this.CallerIDName         = callerIDName;
     this.CallerIDNumber       = callerIDNumber;
     this.CustomChannelVars    = customChannelVars;
     this.EventCategory        = eventCategory;
     this.EventName            = eventName;
     this.InsertAt             = insertAt;
     this.TransferContext      = transferContext;
     this.TransferLeg          = transferLeg;
 }
Example #21
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiDialplanToneDetect" /> class.
 /// </summary>
 /// <param name="applicationName">applicationName (required).</param>
 /// <param name="callID">callID (required).</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="frequencies">frequencies (required).</param>
 /// <param name="hitsNeeded">hitsNeeded.</param>
 /// <param name="insertAt">insertAt.</param>
 /// <param name="onSuccess">onSuccess.</param>
 /// <param name="sniffDirection">sniffDirection.</param>
 /// <param name="timeout">timeout.</param>
 /// <param name="toneDetectName">toneDetectName (required).</param>
 public KapiDialplanToneDetect(ApplicationNameEnum applicationName = default(ApplicationNameEnum), string callID = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string frequencies = default(string), string hitsNeeded = default(string), InsertAtEnum?insertAt = default(InsertAtEnum?), List <string> onSuccess = default(List <string>), SniffDirectionEnum?sniffDirection = default(SniffDirectionEnum?), int?timeout = default(int?), string toneDetectName = default(string))
 {
     // to ensure "applicationName" is required (not null)
     if (applicationName == null)
     {
         throw new InvalidDataException("applicationName is a required property for KapiDialplanToneDetect and cannot be null");
     }
     else
     {
         this.ApplicationName = applicationName;
     }
     // to ensure "callID" is required (not null)
     if (callID == null)
     {
         throw new InvalidDataException("callID is a required property for KapiDialplanToneDetect and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     // to ensure "frequencies" is required (not null)
     if (frequencies == null)
     {
         throw new InvalidDataException("frequencies is a required property for KapiDialplanToneDetect and cannot be null");
     }
     else
     {
         this.Frequencies = frequencies;
     }
     // to ensure "toneDetectName" is required (not null)
     if (toneDetectName == null)
     {
         throw new InvalidDataException("toneDetectName is a required property for KapiDialplanToneDetect and cannot be null");
     }
     else
     {
         this.ToneDetectName = toneDetectName;
     }
     this.EventCategory  = eventCategory;
     this.EventName      = eventName;
     this.HitsNeeded     = hitsNeeded;
     this.InsertAt       = insertAt;
     this.OnSuccess      = onSuccess;
     this.SniffDirection = sniffDirection;
     this.Timeout        = timeout;
 }
Example #22
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiConferenceSay" /> class.
 /// </summary>
 /// <param name="applicationName">applicationName (required).</param>
 /// <param name="callID">callID (required).</param>
 /// <param name="conferenceID">conferenceID.</param>
 /// <param name="endlessPlayback">endlessPlayback.</param>
 /// <param name="engine">engine.</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="groupID">groupID.</param>
 /// <param name="insertAt">insertAt.</param>
 /// <param name="language">language.</param>
 /// <param name="leg">leg.</param>
 /// <param name="loopCount">loopCount.</param>
 /// <param name="terminators">terminators.</param>
 /// <param name="text">text (required).</param>
 /// <param name="voice">voice.</param>
 public KapiConferenceSay(ApplicationNameEnum applicationName = default(ApplicationNameEnum), string callID = default(string), string conferenceID = default(string), bool?endlessPlayback = default(bool?), string engine = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string groupID = default(string), InsertAtEnum?insertAt = default(InsertAtEnum?), string language = default(string), string leg = default(string), int?loopCount = default(int?), List <TerminatorsEnum> terminators = default(List <TerminatorsEnum>), string text = default(string), string voice = default(string))
 {
     // to ensure "applicationName" is required (not null)
     if (applicationName == null)
     {
         throw new InvalidDataException("applicationName is a required property for KapiConferenceSay and cannot be null");
     }
     else
     {
         this.ApplicationName = applicationName;
     }
     // to ensure "callID" is required (not null)
     if (callID == null)
     {
         throw new InvalidDataException("callID is a required property for KapiConferenceSay and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     // to ensure "text" is required (not null)
     if (text == null)
     {
         throw new InvalidDataException("text is a required property for KapiConferenceSay and cannot be null");
     }
     else
     {
         this.Text = text;
     }
     this.ConferenceID    = conferenceID;
     this.EndlessPlayback = endlessPlayback;
     this.Engine          = engine;
     this.EventCategory   = eventCategory;
     this.EventName       = eventName;
     this.GroupID         = groupID;
     this.InsertAt        = insertAt;
     this.Language        = language;
     this.Leg             = leg;
     this.LoopCount       = loopCount;
     this.Terminators     = terminators;
     this.Voice           = voice;
 }
Example #23
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiDialplanSay" /> class.
 /// </summary>
 /// <param name="applicationName">applicationName (required).</param>
 /// <param name="callID">callID (required).</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="gender">gender.</param>
 /// <param name="groupID">groupID.</param>
 /// <param name="insertAt">insertAt.</param>
 /// <param name="language">language (required).</param>
 /// <param name="method">method (required).</param>
 /// <param name="sayText">sayText (required).</param>
 /// <param name="type">type (required).</param>
 public KapiDialplanSay(ApplicationNameEnum applicationName = default(ApplicationNameEnum), string callID = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), GenderEnum?gender = default(GenderEnum?), string groupID = default(string), InsertAtEnum?insertAt = default(InsertAtEnum?), string language = default(string), MethodEnum method = default(MethodEnum), string sayText = default(string), TypeEnum type = default(TypeEnum))
 {
     // to ensure "applicationName" is required (not null)
     if (applicationName == null)
     {
         throw new InvalidDataException("applicationName is a required property for KapiDialplanSay and cannot be null");
     }
     else
     {
         this.ApplicationName = applicationName;
     }
     // to ensure "callID" is required (not null)
     if (callID == null)
     {
         throw new InvalidDataException("callID is a required property for KapiDialplanSay and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     // to ensure "language" is required (not null)
     if (language == null)
     {
         throw new InvalidDataException("language is a required property for KapiDialplanSay and cannot be null");
     }
     else
     {
         this.Language = language;
     }
     // to ensure "method" is required (not null)
     if (method == null)
     {
         throw new InvalidDataException("method is a required property for KapiDialplanSay and cannot be null");
     }
     else
     {
         this.Method = method;
     }
     // to ensure "sayText" is required (not null)
     if (sayText == null)
     {
         throw new InvalidDataException("sayText is a required property for KapiDialplanSay and cannot be null");
     }
     else
     {
         this.SayText = sayText;
     }
     // to ensure "type" is required (not null)
     if (type == null)
     {
         throw new InvalidDataException("type is a required property for KapiDialplanSay and cannot be null");
     }
     else
     {
         this.Type = type;
     }
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
     this.Gender        = gender;
     this.GroupID       = groupID;
     this.InsertAt      = insertAt;
 }
Example #24
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiDialplanPrivacy" /> class.
 /// </summary>
 /// <param name="applicationName">applicationName (required).</param>
 /// <param name="callID">callID (required).</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="insertAt">insertAt.</param>
 /// <param name="privacyMode">privacyMode.</param>
 public KapiDialplanPrivacy(ApplicationNameEnum applicationName = default(ApplicationNameEnum), string callID = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), InsertAtEnum?insertAt = default(InsertAtEnum?), PrivacyModeEnum?privacyMode = default(PrivacyModeEnum?))
 {
     // to ensure "applicationName" is required (not null)
     if (applicationName == null)
     {
         throw new InvalidDataException("applicationName is a required property for KapiDialplanPrivacy and cannot be null");
     }
     else
     {
         this.ApplicationName = applicationName;
     }
     // to ensure "callID" is required (not null)
     if (callID == null)
     {
         throw new InvalidDataException("callID is a required property for KapiDialplanPrivacy and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
     this.InsertAt      = insertAt;
     this.PrivacyMode   = privacyMode;
 }
Example #25
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiDialplanRecord" /> class.
 /// </summary>
 /// <param name="applicationName">applicationName (required).</param>
 /// <param name="callID">callID (required).</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="insertAt">insertAt.</param>
 /// <param name="mediaName">mediaName (required).</param>
 /// <param name="silenceHits">silenceHits.</param>
 /// <param name="silenceThreshold">silenceThreshold.</param>
 /// <param name="terminators">terminators.</param>
 /// <param name="timeLimit">timeLimit.</param>
 public KapiDialplanRecord(ApplicationNameEnum applicationName = default(ApplicationNameEnum), string callID = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), InsertAtEnum?insertAt = default(InsertAtEnum?), string mediaName = default(string), string silenceHits = default(string), string silenceThreshold = default(string), List <TerminatorsEnum> terminators = default(List <TerminatorsEnum>), int?timeLimit = default(int?))
 {
     // to ensure "applicationName" is required (not null)
     if (applicationName == null)
     {
         throw new InvalidDataException("applicationName is a required property for KapiDialplanRecord and cannot be null");
     }
     else
     {
         this.ApplicationName = applicationName;
     }
     // to ensure "callID" is required (not null)
     if (callID == null)
     {
         throw new InvalidDataException("callID is a required property for KapiDialplanRecord and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     // to ensure "mediaName" is required (not null)
     if (mediaName == null)
     {
         throw new InvalidDataException("mediaName is a required property for KapiDialplanRecord and cannot be null");
     }
     else
     {
         this.MediaName = mediaName;
     }
     this.EventCategory    = eventCategory;
     this.EventName        = eventName;
     this.InsertAt         = insertAt;
     this.SilenceHits      = silenceHits;
     this.SilenceThreshold = silenceThreshold;
     this.Terminators      = terminators;
     this.TimeLimit        = timeLimit;
 }
Example #26
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiDialplanTones" /> class.
 /// </summary>
 /// <param name="applicationName">applicationName (required).</param>
 /// <param name="callID">callID (required).</param>
 /// <param name="conferenceID">conferenceID.</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="groupID">groupID.</param>
 /// <param name="insertAt">insertAt.</param>
 /// <param name="terminators">terminators.</param>
 /// <param name="tones">tones (required).</param>
 public KapiDialplanTones(ApplicationNameEnum applicationName = default(ApplicationNameEnum), string callID = default(string), string conferenceID = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string groupID = default(string), InsertAtEnum?insertAt = default(InsertAtEnum?), List <TerminatorsEnum> terminators = default(List <TerminatorsEnum>), List <KapiDialplanTonesReqToneHeaders> tones = default(List <KapiDialplanTonesReqToneHeaders>))
 {
     // to ensure "applicationName" is required (not null)
     if (applicationName == null)
     {
         throw new InvalidDataException("applicationName is a required property for KapiDialplanTones and cannot be null");
     }
     else
     {
         this.ApplicationName = applicationName;
     }
     // to ensure "callID" is required (not null)
     if (callID == null)
     {
         throw new InvalidDataException("callID is a required property for KapiDialplanTones and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     // to ensure "tones" is required (not null)
     if (tones == null)
     {
         throw new InvalidDataException("tones is a required property for KapiDialplanTones and cannot be null");
     }
     else
     {
         this.Tones = tones;
     }
     this.ConferenceID  = conferenceID;
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
     this.GroupID       = groupID;
     this.InsertAt      = insertAt;
     this.Terminators   = terminators;
 }