/// <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; }
/// <summary> /// Initializes a new instance of the <see cref="KapiDialplanStoreHttpResp" /> 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="mediaName">mediaName (required).</param> /// <param name="mediaTransferMethod">mediaTransferMethod (required).</param> /// <param name="mediaTransferResults">mediaTransferResults (required).</param> public KapiDialplanStoreHttpResp(ApplicationNameEnum applicationName = default(ApplicationNameEnum), string callID = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string mediaName = default(string), MediaTransferMethodEnum mediaTransferMethod = default(MediaTransferMethodEnum), Object mediaTransferResults = default(Object)) { // to ensure "applicationName" is required (not null) if (applicationName == null) { throw new InvalidDataException("applicationName is a required property for KapiDialplanStoreHttpResp 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 KapiDialplanStoreHttpResp 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 KapiDialplanStoreHttpResp and cannot be null"); } else { this.MediaName = mediaName; } // to ensure "mediaTransferMethod" is required (not null) if (mediaTransferMethod == null) { throw new InvalidDataException("mediaTransferMethod is a required property for KapiDialplanStoreHttpResp and cannot be null"); } else { this.MediaTransferMethod = mediaTransferMethod; } // to ensure "mediaTransferResults" is required (not null) if (mediaTransferResults == null) { throw new InvalidDataException("mediaTransferResults is a required property for KapiDialplanStoreHttpResp and cannot be null"); } else { this.MediaTransferResults = mediaTransferResults; } this.EventCategory = eventCategory; this.EventName = eventName; }
/// <summary> /// Initializes a new instance of the <see cref="KapiDialplanStoreAmqpResp" /> class. /// </summary> /// <param name="applicationName">applicationName (required).</param> /// <param name="callID">callID (required).</param> /// <param name="mediaContent">mediaContent (required).</param> /// <param name="mediaName">mediaName (required).</param> /// <param name="mediaSequenceID">mediaSequenceID.</param> /// <param name="mediaTransferMethod">mediaTransferMethod (required).</param> public KapiDialplanStoreAmqpResp(ApplicationNameEnum applicationName = default(ApplicationNameEnum), string callID = default(string), string mediaContent = default(string), string mediaName = default(string), string mediaSequenceID = default(string), MediaTransferMethodEnum mediaTransferMethod = default(MediaTransferMethodEnum)) { // to ensure "applicationName" is required (not null) if (applicationName == null) { throw new InvalidDataException("applicationName is a required property for KapiDialplanStoreAmqpResp 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 KapiDialplanStoreAmqpResp and cannot be null"); } else { this.CallID = callID; } // to ensure "mediaContent" is required (not null) if (mediaContent == null) { throw new InvalidDataException("mediaContent is a required property for KapiDialplanStoreAmqpResp and cannot be null"); } else { this.MediaContent = mediaContent; } // to ensure "mediaName" is required (not null) if (mediaName == null) { throw new InvalidDataException("mediaName is a required property for KapiDialplanStoreAmqpResp and cannot be null"); } else { this.MediaName = mediaName; } // to ensure "mediaTransferMethod" is required (not null) if (mediaTransferMethod == null) { throw new InvalidDataException("mediaTransferMethod is a required property for KapiDialplanStoreAmqpResp and cannot be null"); } else { this.MediaTransferMethod = mediaTransferMethod; } this.MediaSequenceID = mediaSequenceID; }