/// <summary> /// Initializes a new instance of the <see cref="SendSms" /> class. /// </summary> /// <param name="segments">segments.</param> public SendSms(SmsSegmentsActionSend segments = default(SmsSegmentsActionSend), List <int?> notify = default(List <int?>)) : base(notify) { this.Segments = segments; }
/// <summary> /// Initializes a new instance of the <see cref="CampaignSmsSendRequest" /> class. /// </summary> /// <param name="listId">listId (required).</param> /// <param name="destinationField">SMS campaign destination field. Must be 'cellphone' or the other field ID of type cellphone (required).</param> /// <param name="segments">segments (required).</param> /// <param name="notify">Array of IDs of the users to notify.</param> /// <param name="scheduleDate">The date and time.</param> public CampaignSmsSendRequest(int listId = default(int), string destinationField = default(string), SmsSegmentsActionSend segments = default(SmsSegmentsActionSend), List <int> notify = default(List <int>), DateTime scheduleDate = default(DateTime)) { // to ensure "listId" is required (not null) if (listId == null) { throw new InvalidDataException("listId is a required property for CampaignSmsSendRequest and cannot be null"); } else { this.ListId = listId; } // to ensure "destinationField" is required (not null) if (destinationField == null) { throw new InvalidDataException("destinationField is a required property for CampaignSmsSendRequest and cannot be null"); } else { this.DestinationField = destinationField; } // to ensure "segments" is required (not null) if (segments == null) { throw new InvalidDataException("segments is a required property for CampaignSmsSendRequest and cannot be null"); } else { this.Segments = segments; } this.Notify = notify; this.ScheduleDate = scheduleDate; }
/// <summary> /// Initializes a new instance of the <see cref="SendSms" /> class. /// </summary> /// <param name="listId">listId (required).</param> /// <param name="destinationField">SMS campaign destination field. Must be 'cellphone' or the other field ID of type cellphone (required).</param> /// <param name="segments">segments (required).</param> /// <param name="notify">Array of IDs of the users to notify.</param> public SendSms(int listId = default(int), string destinationField = default(string), SmsSegmentsActionSend segments = default(SmsSegmentsActionSend), List <int> notify = default(List <int>)) { // to ensure "listId" is required (not null) if (listId == null) { throw new InvalidDataException("listId is a required property for SendSms and cannot be null"); } else { this.ListId = listId; } // to ensure "destinationField" is required (not null) if (destinationField == null) { throw new InvalidDataException("destinationField is a required property for SendSms and cannot be null"); } else { this.DestinationField = destinationField; } // to ensure "segments" is required (not null) if (segments == null) { throw new InvalidDataException("segments is a required property for SendSms and cannot be null"); } else { this.Segments = segments; } this.Notify = notify; }
/// <summary> /// Initializes a new instance of the <see cref="CampaignSmsSendRequest" /> class. /// </summary> public CampaignSmsSendRequest(int?listId = default(int?), string destinationField = default(string), SmsSegmentsActionSend segments = default(SmsSegmentsActionSend), List <int?> notify = default(List <int?>), DateTime?scheduleDate = default(DateTime?)) { }
/// <summary> /// Initializes a new instance of the <see cref="SendSmsAllOf1" /> class. /// </summary> /// <param name="segments">segments.</param> public SendSmsAllOf1(SmsSegmentsActionSend segments = default(SmsSegmentsActionSend)) { this.Segments = segments; }
/// <summary> /// Initializes a new instance of the <see cref="CampaignSmsScheduleRequest" /> class. /// </summary> /// <param name="scheduleDate">The date and time.</param> public CampaignSmsScheduleRequest(DateTime?scheduleDate = default(DateTime?), int?listId = default(int?), string destinationField = default(string), SmsSegmentsActionSend segments = default(SmsSegmentsActionSend), List <int?> notify = default(List <int?>)) : base(segments) { this.ScheduleDate = scheduleDate; }