예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SendSmartSmsAllOf2" /> class.
 /// </summary>
 /// <param name="segments">segments.</param>
 public SendSmartSmsAllOf2(SmartSmsSegmentsActionSend segments = default(SmartSmsSegmentsActionSend))
 {
     this.Segments = segments;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SendSmartSms" /> class.
 /// </summary>
 /// <param name="segments">segments.</param>
 public SendSmartSms(SmartSmsSegmentsActionSend segments = default(SmartSmsSegmentsActionSend), LimitHourActionSendLimitHour limitHour = default(LimitHourActionSendLimitHour), List <int?> notify = default(List <int?>)) : base(limitHour)
 {
     this.Segments = segments;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="CampaignSmartSmsSendRequest" /> class.
        /// </summary>
        /// <param name="listId">listId (required).</param>
        /// <param name="destinationField">Smart SMS campaign destination field. Must be &#39;cellphone&#39; or the other field ID of type                                 cellphone (required).</param>
        /// <param name="segments">segments (required).</param>
        /// <param name="limitHour">limitHour.</param>
        /// <param name="notify">Array of IDs of the users to notify.</param>
        /// <param name="scheduleDate">The date and time.</param>
        public CampaignSmartSmsSendRequest(int listId = default(int), string destinationField = default(string), SmartSmsSegmentsActionSend segments = default(SmartSmsSegmentsActionSend), LimitHourActionSendLimitHour limitHour = default(LimitHourActionSendLimitHour), 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 CampaignSmartSmsSendRequest 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 CampaignSmartSmsSendRequest 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 CampaignSmartSmsSendRequest and cannot be null");
            }
            else
            {
                this.Segments = segments;
            }

            this.LimitHour    = limitHour;
            this.Notify       = notify;
            this.ScheduleDate = scheduleDate;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="CampaignSmartSmsSendRequest" /> class.
 /// </summary>
 public CampaignSmartSmsSendRequest(int?listId = default(int?), string destinationField = default(string), SmartSmsSegmentsActionSend segments = default(SmartSmsSegmentsActionSend), LimitHourActionSendLimitHour limitHour = default(LimitHourActionSendLimitHour), List <int?> notify = default(List <int?>), DateTime?scheduleDate = default(DateTime?))
 {
 }