Пример #1
0
 public CheckerStartedRequest() : base(CheckerOpcode.Started)
 {
     _progress = new CheckerProgress()
     {
         Total = Server.Bots.Count
     };
 }
Пример #2
0
        public Checker()
        {
            Progress = new CheckerProgress
            {
                Total = Server.Bots.Count
            };

            int i = 1;

            while (true)
            {
                _checkDir = "Checker-results " + i;

                if (!Directory.Exists(_checkDir))
                {
                    Directory.CreateDirectory(_checkDir);

                    break;
                }
                else
                {
                    i++;
                }
            }
        }
Пример #3
0
 public BotCheckedRequest(RaidBotClient client) : base(CheckerOpcode.BotChecked)
 {
     Bot      = BasicBotInfo.FromClient(client);
     Progress = new CheckerProgress();
 }
Пример #4
0
 public CheckerResumeRequest(CheckerProgress progress) : base(CheckerOpcode.Resume)
 {
     Progress = progress;
 }