コード例 #1
0
 public ScoreboardEntryPreview(TeamPreview team, int score, int ordinal, TimeSpan?elapsed)
 {
     this.Team      = team;
     this.Score     = score;
     this.Ordinal   = ordinal;
     this.TimeTaken = elapsed?.ToHumanString();
 }
コード例 #2
0
 internal UserPreview(IUser user, TeamPreview team)
 {
     this.Id        = user.Id.AsString();
     this.Username  = user.Username;
     this.Country   = user.Country?.Code;
     this.AvatarUrl = user.AvatarUrl;
     this.Team      = team;
 }