Beispiel #1
0
        public Result(IRunnerArgs args)
        {
            Started    = DateTime.Now;
            RunnerArgs = args;
            switch (args)
            {
            case EmptyArgs e:
                RunnerType  = RunnerType.Countries;
                Disposition = $"";
                break;

            case CountryIdArgs c:
                RunnerType  = RunnerType.Leagues;
                Disposition = $"C:{c.CountryId}";
                break;

            case CountryIdLeagueIdArgs c:
                RunnerType  = RunnerType.Seasons;
                Disposition = $"C:{c.CountryId} L:{c.LeagueId}";
                break;

            case CountryIdLeagueIdSeasonIdArgs c:
                RunnerType  = RunnerType.StagesGamesTeams;
                Disposition = $"C:{c.CountryId} L:{c.LeagueId} S:{c.SeasonId}";
                break;

            case DateArgs d:
                RunnerType  = RunnerType.DayStats;
                Disposition = $"{d.Date.ToShortDateString()}";
                break;
            }
        }
Beispiel #2
0
 public Result(IRunnerArgs args, RunnerType type, string disposition) : this(args, type)
 {
     Disposition = disposition;
 }
Beispiel #3
0
 public Result(IRunnerArgs args, RunnerType type) : this(args)
 {
     RunnerType = type;
 }