public UserRank(RankPoints rankPoints, UserStats userStats, RankDegree rankDegree) { _rankDegree = rankDegree; RankPoints = rankPoints; UserStats = userStats; CalculateRank(); }
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"); }
public UserStatsCard(RankDegree rankDegree, UserStatsOptions options) { _options = options; RankDegree = rankDegree; }
public RankService(IOptions <RankPoints> points, IOptions <RankDegree> rankDegree) { _rankPoints = points.Value; _rankDegree = rankDegree.Value; }