Ejemplo n.º 1
0
 public GetEngGroupsCommand(IBotDataStorage storage, IScheduleService scheduler, IKeyboardsFactory keyboards) :
     base("getengs")
 {
     this.storage   = storage;
     this.scheduler = scheduler;
     this.keyboards = new EngKeyboardDecorator(keyboards);
 }
Ejemplo n.º 2
0
 public SetUpGroupCommand(IBotDataStorage storage, IScheduleService scheduler, IKeyboardsFactory keyboards,
                          string command) : base(command)
 {
     this.Storage   = storage;
     this.Scheduler = scheduler;
     this.Keyboards = keyboards;
 }
Ejemplo n.º 3
0
 public DistributionCommand(INotifiactionSender notificator, IBotDataStorage storage, IKeyboardsFactory keyboards, SecretKey secret, ILogger <DistributionCommand> logger = null) : base("sendsudo")
 {
     this.notificator = notificator;
     this.storage     = storage;
     this.keyboards   = keyboards;
     this.secret      = secret;
     this.logger      = logger;
 }
Ejemplo n.º 4
0
 protected SetUpElectiveGroupCommand(ScheduleGroupType type, IBotDataStorage storage, IScheduleService scheduler,
                                     IKeyboardsFactory keyboards,
                                     string command, ILogger logger = null) : base(command)
 {
     this.GroupType = type;
     this.Storage   = storage;
     this.Scheduler = scheduler;
     this.Keyboards = keyboards;
     this.logger    = logger;
     Cache          = new Dictionary <long, ValueTuple <IScheduleGroup, IScheduleGroup> >();
 }
Ejemplo n.º 5
0
 protected GetElectiveGroupsCommand(ScheduleGroupType type, string triggerName, string responseText,
                                    string notFoundResponseText, IBotDataStorage storage, IScheduleService scheduler,
                                    IKeyboardsFactory keyboards,
                                    string command) :
     base(command)
 {
     GroupType                 = type;
     this.TriggerName          = triggerName;
     this.Storage              = storage;
     this.Scheduler            = scheduler;
     ResponseText              = responseText;
     this.NotFoundResponseText = notFoundResponseText;
     this.Keyboards            = new AdditionalCoursesKeyboardDecorator(keyboards);
 }
Ejemplo n.º 6
0
 public GetForTomorrowCommand(IScheduleService scheduler, IBotDataStorage storage) : base(name: "tomorrow", scheduler: scheduler, storage: storage)
 {
 }
Ejemplo n.º 7
0
 public NotFoundGroupCommand(IBotDataStorage storage, IScheduleService scheduler,
                             IKeyboardsFactory keyboards) : base(storage, scheduler, keyboards, "notfound")
 {
 }
Ejemplo n.º 8
0
 public SetUpAcademicGroupCommand(IBotDataStorage storage, IScheduleService scheduler,
                                  IKeyboardsFactory keyboards) : base(storage, scheduler, keyboards, "setgroup")
 {
 }
Ejemplo n.º 9
0
 public SetUpScienticGroupCommand(IBotDataStorage storage, IScheduleService scheduler,
                                  IKeyboardsFactory keyboards, ILogger <SetUpScienticGroupCommand> logger = null) :
     base(ScheduleGroupType.PickedScientic, storage, scheduler, keyboards, "setsci", logger)
 {
 }
Ejemplo n.º 10
0
 public GetScienticGroupsCommand(IBotDataStorage storage, IScheduleService scheduler,
                                 IKeyboardsFactory keyboards) : base(ScheduleGroupType.PickedScientic, "sci", "Выбери свой научный трек.", "У тебя не нашлось научного трека, прости. Хотя, может это к лучшему?",
                                                                     storage, scheduler, keyboards, "getscis")
 {
 }
Ejemplo n.º 11
0
 public SetUpEngGroupCommand(IBotDataStorage storage, IScheduleService scheduler, IKeyboardsFactory keyboards) :
     base(storage, scheduler, keyboards, "seteng")
 {
 }
Ejemplo n.º 12
0
 public SetUpTechGroupCommand(IBotDataStorage storage, IScheduleService scheduler,
                              IKeyboardsFactory keyboards, ILogger <SetUpTechGroupCommand> logger = null) :
     base(ScheduleGroupType.PickedTech, storage, scheduler, keyboards, "settech", logger)
 {
 }
Ejemplo n.º 13
0
 public GetTechGroupsCommand(IBotDataStorage storage, IScheduleService scheduler,
                             IKeyboardsFactory keyboards) : base(ScheduleGroupType.PickedTech, "tech", "Выбери свой технологический трек.", "У тебя не нашлось технологического трека, прости. Хотя, может это к лучшему?",
                                                                 storage, scheduler, keyboards, "gettechs")
 {
 }
Ejemplo n.º 14
0
 public GetForWeekCommand(IScheduleService scheduler, IBotDataStorage storage) : base("week")
 {
     Scheduler = scheduler;
     Storage   = storage;
 }
Ejemplo n.º 15
0
 public AbstractGetForCommand(string name, IScheduleService scheduler, IBotDataStorage storage) : base(name)
 {
     Scheduler = scheduler;
     Storage   = storage;
 }