Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiAcdcQueueMemberCallSuccess" /> class.
 /// </summary>
 /// <param name="accountID">accountID (required).</param>
 /// <param name="agentID">agentID.</param>
 /// <param name="callID">callID.</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="processID">processID.</param>
 /// <param name="queueID">queueID (required).</param>
 public KapiAcdcQueueMemberCallSuccess(string accountID = default(string), string agentID = default(string), string callID = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string processID = default(string), string queueID = default(string))
 {
     // to ensure "accountID" is required (not null)
     if (accountID == null)
     {
         throw new InvalidDataException("accountID is a required property for KapiAcdcQueueMemberCallSuccess and cannot be null");
     }
     else
     {
         this.AccountID = accountID;
     }
     // to ensure "queueID" is required (not null)
     if (queueID == null)
     {
         throw new InvalidDataException("queueID is a required property for KapiAcdcQueueMemberCallSuccess and cannot be null");
     }
     else
     {
         this.QueueID = queueID;
     }
     this.AgentID       = agentID;
     this.CallID        = callID;
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
     this.ProcessID     = processID;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiSysconfSetResp" /> class.
 /// </summary>
 /// <param name="category">category (required).</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="key">key (required).</param>
 /// <param name="node">node.</param>
 /// <param name="status">status.</param>
 /// <param name="value">value (required).</param>
 public KapiSysconfSetResp(string category = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string key = default(string), string node = default(string), string status = default(string), string value = default(string))
 {
     // to ensure "category" is required (not null)
     if (category == null)
     {
         throw new InvalidDataException("category is a required property for KapiSysconfSetResp and cannot be null");
     }
     else
     {
         this.Category = category;
     }
     // to ensure "key" is required (not null)
     if (key == null)
     {
         throw new InvalidDataException("key is a required property for KapiSysconfSetResp and cannot be null");
     }
     else
     {
         this.Key = key;
     }
     // to ensure "value" is required (not null)
     if (value == null)
     {
         throw new InvalidDataException("value is a required property for KapiSysconfSetResp and cannot be null");
     }
     else
     {
         this.Value = value;
     }
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
     this.Node          = node;
     this.Status        = status;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiBlackholeGetReq" /> class.
 /// </summary>
 /// <param name="accountID">accountID.</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="socketID">socketID.</param>
 public KapiBlackholeGetReq(string accountID = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string socketID = default(string))
 {
     this.AccountID     = accountID;
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
     this.SocketID      = socketID;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiFaxReq" /> class.
 /// </summary>
 /// <param name="action">action (required).</param>
 /// <param name="call">call (required).</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="faxT38Option">faxT38Option.</param>
 /// <param name="faxBoxID">faxBoxID.</param>
 /// <param name="ownerID">ownerID.</param>
 public KapiFaxReq(ActionEnum action = default(ActionEnum), Object call = default(Object), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string faxT38Option = default(string), string faxBoxID = default(string), string ownerID = default(string))
 {
     // to ensure "action" is required (not null)
     if (action == null)
     {
         throw new InvalidDataException("action is a required property for KapiFaxReq and cannot be null");
     }
     else
     {
         this.Action = action;
     }
     // to ensure "call" is required (not null)
     if (call == null)
     {
         throw new InvalidDataException("call is a required property for KapiFaxReq and cannot be null");
     }
     else
     {
         this.Call = call;
     }
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
     this.FaxT38Option  = faxT38Option;
     this.FaxBoxID      = faxBoxID;
     this.OwnerID       = ownerID;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiConferencePlay" /> class.
 /// </summary>
 /// <param name="applicationName">applicationName (required).</param>
 /// <param name="callID">callID.</param>
 /// <param name="conferenceID">conferenceID (required).</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="mediaName">mediaName (required).</param>
 /// <param name="participantID">participantID.</param>
 public KapiConferencePlay(ApplicationNameEnum applicationName = default(ApplicationNameEnum), string callID = default(string), string conferenceID = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string mediaName = default(string), string participantID = default(string))
 {
     // to ensure "applicationName" is required (not null)
     if (applicationName == null)
     {
         throw new InvalidDataException("applicationName is a required property for KapiConferencePlay and cannot be null");
     }
     else
     {
         this.ApplicationName = applicationName;
     }
     // to ensure "conferenceID" is required (not null)
     if (conferenceID == null)
     {
         throw new InvalidDataException("conferenceID is a required property for KapiConferencePlay and cannot be null");
     }
     else
     {
         this.ConferenceID = conferenceID;
     }
     // to ensure "mediaName" is required (not null)
     if (mediaName == null)
     {
         throw new InvalidDataException("mediaName is a required property for KapiConferencePlay and cannot be null");
     }
     else
     {
         this.MediaName = mediaName;
     }
     this.CallID        = callID;
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
     this.ParticipantID = participantID;
 }
Exemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiRouteWin" /> class.
 /// </summary>
 /// <param name="callID">callID (required).</param>
 /// <param name="controlQueue">controlQueue (required).</param>
 /// <param name="customChannelVars">customChannelVars.</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="switchHostname">switchHostname.</param>
 public KapiRouteWin(string callID = default(string), string controlQueue = default(string), Object customChannelVars = default(Object), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string switchHostname = default(string))
 {
     // to ensure "callID" is required (not null)
     if (callID == null)
     {
         throw new InvalidDataException("callID is a required property for KapiRouteWin and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     // to ensure "controlQueue" is required (not null)
     if (controlQueue == null)
     {
         throw new InvalidDataException("controlQueue is a required property for KapiRouteWin and cannot be null");
     }
     else
     {
         this.ControlQueue = controlQueue;
     }
     this.CustomChannelVars = customChannelVars;
     this.EventCategory     = eventCategory;
     this.EventName         = eventName;
     this.SwitchHostname    = switchHostname;
 }
Exemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiNotificationsPortRequest" /> class.
 /// </summary>
 /// <param name="accountDB">accountDB.</param>
 /// <param name="accountID">accountID (required).</param>
 /// <param name="attachmentURL">attachmentURL.</param>
 /// <param name="authorizedBy">authorizedBy.</param>
 /// <param name="bcc">bcc.</param>
 /// <param name="cc">cc.</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="from">from.</param>
 /// <param name="hTML">hTML.</param>
 /// <param name="localNumber">localNumber.</param>
 /// <param name="number">number.</param>
 /// <param name="numberState">numberState.</param>
 /// <param name="port">port.</param>
 /// <param name="portRequestID">portRequestID.</param>
 /// <param name="preview">preview.</param>
 /// <param name="reason">reason.</param>
 /// <param name="replyTo">replyTo.</param>
 /// <param name="subject">subject.</param>
 /// <param name="text">text.</param>
 /// <param name="to">to.</param>
 /// <param name="version">version.</param>
 public KapiNotificationsPortRequest(string accountDB = default(string), string accountID = default(string), string attachmentURL = default(string), string authorizedBy = default(string), string bcc = default(string), string cc = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string from = default(string), string hTML = default(string), string localNumber = default(string), string number = default(string), string numberState = default(string), string port = default(string), string portRequestID = default(string), string preview = default(string), Object reason = default(Object), string replyTo = default(string), string subject = default(string), string text = default(string), string to = default(string), string version = default(string))
 {
     // to ensure "accountID" is required (not null)
     if (accountID == null)
     {
         throw new InvalidDataException("accountID is a required property for KapiNotificationsPortRequest and cannot be null");
     }
     else
     {
         this.AccountID = accountID;
     }
     this.AccountDB     = accountDB;
     this.AttachmentURL = attachmentURL;
     this.AuthorizedBy  = authorizedBy;
     this.Bcc           = bcc;
     this.Cc            = cc;
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
     this.From          = from;
     this.HTML          = hTML;
     this.LocalNumber   = localNumber;
     this.Number        = number;
     this.NumberState   = numberState;
     this.Port          = port;
     this.PortRequestID = portRequestID;
     this.Preview       = preview;
     this.Reason        = reason;
     this.ReplyTo       = replyTo;
     this.Subject       = subject;
     this.Text          = text;
     this.To            = to;
     this.Version       = version;
 }
Exemplo n.º 8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiFrontierAclsResp" /> class.
 /// </summary>
 /// <param name="device">device.</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="realm">realm.</param>
 public KapiFrontierAclsResp(Object device = default(Object), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), Object realm = default(Object))
 {
     this.Device        = device;
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
     this.Realm         = realm;
 }
Exemplo n.º 9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiNotificationsWebhookDisabled" /> class.
 /// </summary>
 /// <param name="accountDB">accountDB.</param>
 /// <param name="accountID">accountID (required).</param>
 /// <param name="attachmentURL">attachmentURL.</param>
 /// <param name="bcc">bcc.</param>
 /// <param name="cc">cc.</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="from">from.</param>
 /// <param name="hTML">hTML.</param>
 /// <param name="hookID">hookID (required).</param>
 /// <param name="preview">preview.</param>
 /// <param name="replyTo">replyTo.</param>
 /// <param name="subject">subject.</param>
 /// <param name="text">text.</param>
 /// <param name="to">to.</param>
 public KapiNotificationsWebhookDisabled(string accountDB = default(string), string accountID = default(string), string attachmentURL = default(string), string bcc = default(string), string cc = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string from = default(string), string hTML = default(string), string hookID = default(string), string preview = default(string), string replyTo = default(string), string subject = default(string), string text = default(string), string to = default(string))
 {
     // to ensure "accountID" is required (not null)
     if (accountID == null)
     {
         throw new InvalidDataException("accountID is a required property for KapiNotificationsWebhookDisabled and cannot be null");
     }
     else
     {
         this.AccountID = accountID;
     }
     // to ensure "hookID" is required (not null)
     if (hookID == null)
     {
         throw new InvalidDataException("hookID is a required property for KapiNotificationsWebhookDisabled and cannot be null");
     }
     else
     {
         this.HookID = hookID;
     }
     this.AccountDB     = accountDB;
     this.AttachmentURL = attachmentURL;
     this.Bcc           = bcc;
     this.Cc            = cc;
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
     this.From          = from;
     this.HTML          = hTML;
     this.Preview       = preview;
     this.ReplyTo       = replyTo;
     this.Subject       = subject;
     this.Text          = text;
     this.To            = to;
 }
Exemplo n.º 10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiSwitchFsReply" /> class.
 /// </summary>
 /// <param name="command">command (required).</param>
 /// <param name="error">error.</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventData">eventData.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="freeSWITCHNode">freeSWITCHNode.</param>
 /// <param name="response">response.</param>
 /// <param name="result">result (required).</param>
 public KapiSwitchFsReply(string command = default(string), string error = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), string eventData = default(string), EventNameEnum?eventName = default(EventNameEnum?), string freeSWITCHNode = default(string), string response = default(string), string result = default(string))
 {
     // to ensure "command" is required (not null)
     if (command == null)
     {
         throw new InvalidDataException("command is a required property for KapiSwitchFsReply and cannot be null");
     }
     else
     {
         this.Command = command;
     }
     // to ensure "result" is required (not null)
     if (result == null)
     {
         throw new InvalidDataException("result is a required property for KapiSwitchFsReply and cannot be null");
     }
     else
     {
         this.Result = result;
     }
     this.Error          = error;
     this.EventCategory  = eventCategory;
     this.EventData      = eventData;
     this.EventName      = eventName;
     this.FreeSWITCHNode = freeSWITCHNode;
     this.Response       = response;
 }
Exemplo n.º 11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiOmnipresenceNotify" /> class.
 /// </summary>
 /// <param name="body">body.</param>
 /// <param name="callID">callID.</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="eventPackage">eventPackage.</param>
 /// <param name="from">from (required).</param>
 /// <param name="fromTag">fromTag.</param>
 /// <param name="to">to (required).</param>
 /// <param name="toTag">toTag.</param>
 public KapiOmnipresenceNotify(string body = default(string), string callID = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string eventPackage = default(string), string from = default(string), string fromTag = default(string), string to = default(string), string toTag = default(string))
 {
     // to ensure "from" is required (not null)
     if (from == null)
     {
         throw new InvalidDataException("from is a required property for KapiOmnipresenceNotify and cannot be null");
     }
     else
     {
         this.From = from;
     }
     // to ensure "to" is required (not null)
     if (to == null)
     {
         throw new InvalidDataException("to is a required property for KapiOmnipresenceNotify and cannot be null");
     }
     else
     {
         this.To = to;
     }
     this.Body          = body;
     this.CallID        = callID;
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
     this.EventPackage  = eventPackage;
     this.FromTag       = fromTag;
     this.ToTag         = toTag;
 }
Exemplo n.º 12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiAcdcStatsCallProcessed" /> class.
 /// </summary>
 /// <param name="accountID">accountID (required).</param>
 /// <param name="agentID">agentID.</param>
 /// <param name="callID">callID (required).</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="hungUpBy">hungUpBy.</param>
 /// <param name="processedTimestamp">processedTimestamp.</param>
 /// <param name="queueID">queueID (required).</param>
 public KapiAcdcStatsCallProcessed(string accountID = default(string), string agentID = default(string), string callID = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string hungUpBy = default(string), string processedTimestamp = default(string), string queueID = default(string))
 {
     // to ensure "accountID" is required (not null)
     if (accountID == null)
     {
         throw new InvalidDataException("accountID is a required property for KapiAcdcStatsCallProcessed and cannot be null");
     }
     else
     {
         this.AccountID = accountID;
     }
     // to ensure "callID" is required (not null)
     if (callID == null)
     {
         throw new InvalidDataException("callID is a required property for KapiAcdcStatsCallProcessed and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     // to ensure "queueID" is required (not null)
     if (queueID == null)
     {
         throw new InvalidDataException("queueID is a required property for KapiAcdcStatsCallProcessed and cannot be null");
     }
     else
     {
         this.QueueID = queueID;
     }
     this.AgentID            = agentID;
     this.EventCategory      = eventCategory;
     this.EventName          = eventName;
     this.HungUpBy           = hungUpBy;
     this.ProcessedTimestamp = processedTimestamp;
 }
Exemplo n.º 13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiPresenceSubscribe" /> class.
 /// </summary>
 /// <param name="callID">callID.</param>
 /// <param name="contact">contact.</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="eventPackage">eventPackage.</param>
 /// <param name="expires">expires (required).</param>
 /// <param name="from">from.</param>
 /// <param name="fromTag">fromTag.</param>
 /// <param name="queue">queue.</param>
 /// <param name="toTag">toTag.</param>
 /// <param name="user">user (required).</param>
 public KapiPresenceSubscribe(string callID = default(string), string contact = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string eventPackage = default(string), string expires = default(string), string from = default(string), string fromTag = default(string), string queue = default(string), string toTag = default(string), string user = default(string))
 {
     // to ensure "expires" is required (not null)
     if (expires == null)
     {
         throw new InvalidDataException("expires is a required property for KapiPresenceSubscribe and cannot be null");
     }
     else
     {
         this.Expires = expires;
     }
     // to ensure "user" is required (not null)
     if (user == null)
     {
         throw new InvalidDataException("user is a required property for KapiPresenceSubscribe and cannot be null");
     }
     else
     {
         this.User = user;
     }
     this.CallID        = callID;
     this.Contact       = contact;
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
     this.EventPackage  = eventPackage;
     this.From          = from;
     this.FromTag       = fromTag;
     this.Queue         = queue;
     this.ToTag         = toTag;
 }
Exemplo n.º 14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiConferenceConfigReq" /> class.
 /// </summary>
 /// <param name="callID">callID.</param>
 /// <param name="conferenceID">conferenceID.</param>
 /// <param name="controls">controls.</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="profile">profile (required).</param>
 /// <param name="request">request (required).</param>
 public KapiConferenceConfigReq(string callID = default(string), string conferenceID = default(string), string controls = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string profile = default(string), string request = default(string))
 {
     // to ensure "profile" is required (not null)
     if (profile == null)
     {
         throw new InvalidDataException("profile is a required property for KapiConferenceConfigReq and cannot be null");
     }
     else
     {
         this.Profile = profile;
     }
     // to ensure "request" is required (not null)
     if (request == null)
     {
         throw new InvalidDataException("request is a required property for KapiConferenceConfigReq and cannot be null");
     }
     else
     {
         this.Request = request;
     }
     this.CallID        = callID;
     this.ConferenceID  = conferenceID;
     this.Controls      = controls;
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
 }
Exemplo n.º 15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiBookkeepersSaleReqDefinition" /> class.
 /// </summary>
 /// <param name="accountID">accountID (required).</param>
 /// <param name="amount">amount (required).</param>
 /// <param name="bookkeeperType">bookkeeperType (required).</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="transactionDB">transactionDB (required).</param>
 /// <param name="transactionID">transactionID (required).</param>
 /// <param name="vendorID">vendorID (required).</param>
 public KapiBookkeepersSaleReqDefinition(string accountID = default(string), string amount = default(string), string bookkeeperType = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string transactionDB = default(string), string transactionID = default(string), string vendorID = default(string))
 {
     // to ensure "accountID" is required (not null)
     if (accountID == null)
     {
         throw new InvalidDataException("accountID is a required property for KapiBookkeepersSaleReqDefinition and cannot be null");
     }
     else
     {
         this.AccountID = accountID;
     }
     // to ensure "amount" is required (not null)
     if (amount == null)
     {
         throw new InvalidDataException("amount is a required property for KapiBookkeepersSaleReqDefinition and cannot be null");
     }
     else
     {
         this.Amount = amount;
     }
     // to ensure "bookkeeperType" is required (not null)
     if (bookkeeperType == null)
     {
         throw new InvalidDataException("bookkeeperType is a required property for KapiBookkeepersSaleReqDefinition and cannot be null");
     }
     else
     {
         this.BookkeeperType = bookkeeperType;
     }
     // to ensure "transactionDB" is required (not null)
     if (transactionDB == null)
     {
         throw new InvalidDataException("transactionDB is a required property for KapiBookkeepersSaleReqDefinition and cannot be null");
     }
     else
     {
         this.TransactionDB = transactionDB;
     }
     // to ensure "transactionID" is required (not null)
     if (transactionID == null)
     {
         throw new InvalidDataException("transactionID is a required property for KapiBookkeepersSaleReqDefinition and cannot be null");
     }
     else
     {
         this.TransactionID = transactionID;
     }
     // to ensure "vendorID" is required (not null)
     if (vendorID == null)
     {
         throw new InvalidDataException("vendorID is a required property for KapiBookkeepersSaleReqDefinition and cannot be null");
     }
     else
     {
         this.VendorID = vendorID;
     }
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
 }
Exemplo n.º 16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiBookkeepersStandingReqDefinition" /> class.
 /// </summary>
 /// <param name="accountID">accountID (required).</param>
 /// <param name="bookkeeperID">bookkeeperID (required).</param>
 /// <param name="bookkeeperType">bookkeeperType (required).</param>
 /// <param name="estimatedWithdrawal">estimatedWithdrawal (required).</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="items">items (required).</param>
 /// <param name="vendorID">vendorID (required).</param>
 public KapiBookkeepersStandingReqDefinition(string accountID = default(string), string bookkeeperID = default(string), string bookkeeperType = default(string), string estimatedWithdrawal = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string items = default(string), string vendorID = default(string))
 {
     // to ensure "accountID" is required (not null)
     if (accountID == null)
     {
         throw new InvalidDataException("accountID is a required property for KapiBookkeepersStandingReqDefinition and cannot be null");
     }
     else
     {
         this.AccountID = accountID;
     }
     // to ensure "bookkeeperID" is required (not null)
     if (bookkeeperID == null)
     {
         throw new InvalidDataException("bookkeeperID is a required property for KapiBookkeepersStandingReqDefinition and cannot be null");
     }
     else
     {
         this.BookkeeperID = bookkeeperID;
     }
     // to ensure "bookkeeperType" is required (not null)
     if (bookkeeperType == null)
     {
         throw new InvalidDataException("bookkeeperType is a required property for KapiBookkeepersStandingReqDefinition and cannot be null");
     }
     else
     {
         this.BookkeeperType = bookkeeperType;
     }
     // to ensure "estimatedWithdrawal" is required (not null)
     if (estimatedWithdrawal == null)
     {
         throw new InvalidDataException("estimatedWithdrawal is a required property for KapiBookkeepersStandingReqDefinition and cannot be null");
     }
     else
     {
         this.EstimatedWithdrawal = estimatedWithdrawal;
     }
     // to ensure "items" is required (not null)
     if (items == null)
     {
         throw new InvalidDataException("items is a required property for KapiBookkeepersStandingReqDefinition and cannot be null");
     }
     else
     {
         this.Items = items;
     }
     // to ensure "vendorID" is required (not null)
     if (vendorID == null)
     {
         throw new InvalidDataException("vendorID is a required property for KapiBookkeepersStandingReqDefinition and cannot be null");
     }
     else
     {
         this.VendorID = vendorID;
     }
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
 }
Exemplo n.º 17
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateWebhookOptions" /> class.
 /// </summary>
 /// <param name="url">Public URL on your server that MailSlurp can post WebhookNotification payload to when an email is received or an event is trigger. The payload of the submitted JSON is dependent on the webhook event type. The default &#x60;EMAIL_RECEIVED&#x60; payload is described by &#x60;https://api.mailslurp.com/schemas/webhook-payload&#x60;. The other events, &#x60;NEW_EMAIL&#x60;, &#x60;NEW_CONTACT&#x60;, and &#x60;NEW_ATTACHMENT&#x60; are described by &#x60;https://api.mailslurp.com/schemas/webhook-new-email-payload&#x60;, &#x60;https://api.mailslurp.com/schemas/webhook-new-contact-payload&#x60;,&#x60;https://api.mailslurp.com/schemas/webhook-new-attachment-payload&#x60; respectively. (required).</param>
 /// <param name="basicAuth">basicAuth.</param>
 /// <param name="name">Optional name for the webhook.</param>
 /// <param name="eventName">Optional webhook event name. Default is &#x60;EMAIL_RECEIVED&#x60; and is triggered when an email is received by the inbox associated with the webhook. Payload differ according to the webhook event name. The other events are &#x60;NEW_EMAIL&#x60;, &#x60;NEW_CONTACT&#x60;, and &#x60;NEW_ATTACHMENT&#x60; and &#x60;EMAIL_OPENED&#x60;. &#x60;EMAIL_OPENED&#x60; requires the use of tracking pixels when sending. See the email tracking guide for more information..</param>
 public CreateWebhookOptions(string url = default(string), BasicAuthOptions basicAuth = default(BasicAuthOptions), string name = default(string), EventNameEnum?eventName = default(EventNameEnum?))
 {
     // to ensure "url" is required (not null)
     this.Url       = url ?? throw new ArgumentNullException("url is a required property for CreateWebhookOptions and cannot be null");
     this.BasicAuth = basicAuth;
     this.Name      = name;
     this.EventName = eventName;
 }
Exemplo n.º 18
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiCallQueryChannelsReq" /> class.
 /// </summary>
 /// <param name="activeOnly">activeOnly.</param>
 /// <param name="callID">callID.</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="fields">fields.</param>
 public KapiCallQueryChannelsReq(bool?activeOnly = default(bool?), string callID = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string fields = default(string))
 {
     this.ActiveOnly    = activeOnly;
     this.CallID        = callID;
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
     this.Fields        = fields;
 }
Exemplo n.º 19
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiRegistrationQueryResp" /> class.
 /// </summary>
 /// <param name="count">count.</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="fields">fields.</param>
 /// <param name="registrarAge">registrarAge.</param>
 public KapiRegistrationQueryResp(string count = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string fields = default(string), string registrarAge = default(string))
 {
     this.Count         = count;
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
     this.Fields        = fields;
     this.RegistrarAge  = registrarAge;
 }
Exemplo n.º 20
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiNotificationsRegister" /> class.
 /// </summary>
 /// <param name="accountDB">accountDB.</param>
 /// <param name="accountID">accountID (required).</param>
 /// <param name="attachmentURL">attachmentURL.</param>
 /// <param name="authorizingID">authorizingID.</param>
 /// <param name="authorizingType">authorizingType.</param>
 /// <param name="bcc">bcc.</param>
 /// <param name="callID">callID.</param>
 /// <param name="cc">cc.</param>
 /// <param name="contact">contact.</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="eventTimestamp">eventTimestamp.</param>
 /// <param name="expires">expires.</param>
 /// <param name="from">from.</param>
 /// <param name="fromHost">fromHost.</param>
 /// <param name="fromUser">fromUser.</param>
 /// <param name="hTML">hTML.</param>
 /// <param name="networkIP">networkIP.</param>
 /// <param name="networkPort">networkPort.</param>
 /// <param name="ownerID">ownerID.</param>
 /// <param name="preview">preview.</param>
 /// <param name="realm">realm (required).</param>
 /// <param name="replyTo">replyTo.</param>
 /// <param name="subject">subject.</param>
 /// <param name="suppressUnregisterNotify">suppressUnregisterNotify.</param>
 /// <param name="text">text.</param>
 /// <param name="to">to.</param>
 /// <param name="toHost">toHost.</param>
 /// <param name="toUser">toUser.</param>
 /// <param name="userAgent">userAgent.</param>
 /// <param name="username">username (required).</param>
 public KapiNotificationsRegister(string accountDB = default(string), string accountID = default(string), string attachmentURL = default(string), string authorizingID = default(string), string authorizingType = default(string), string bcc = default(string), string callID = default(string), string cc = default(string), string contact = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string eventTimestamp = default(string), string expires = default(string), string from = default(string), string fromHost = default(string), string fromUser = default(string), string hTML = default(string), string networkIP = default(string), string networkPort = default(string), string ownerID = default(string), string preview = default(string), string realm = default(string), string replyTo = default(string), string subject = default(string), string suppressUnregisterNotify = default(string), string text = default(string), string to = default(string), string toHost = default(string), string toUser = default(string), string userAgent = default(string), string username = default(string))
 {
     // to ensure "accountID" is required (not null)
     if (accountID == null)
     {
         throw new InvalidDataException("accountID is a required property for KapiNotificationsRegister and cannot be null");
     }
     else
     {
         this.AccountID = accountID;
     }
     // to ensure "realm" is required (not null)
     if (realm == null)
     {
         throw new InvalidDataException("realm is a required property for KapiNotificationsRegister and cannot be null");
     }
     else
     {
         this.Realm = realm;
     }
     // to ensure "username" is required (not null)
     if (username == null)
     {
         throw new InvalidDataException("username is a required property for KapiNotificationsRegister and cannot be null");
     }
     else
     {
         this.Username = username;
     }
     this.AccountDB       = accountDB;
     this.AttachmentURL   = attachmentURL;
     this.AuthorizingID   = authorizingID;
     this.AuthorizingType = authorizingType;
     this.Bcc             = bcc;
     this.CallID          = callID;
     this.Cc                       = cc;
     this.Contact                  = contact;
     this.EventCategory            = eventCategory;
     this.EventName                = eventName;
     this.EventTimestamp           = eventTimestamp;
     this.Expires                  = expires;
     this.From                     = from;
     this.FromHost                 = fromHost;
     this.FromUser                 = fromUser;
     this.HTML                     = hTML;
     this.NetworkIP                = networkIP;
     this.NetworkPort              = networkPort;
     this.OwnerID                  = ownerID;
     this.Preview                  = preview;
     this.ReplyTo                  = replyTo;
     this.Subject                  = subject;
     this.SuppressUnregisterNotify = suppressUnregisterNotify;
     this.Text                     = text;
     this.To                       = to;
     this.ToHost                   = toHost;
     this.ToUser                   = toUser;
     this.UserAgent                = userAgent;
 }
Exemplo n.º 21
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiRegistrationQueryReq" /> class.
 /// </summary>
 /// <param name="countOnly">countOnly.</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="fields">fields.</param>
 /// <param name="realm">realm.</param>
 /// <param name="username">username.</param>
 public KapiRegistrationQueryReq(string countOnly = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string fields = default(string), string realm = default(string), string username = default(string))
 {
     this.CountOnly     = countOnly;
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
     this.Fields        = fields;
     this.Realm         = realm;
     this.Username      = username;
 }
Exemplo n.º 22
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiCallQueryUserChannelsReq" /> class.
 /// </summary>
 /// <param name="activeOnly">activeOnly.</param>
 /// <param name="authorizingIDs">authorizingIDs.</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="realm">realm.</param>
 /// <param name="username">username.</param>
 /// <param name="usernames">usernames.</param>
 public KapiCallQueryUserChannelsReq(bool?activeOnly = default(bool?), List <string> authorizingIDs = default(List <string>), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string realm = default(string), string username = default(string), List <string> usernames = default(List <string>))
 {
     this.ActiveOnly     = activeOnly;
     this.AuthorizingIDs = authorizingIDs;
     this.EventCategory  = eventCategory;
     this.EventName      = eventName;
     this.Realm          = realm;
     this.Username       = username;
     this.Usernames      = usernames;
 }
Exemplo n.º 23
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WebhookProjection" /> class.
 /// </summary>
 /// <param name="name">name.</param>
 /// <param name="id">id (required).</param>
 /// <param name="url">url (required).</param>
 /// <param name="inboxId">inboxId (required).</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="createdAt">createdAt (required).</param>
 /// <param name="updatedAt">updatedAt (required).</param>
 public WebhookProjection(string name = default(string), Guid id = default(Guid), string url = default(string), Guid inboxId = default(Guid), EventNameEnum?eventName = default(EventNameEnum?), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime))
 {
     this.Id = id;
     // to ensure "url" is required (not null)
     this.Url       = url ?? throw new ArgumentNullException("url is a required property for WebhookProjection and cannot be null");
     this.InboxId   = inboxId;
     this.CreatedAt = createdAt;
     this.UpdatedAt = updatedAt;
     this.Name      = name;
     this.EventName = eventName;
 }
Exemplo n.º 24
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiBookkeepersUpdateReqDefinition" /> class.
 /// </summary>
 /// <param name="accountID">accountID (required).</param>
 /// <param name="auditID">auditID.</param>
 /// <param name="auditLog">auditLog.</param>
 /// <param name="bookkeeperID">bookkeeperID (required).</param>
 /// <param name="bookkeeperType">bookkeeperType (required).</param>
 /// <param name="dryRun">dryRun.</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="invoice">invoice (required).</param>
 /// <param name="vendorID">vendorID (required).</param>
 public KapiBookkeepersUpdateReqDefinition(string accountID = default(string), string auditID = default(string), string auditLog = default(string), string bookkeeperID = default(string), string bookkeeperType = default(string), string dryRun = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string invoice = default(string), string vendorID = default(string))
 {
     // to ensure "accountID" is required (not null)
     if (accountID == null)
     {
         throw new InvalidDataException("accountID is a required property for KapiBookkeepersUpdateReqDefinition and cannot be null");
     }
     else
     {
         this.AccountID = accountID;
     }
     // to ensure "bookkeeperID" is required (not null)
     if (bookkeeperID == null)
     {
         throw new InvalidDataException("bookkeeperID is a required property for KapiBookkeepersUpdateReqDefinition and cannot be null");
     }
     else
     {
         this.BookkeeperID = bookkeeperID;
     }
     // to ensure "bookkeeperType" is required (not null)
     if (bookkeeperType == null)
     {
         throw new InvalidDataException("bookkeeperType is a required property for KapiBookkeepersUpdateReqDefinition and cannot be null");
     }
     else
     {
         this.BookkeeperType = bookkeeperType;
     }
     // to ensure "invoice" is required (not null)
     if (invoice == null)
     {
         throw new InvalidDataException("invoice is a required property for KapiBookkeepersUpdateReqDefinition and cannot be null");
     }
     else
     {
         this.Invoice = invoice;
     }
     // to ensure "vendorID" is required (not null)
     if (vendorID == null)
     {
         throw new InvalidDataException("vendorID is a required property for KapiBookkeepersUpdateReqDefinition and cannot be null");
     }
     else
     {
         this.VendorID = vendorID;
     }
     this.AuditID       = auditID;
     this.AuditLog      = auditLog;
     this.DryRun        = dryRun;
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
 }
Exemplo n.º 25
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiPusherPushReq" /> class.
 /// </summary>
 /// <param name="accountID">accountID.</param>
 /// <param name="alert">alert.</param>
 /// <param name="alertBody">alertBody (required).</param>
 /// <param name="alertKey">alertKey.</param>
 /// <param name="alertParams">alertParams.</param>
 /// <param name="badge">badge.</param>
 /// <param name="callID">callID.</param>
 /// <param name="endpointID">endpointID.</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="expires">expires.</param>
 /// <param name="payload">payload.</param>
 /// <param name="queue">queue.</param>
 /// <param name="sound">sound.</param>
 /// <param name="tokenApp">tokenApp (required).</param>
 /// <param name="tokenID">tokenID (required).</param>
 /// <param name="tokenReg">tokenReg.</param>
 /// <param name="tokenType">tokenType (required).</param>
 public KapiPusherPushReq(string accountID = default(string), string alert = default(string), string alertBody = default(string), string alertKey = default(string), string alertParams = default(string), string badge = default(string), string callID = default(string), string endpointID = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string expires = default(string), string payload = default(string), string queue = default(string), string sound = default(string), string tokenApp = default(string), string tokenID = default(string), string tokenReg = default(string), string tokenType = default(string))
 {
     // to ensure "alertBody" is required (not null)
     if (alertBody == null)
     {
         throw new InvalidDataException("alertBody is a required property for KapiPusherPushReq and cannot be null");
     }
     else
     {
         this.AlertBody = alertBody;
     }
     // to ensure "tokenApp" is required (not null)
     if (tokenApp == null)
     {
         throw new InvalidDataException("tokenApp is a required property for KapiPusherPushReq and cannot be null");
     }
     else
     {
         this.TokenApp = tokenApp;
     }
     // to ensure "tokenID" is required (not null)
     if (tokenID == null)
     {
         throw new InvalidDataException("tokenID is a required property for KapiPusherPushReq and cannot be null");
     }
     else
     {
         this.TokenID = tokenID;
     }
     // to ensure "tokenType" is required (not null)
     if (tokenType == null)
     {
         throw new InvalidDataException("tokenType is a required property for KapiPusherPushReq and cannot be null");
     }
     else
     {
         this.TokenType = tokenType;
     }
     this.AccountID     = accountID;
     this.Alert         = alert;
     this.AlertKey      = alertKey;
     this.AlertParams   = alertParams;
     this.Badge         = badge;
     this.CallID        = callID;
     this.EndpointID    = endpointID;
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
     this.Expires       = expires;
     this.Payload       = payload;
     this.Queue         = queue;
     this.Sound         = sound;
     this.TokenReg      = tokenReg;
 }
Exemplo n.º 26
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiAuthnReq" /> class.
 /// </summary>
 /// <param name="authNonce">authNonce.</param>
 /// <param name="authRealm">authRealm (required).</param>
 /// <param name="authResponse">authResponse.</param>
 /// <param name="authUser">authUser (required).</param>
 /// <param name="callID">callID.</param>
 /// <param name="contact">contact.</param>
 /// <param name="customSIPHeaders">customSIPHeaders.</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="expires">expires.</param>
 /// <param name="from">from (required).</param>
 /// <param name="method">method.</param>
 /// <param name="origIP">origIP.</param>
 /// <param name="origPort">origPort.</param>
 /// <param name="switchHostname">switchHostname.</param>
 /// <param name="to">to (required).</param>
 /// <param name="userAgent">userAgent.</param>
 public KapiAuthnReq(string authNonce = default(string), string authRealm = default(string), string authResponse = default(string), string authUser = default(string), string callID = default(string), string contact = default(string), Object customSIPHeaders = default(Object), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string expires = default(string), string from = default(string), string method = default(string), string origIP = default(string), string origPort = default(string), string switchHostname = default(string), string to = default(string), string userAgent = default(string))
 {
     // to ensure "authRealm" is required (not null)
     if (authRealm == null)
     {
         throw new InvalidDataException("authRealm is a required property for KapiAuthnReq and cannot be null");
     }
     else
     {
         this.AuthRealm = authRealm;
     }
     // to ensure "authUser" is required (not null)
     if (authUser == null)
     {
         throw new InvalidDataException("authUser is a required property for KapiAuthnReq and cannot be null");
     }
     else
     {
         this.AuthUser = authUser;
     }
     // to ensure "from" is required (not null)
     if (from == null)
     {
         throw new InvalidDataException("from is a required property for KapiAuthnReq and cannot be null");
     }
     else
     {
         this.From = from;
     }
     // to ensure "to" is required (not null)
     if (to == null)
     {
         throw new InvalidDataException("to is a required property for KapiAuthnReq and cannot be null");
     }
     else
     {
         this.To = to;
     }
     this.AuthNonce        = authNonce;
     this.AuthResponse     = authResponse;
     this.CallID           = callID;
     this.Contact          = contact;
     this.CustomSIPHeaders = customSIPHeaders;
     this.EventCategory    = eventCategory;
     this.EventName        = eventName;
     this.Expires          = expires;
     this.Method           = method;
     this.OrigIP           = origIP;
     this.OrigPort         = origPort;
     this.SwitchHostname   = switchHostname;
     this.UserAgent        = userAgent;
 }
Exemplo n.º 27
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiNotificationsVoicemailFull" /> class.
 /// </summary>
 /// <param name="accountDB">accountDB.</param>
 /// <param name="accountID">accountID (required).</param>
 /// <param name="attachmentURL">attachmentURL.</param>
 /// <param name="bcc">bcc.</param>
 /// <param name="cc">cc.</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="from">from.</param>
 /// <param name="hTML">hTML.</param>
 /// <param name="maxMessageCount">maxMessageCount (required).</param>
 /// <param name="messageCount">messageCount (required).</param>
 /// <param name="preview">preview.</param>
 /// <param name="replyTo">replyTo.</param>
 /// <param name="subject">subject.</param>
 /// <param name="text">text.</param>
 /// <param name="to">to.</param>
 /// <param name="voicemailBox">voicemailBox (required).</param>
 public KapiNotificationsVoicemailFull(string accountDB = default(string), string accountID = default(string), string attachmentURL = default(string), string bcc = default(string), string cc = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string from = default(string), string hTML = default(string), string maxMessageCount = default(string), string messageCount = default(string), string preview = default(string), string replyTo = default(string), string subject = default(string), string text = default(string), string to = default(string), string voicemailBox = default(string))
 {
     // to ensure "accountID" is required (not null)
     if (accountID == null)
     {
         throw new InvalidDataException("accountID is a required property for KapiNotificationsVoicemailFull and cannot be null");
     }
     else
     {
         this.AccountID = accountID;
     }
     // to ensure "maxMessageCount" is required (not null)
     if (maxMessageCount == null)
     {
         throw new InvalidDataException("maxMessageCount is a required property for KapiNotificationsVoicemailFull and cannot be null");
     }
     else
     {
         this.MaxMessageCount = maxMessageCount;
     }
     // to ensure "messageCount" is required (not null)
     if (messageCount == null)
     {
         throw new InvalidDataException("messageCount is a required property for KapiNotificationsVoicemailFull and cannot be null");
     }
     else
     {
         this.MessageCount = messageCount;
     }
     // to ensure "voicemailBox" is required (not null)
     if (voicemailBox == null)
     {
         throw new InvalidDataException("voicemailBox is a required property for KapiNotificationsVoicemailFull and cannot be null");
     }
     else
     {
         this.VoicemailBox = voicemailBox;
     }
     this.AccountDB     = accountDB;
     this.AttachmentURL = attachmentURL;
     this.Bcc           = bcc;
     this.Cc            = cc;
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
     this.From          = from;
     this.HTML          = hTML;
     this.Preview       = preview;
     this.ReplyTo       = replyTo;
     this.Subject       = subject;
     this.Text          = text;
     this.To            = to;
 }
Exemplo n.º 28
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiAsrReq" /> class.
 /// </summary>
 /// <param name="aSRAccountID">aSRAccountID (required).</param>
 /// <param name="aSRAccountPassword">aSRAccountPassword (required).</param>
 /// <param name="aSREndpoint">aSREndpoint (required).</param>
 /// <param name="callID">callID (required).</param>
 /// <param name="controlQueue">controlQueue (required).</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="language">language.</param>
 /// <param name="streamResponse">streamResponse.</param>
 public KapiAsrReq(string aSRAccountID = default(string), string aSRAccountPassword = default(string), string aSREndpoint = default(string), string callID = default(string), string controlQueue = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string language = default(string), bool?streamResponse = default(bool?))
 {
     // to ensure "aSRAccountID" is required (not null)
     if (aSRAccountID == null)
     {
         throw new InvalidDataException("aSRAccountID is a required property for KapiAsrReq and cannot be null");
     }
     else
     {
         this.ASRAccountID = aSRAccountID;
     }
     // to ensure "aSRAccountPassword" is required (not null)
     if (aSRAccountPassword == null)
     {
         throw new InvalidDataException("aSRAccountPassword is a required property for KapiAsrReq and cannot be null");
     }
     else
     {
         this.ASRAccountPassword = aSRAccountPassword;
     }
     // to ensure "aSREndpoint" is required (not null)
     if (aSREndpoint == null)
     {
         throw new InvalidDataException("aSREndpoint is a required property for KapiAsrReq and cannot be null");
     }
     else
     {
         this.ASREndpoint = aSREndpoint;
     }
     // to ensure "callID" is required (not null)
     if (callID == null)
     {
         throw new InvalidDataException("callID is a required property for KapiAsrReq and cannot be null");
     }
     else
     {
         this.CallID = callID;
     }
     // to ensure "controlQueue" is required (not null)
     if (controlQueue == null)
     {
         throw new InvalidDataException("controlQueue is a required property for KapiAsrReq and cannot be null");
     }
     else
     {
         this.ControlQueue = controlQueue;
     }
     this.EventCategory  = eventCategory;
     this.EventName      = eventName;
     this.Language       = language;
     this.StreamResponse = streamResponse;
 }
Exemplo n.º 29
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiNotificationsOutboundSmtpFaxError" /> class.
 /// </summary>
 /// <param name="accountDB">accountDB.</param>
 /// <param name="accountID">accountID (required).</param>
 /// <param name="attachmentURL">attachmentURL.</param>
 /// <param name="bcc">bcc.</param>
 /// <param name="cc">cc.</param>
 /// <param name="errors">errors (required).</param>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="faxFromEmail">faxFromEmail (required).</param>
 /// <param name="faxToEmail">faxToEmail.</param>
 /// <param name="faxBoxID">faxBoxID.</param>
 /// <param name="faxBoxName">faxBoxName.</param>
 /// <param name="faxBoxTimezone">faxBoxTimezone.</param>
 /// <param name="from">from.</param>
 /// <param name="hTML">hTML.</param>
 /// <param name="number">number.</param>
 /// <param name="originalNumber">originalNumber.</param>
 /// <param name="ownerID">ownerID.</param>
 /// <param name="preview">preview.</param>
 /// <param name="replyTo">replyTo.</param>
 /// <param name="subject">subject.</param>
 /// <param name="text">text.</param>
 /// <param name="timestamp">timestamp.</param>
 /// <param name="to">to.</param>
 public KapiNotificationsOutboundSmtpFaxError(string accountDB = default(string), string accountID = default(string), string attachmentURL = default(string), string bcc = default(string), string cc = default(string), string errors = default(string), EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string faxFromEmail = default(string), string faxToEmail = default(string), string faxBoxID = default(string), string faxBoxName = default(string), string faxBoxTimezone = default(string), string from = default(string), string hTML = default(string), string number = default(string), string originalNumber = default(string), string ownerID = default(string), string preview = default(string), string replyTo = default(string), string subject = default(string), string text = default(string), string timestamp = default(string), string to = default(string))
 {
     // to ensure "accountID" is required (not null)
     if (accountID == null)
     {
         throw new InvalidDataException("accountID is a required property for KapiNotificationsOutboundSmtpFaxError and cannot be null");
     }
     else
     {
         this.AccountID = accountID;
     }
     // to ensure "errors" is required (not null)
     if (errors == null)
     {
         throw new InvalidDataException("errors is a required property for KapiNotificationsOutboundSmtpFaxError and cannot be null");
     }
     else
     {
         this.Errors = errors;
     }
     // to ensure "faxFromEmail" is required (not null)
     if (faxFromEmail == null)
     {
         throw new InvalidDataException("faxFromEmail is a required property for KapiNotificationsOutboundSmtpFaxError and cannot be null");
     }
     else
     {
         this.FaxFromEmail = faxFromEmail;
     }
     this.AccountDB      = accountDB;
     this.AttachmentURL  = attachmentURL;
     this.Bcc            = bcc;
     this.Cc             = cc;
     this.EventCategory  = eventCategory;
     this.EventName      = eventName;
     this.FaxToEmail     = faxToEmail;
     this.FaxBoxID       = faxBoxID;
     this.FaxBoxName     = faxBoxName;
     this.FaxBoxTimezone = faxBoxTimezone;
     this.From           = from;
     this.HTML           = hTML;
     this.Number         = number;
     this.OriginalNumber = originalNumber;
     this.OwnerID        = ownerID;
     this.Preview        = preview;
     this.ReplyTo        = replyTo;
     this.Subject        = subject;
     this.Text           = text;
     this.Timestamp      = timestamp;
     this.To             = to;
 }
Exemplo n.º 30
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KapiTasksLookupResp" /> class.
 /// </summary>
 /// <param name="eventCategory">eventCategory.</param>
 /// <param name="eventName">eventName.</param>
 /// <param name="help">help (required).</param>
 public KapiTasksLookupResp(EventCategoryEnum?eventCategory = default(EventCategoryEnum?), EventNameEnum?eventName = default(EventNameEnum?), string help = default(string))
 {
     // to ensure "help" is required (not null)
     if (help == null)
     {
         throw new InvalidDataException("help is a required property for KapiTasksLookupResp and cannot be null");
     }
     else
     {
         this.Help = help;
     }
     this.EventCategory = eventCategory;
     this.EventName     = eventName;
 }