コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SmartSmsCampaignPatchRequest" /> class.
 /// </summary>
 /// <param name="internalName">SMS campaign internal name.</param>
 /// <param name="campaignContent">campaignContent.</param>
 /// <param name="pageContent">pageContent.</param>
 /// <param name="senderId">senderId.</param>
 /// <param name="cnameId">cnameId.</param>
 /// <param name="options">options.</param>
 public SmartSmsCampaignPatchRequest(string internalName = default(string), SmartSmsCampaignPatchRequestCampaignContent campaignContent = default(SmartSmsCampaignPatchRequestCampaignContent), SmartSmsCampaignPatchRequestPageContent pageContent = default(SmartSmsCampaignPatchRequestPageContent), int senderId = default(int), int cnameId = default(int), CampaignSmsOptions options = default(CampaignSmsOptions))
 {
     this.InternalName    = internalName;
     this.CampaignContent = campaignContent;
     this.PageContent     = pageContent;
     this.SenderId        = senderId;
     this.CnameId         = cnameId;
     this.Options         = options;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SmsCampaignPatchRequest" /> class.
 /// </summary>
 /// <param name="internalName">SMS campaign internal name.</param>
 /// <param name="content">content.</param>
 /// <param name="senderId">senderId.</param>
 /// <param name="options">options.</param>
 public SmsCampaignPatchRequest(string internalName = default(string), SmsCampaignPatchRequestContent content = default(SmsCampaignPatchRequestContent), int?senderId = default(int?), CampaignSmsOptions options = default(CampaignSmsOptions))
 {
     this.InternalName = internalName;
     this.Content      = content;
     this.SenderId     = senderId;
     this.Options      = options;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SmsCampaign" /> class.
 /// </summary>
 /// <param name="listId">listId (required).</param>
 /// <param name="internalName">SMS campaign internal name (required).</param>
 /// <param name="content">content (required).</param>
 /// <param name="senderId">senderId.</param>
 /// <param name="options">options.</param>
 public SmsCampaign(int?listId = default(int?), string internalName = default(string), CampaignSmsContent content = default(CampaignSmsContent), int?senderId = default(int?), CampaignSmsOptions options = default(CampaignSmsOptions))
 {
     // to ensure "listId" is required (not null)
     if (listId == null)
     {
         throw new InvalidDataException("listId is a required property for SmsCampaign and cannot be null");
     }
     else
     {
         this.ListId = listId;
     }
     // to ensure "internalName" is required (not null)
     if (internalName == null)
     {
         throw new InvalidDataException("internalName is a required property for SmsCampaign and cannot be null");
     }
     else
     {
         this.InternalName = internalName;
     }
     // to ensure "content" is required (not null)
     if (content == null)
     {
         throw new InvalidDataException("content is a required property for SmsCampaign and cannot be null");
     }
     else
     {
         this.Content = content;
     }
     this.SenderId = senderId;
     this.Options  = options;
 }