예제 #1
0
 public FullBoardViewModel(ScoreboardModel scoreboard, bool isPublic, bool showHidden = true)
     : base(scoreboard)
 {
     UpdateTime           = scoreboard.RefreshTime;
     Categories           = scoreboard.Categories;
     Affiliations         = scoreboard.Affiliations;
     IsPublic             = isPublic;
     RankCaches           = isPublic ? scoreboard.Public : scoreboard.Restricted;
     ShowHiddenCategories = showHidden;
 }
예제 #2
0
 protected BoardViewModel(ScoreboardModel scb)
     : this(scb.ContestId, scb.RankingStrategy, scb.Problems, scb.ContestTime)
 {
 }