コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportSchedule" /> class.
 /// </summary>
 /// <param name="Name">Name.</param>
 /// <param name="QuartzCronExpression">Quartz Cron Expression (required).</param>
 /// <param name="NextFireTime">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z.</param>
 /// <param name="DateCreated">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z.</param>
 /// <param name="DateModified">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z.</param>
 /// <param name="Description">Description.</param>
 /// <param name="TimeZone">TimeZone.</param>
 /// <param name="TimePeriod">TimePeriod.</param>
 /// <param name="Interval">Interval. Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss (required).</param>
 /// <param name="ReportFormat">ReportFormat.</param>
 /// <param name="Locale">Locale.</param>
 /// <param name="Enabled">Enabled.</param>
 /// <param name="ReportId">Report ID (required).</param>
 /// <param name="Parameters">Parameters.</param>
 /// <param name="LastRun">LastRun.</param>
 public ReportSchedule(string Name = null, string QuartzCronExpression = null, DateTime?NextFireTime = null, DateTime?DateCreated = null, DateTime?DateModified = null, string Description = null, string TimeZone = null, string TimePeriod = null, string Interval = null, string ReportFormat = null, string Locale = null, bool?Enabled = null, string ReportId = null, Dictionary <string, Object> Parameters = null, ReportRunEntry LastRun = null)
 {
     this.Name = Name;
     this.QuartzCronExpression = QuartzCronExpression;
     this.NextFireTime         = NextFireTime;
     this.DateCreated          = DateCreated;
     this.DateModified         = DateModified;
     this.Description          = Description;
     this.TimeZone             = TimeZone;
     this.TimePeriod           = TimePeriod;
     this.Interval             = Interval;
     this.ReportFormat         = ReportFormat;
     this.Locale     = Locale;
     this.Enabled    = Enabled;
     this.ReportId   = ReportId;
     this.Parameters = Parameters;
     this.LastRun    = LastRun;
 }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ReportSchedule" /> class.
        /// </summary>



        /// <param name="Name">Name.</param>



        /// <param name="QuartzCronExpression">Quartz Cron Expression (required).</param>



        /// <param name="NextFireTime">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>



        /// <param name="DateCreated">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>



        /// <param name="DateModified">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>



        /// <param name="Description">Description.</param>



        /// <param name="TimeZone">TimeZone.</param>



        /// <param name="TimePeriod">TimePeriod.</param>



        /// <param name="Interval">Interval. Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss.</param>



        /// <param name="ReportFormat">ReportFormat.</param>



        /// <param name="Locale">Locale.</param>



        /// <param name="Enabled">Enabled.</param>



        /// <param name="ReportId">Report ID (required).</param>



        /// <param name="Parameters">Parameters.</param>



        /// <param name="LastRun">LastRun.</param>



        public ReportSchedule(string Name = null, string QuartzCronExpression = null, DateTime?NextFireTime = null, DateTime?DateCreated = null, DateTime?DateModified = null, string Description = null, string TimeZone = null, string TimePeriod = null, string Interval = null, string ReportFormat = null, string Locale = null, bool?Enabled = null, string ReportId = null, Dictionary <string, Object> Parameters = null, ReportRunEntry LastRun = null)
        {
            // to ensure "QuartzCronExpression" is required (not null)
            if (QuartzCronExpression == null)
            {
                throw new InvalidDataException("QuartzCronExpression is a required property for ReportSchedule and cannot be null");
            }
            else
            {
                this.QuartzCronExpression = QuartzCronExpression;
            }



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



            this.Name = Name;



            this.NextFireTime = NextFireTime;



            this.DateCreated = DateCreated;



            this.DateModified = DateModified;



            this.Description = Description;



            this.TimeZone = TimeZone;



            this.TimePeriod = TimePeriod;



            this.Interval = Interval;



            this.ReportFormat = ReportFormat;



            this.Locale = Locale;



            this.Enabled = Enabled;



            this.Parameters = Parameters;



            this.LastRun = LastRun;
        }