Пример #1
0
 public ScoreboardModel(
     int cid,
     IReadOnlyDictionary <int, IScoreboardRow> data,
     IReadOnlyDictionary <int, Category> categories,
     IReadOnlyDictionary <int, Affiliation> affiliations,
     ProblemCollection problems,
     IContestTime time,
     IRankingStrategy rankingStrategy)
     : this(
         cid,
         rankingStrategy,
         time,
         data,
         categories,
         affiliations,
         problems,
         new SortOrderLookup(categories, data, true, rankingStrategy),
         new SortOrderLookup(categories, data, false, rankingStrategy))
 {
 }
Пример #2
0
 public ScoreboardModel(
     int cid,
     IRankingStrategy rule,
     IContestTime time,
     IReadOnlyDictionary <int, IScoreboardRow> data,
     IReadOnlyDictionary <int, Category> categories,
     IReadOnlyDictionary <int, Affiliation> affiliations,
     ProblemCollection problems,
     SortOrderLookup @public,
     SortOrderLookup restricted)
 {
     ContestId       = cid;
     RankingStrategy = rule;
     Data            = data;
     RefreshTime     = DateTimeOffset.Now;
     Categories      = categories;
     Affiliations    = affiliations;
     Public          = @public;
     Restricted      = restricted;
     Problems        = problems;
     ContestTime     = time;
 }