// Decompiled with JetBrains decompiler
// Type: TaskScheduler.DailyTrigger
// Assembly: AutoKMS, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: D1CED9E3-1FC7-49B8-B3AC-44976AB7F6E4
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00000-msil\HackTool.Win32.KMSAuto.i-f317ba4d4051fad64a0aa45b587fa3dcea795bac30acec2872779abe31a07cbe.exe

using TaskSchedulerInterop;

namespace TaskScheduler
{
  public class DailyTrigger : StartableTrigger
  {
    public DailyTrigger(short hour, short minutes, short daysInterval)
    {
      this.SetStartTime((ushort) hour, (ushort) minutes);
      this.taskTrigger.Type = TaskTriggerType.TIME_TRIGGER_DAILY;
      this.taskTrigger.Data.daily.DaysInterval = (ushort) daysInterval;
    }

    public DailyTrigger(short hour, short minutes)
      : this(hour, minutes, (short) 1)
    {
    }

    internal DailyTrigger(ITaskTrigger iTrigger)
      : base(iTrigger)
    {
    }

    public short DaysInterval
    {
      get => (short) this.taskTrigger.Data.daily.DaysInterval;
      set
      {
        this.taskTrigger.Data.daily.DaysInterval = (ushort) value;
        this.SyncTrigger();
      }
    }
  }
}
