Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CampaignPushSendRequest" /> class.
        /// </summary>
        /// <param name="appId">appId (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 CampaignPushSendRequest(string appId = default(string), OSegmentsWithoutContactActionSend segments = default(OSegmentsWithoutContactActionSend), List <int> notify = default(List <int>), DateTime scheduleDate = default(DateTime))
        {
            // to ensure "appId" is required (not null)
            if (appId == null)
            {
                throw new InvalidDataException("appId is a required property for CampaignPushSendRequest and cannot be null");
            }
            else
            {
                this.AppId = appId;
            }

            // to ensure "segments" is required (not null)
            if (segments == null)
            {
                throw new InvalidDataException("segments is a required property for CampaignPushSendRequest and cannot be null");
            }
            else
            {
                this.Segments = segments;
            }

            this.Notify       = notify;
            this.ScheduleDate = scheduleDate;
        }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SendPush" /> class.
        /// </summary>
        /// <param name="appId">appId (required).</param>
        /// <param name="segments">segments (required).</param>
        /// <param name="notify">Array of IDs of the users to notify.</param>
        public SendPush(string appId = default(string), OSegmentsWithoutContactActionSend segments = default(OSegmentsWithoutContactActionSend), List <int> notify = default(List <int>))
        {
            // to ensure "appId" is required (not null)
            if (appId == null)
            {
                throw new InvalidDataException("appId is a required property for SendPush and cannot be null");
            }
            else
            {
                this.AppId = appId;
            }

            // to ensure "segments" is required (not null)
            if (segments == null)
            {
                throw new InvalidDataException("segments is a required property for SendPush and cannot be null");
            }
            else
            {
                this.Segments = segments;
            }

            this.Notify = notify;
        }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CampaignWebPushScheduleRequest" /> class.
 /// </summary>
 /// <param name="scheduleDate">The date and time.</param>
 public CampaignWebPushScheduleRequest(DateTime?scheduleDate = default(DateTime?), int?siteId = default(int?), OSegmentsWithoutContactActionSend segments = default(OSegmentsWithoutContactActionSend), List <int?> notify = default(List <int?>)) : base(siteId)
 {
     this.ScheduleDate = scheduleDate;
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SendPush" /> class.
 /// </summary>
 /// <param name="appId">appId.</param>
 public SendPush(int?appId = default(int?), OSegmentsWithoutContactActionSend segments = default(OSegmentsWithoutContactActionSend), List <int?> notify = default(List <int?>)) : base(segments)
 {
     this.AppId = appId;
 }
Пример #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SendWebPush" /> class.
 /// </summary>
 /// <param name="siteId">siteId.</param>
 public SendWebPush(int?siteId = default(int?), OSegmentsWithoutContactActionSend segments = default(OSegmentsWithoutContactActionSend), List <int?> notify = default(List <int?>)) : base(segments)
 {
     this.SiteId = siteId;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SegmentsWithoutContactActionSend" /> class.
 /// </summary>
 /// <param name="segments">segments.</param>
 public SegmentsWithoutContactActionSend(OSegmentsWithoutContactActionSend segments = default(OSegmentsWithoutContactActionSend))
 {
     this.Segments = segments;
 }
Пример #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CampaignPushSendRequest" /> class.
 /// </summary>
 public CampaignPushSendRequest(int?appId = default(int?), OSegmentsWithoutContactActionSend segments = default(OSegmentsWithoutContactActionSend), List <int?> notify = default(List <int?>), DateTime?scheduleDate = default(DateTime?))
 {
 }