Ejemplo n.º 1
0
 public UserRank(RankPoints rankPoints, UserStats userStats, RankDegree rankDegree)
 {
     _rankDegree = rankDegree;
     RankPoints  = rankPoints;
     UserStats   = userStats;
     CalculateRank();
 }
Ejemplo n.º 2
0
 public SvgService(
     IWebHostEnvironment environment,
     ICacheService cacheService,
     IOptions <RankDegree> rankDegree)
 {
     _degree         = rankDegree.Value;
     _contentRoot    = environment.ContentRootPath;
     _cacheService   = cacheService;
     SvgFolder       = Path.Combine(_contentRoot, @"svgs", "user-stats");
     TranslationFile = Path.Combine(_contentRoot, @"content", "translations.json");
     ThemeFile       = Path.Combine(_contentRoot, @"content", "styles.json");
 }
Ejemplo n.º 3
0
 public UserStatsCard(RankDegree rankDegree, UserStatsOptions options)
 {
     _options   = options;
     RankDegree = rankDegree;
 }
Ejemplo n.º 4
0
 public RankService(IOptions <RankPoints> points, IOptions <RankDegree> rankDegree)
 {
     _rankPoints = points.Value;
     _rankDegree = rankDegree.Value;
 }