Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiDialplanAudioLevel" /> 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 (required).</param>
 /// <param name="level">level (required).</param>
 /// <param name="mode">mode (required).</param>
 public KapiDialplanAudioLevel(string action = default(string), ApplicationNameEnum applicationName = default(ApplicationNameEnum), string callID = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), InsertAtEnum insertAt = default(InsertAtEnum), string level = default(string), string mode = default(string))
 {
     // to ensure "action" is required (not null)
     if (action == null)
     {
         throw new InvalidDataException("action is a required property for KapiDialplanAudioLevel 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 KapiDialplanAudioLevel 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 KapiDialplanAudioLevel and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     // to ensure "insertAt" is required (not null)
     if (insertAt == null)
     {
         throw new InvalidDataException("insertAt is a required property for KapiDialplanAudioLevel and cannot be null");
     }
     else
     {
         this.InsertAt = insertAt;
     }
     // to ensure "level" is required (not null)
     if (level == null)
     {
         throw new InvalidDataException("level is a required property for KapiDialplanAudioLevel and cannot be null");
     }
     else
     {
         this.Level = level;
     }
     // to ensure "mode" is required (not null)
     if (mode == null)
     {
         throw new InvalidDataException("mode is a required property for KapiDialplanAudioLevel and cannot be null");
     }
     else
     {
         this.Mode = mode;
     }
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiDialplanSoundTouch" /> class.
 /// </summary>
 /// <param name="action">action (required).</param>
 /// <param name="adjustInOctaves">adjustInOctaves.</param>
 /// <param name="adjustInSemitones">adjustInSemitones.</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="hookDTMF">hookDTMF.</param>
 /// <param name="insertAt">insertAt (required).</param>
 /// <param name="pitch">pitch.</param>
 /// <param name="rate">rate.</param>
 /// <param name="sendingLeg">sendingLeg.</param>
 /// <param name="tempo">tempo.</param>
 public KapiDialplanSoundTouch(ActionEnum action = default(ActionEnum), string adjustInOctaves = default(string), string adjustInSemitones = default(string), ApplicationNameEnum applicationName = default(ApplicationNameEnum), string callID = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), bool?hookDTMF = default(bool?), InsertAtEnum insertAt = default(InsertAtEnum), string pitch = default(string), string rate = default(string), bool?sendingLeg = default(bool?), string tempo = default(string))
 {
     // to ensure "action" is required (not null)
     if (action == null)
     {
         throw new InvalidDataException("action is a required property for KapiDialplanSoundTouch 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 KapiDialplanSoundTouch 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 KapiDialplanSoundTouch and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     // to ensure "insertAt" is required (not null)
     if (insertAt == null)
     {
         throw new InvalidDataException("insertAt is a required property for KapiDialplanSoundTouch and cannot be null");
     }
     else
     {
         this.InsertAt = insertAt;
     }
     this.AdjustInOctaves   = adjustInOctaves;
     this.AdjustInSemitones = adjustInSemitones;
     this.EventCategory     = eventCategory;
     this.EventName         = eventName;
     this.HookDTMF          = hookDTMF;
     this.Pitch             = pitch;
     this.Rate       = rate;
     this.SendingLeg = sendingLeg;
     this.Tempo      = tempo;
 }