/// <summary> /// Initializes a new instance of the <see cref="Schedule" /> class. /// </summary> /// <param name="installedAppId">The ID of the installed app..</param> /// <param name="locationId">The ID of the location the installed app is in..</param> /// <param name="userUuid">The UUID of the user who created the schedule..</param> /// <param name="scheduledExecutions">list of scheduled execution times in millis from jan 1 1970 UTC.</param> /// <param name="name">The unique per installed app name of the schedule. (required).</param> /// <param name="cron">cron.</param> public Schedule(Guid installedAppId = default(Guid), Guid locationId = default(Guid), Guid userUuid = default(Guid), List <long> scheduledExecutions = default(List <long>), string name = default(string), CronSchedule cron = default(CronSchedule)) { // to ensure "name" is required (not null) if (name == null) { throw new ArgumentNullException("name is a required property for Schedule and cannot be null"); } this.Name = name; this.InstalledAppId = installedAppId; this.LocationId = locationId; this.UserUuid = userUuid; this.ScheduledExecutions = scheduledExecutions; this.Cron = cron; }
/// <summary> /// Initializes a new instance of the <see cref="ScheduleRequest" /> class. /// </summary> /// <param name="once">once.</param> /// <param name="name">The unique per installed app name of the schedule. (required).</param> /// <param name="cron">cron.</param> public ScheduleRequest(OnceSchedule once = default(OnceSchedule), string name = default(string), CronSchedule cron = default(CronSchedule)) { // to ensure "name" is required (not null) if (name == null) { throw new ArgumentNullException("name is a required property for ScheduleRequest and cannot be null"); } this.Name = name; this.Once = once; this.Cron = cron; }