public DebtsService( WiseContext db, PurchasesService purchasesService, AvatarsService avatarsService) { _db = db; _purchasesService = purchasesService; _avatarsService = avatarsService; }
public AuthController( UserManager <User> userManager, AuthTokenService tokenService, AvatarsService avatarsService, IMapper mapper ) { _userManager = userManager; _tokenService = tokenService; _avatarsService = avatarsService; _mapper = mapper; }
public AccountService( WiseContext db, BankApi bankApi, AvatarsService avatarsService, UserManager <User> userManager, EmailService emailService, IConfiguration config) { _db = db; _bankApi = bankApi; _avatarsService = avatarsService; _userManager = userManager; _emailService = emailService; _config = config; }
public UsersController( UsersService usersService, TeamsService teamsService, PurchasesService purchasesService, UserManager <User> userManager, ICurrentUserAccessor currentUser, AvatarsService avatarsService, IMapper mapper) { _userManager = userManager; _usersService = usersService; _teamsService = teamsService; _purchasesService = purchasesService; _currentUser = currentUser; _mapper = mapper; _avatarsService = avatarsService; }
public PlayerViewModel(PlayerDocument doc, string myUserId) { Position = doc.Position; Cash = doc.Cash; Bet = doc.Bet; UserId = doc.UserId; Name = doc.Name; IsMe = UserId == myUserId; CurrentTurn = doc.CurrentTurn; IsSmallBlind = doc.IsSmallBlind; IsBigBlind = doc.IsBigBlind; IsInGame = doc.Cards.Count != 0; AvatarUrl = AvatarsService.GetUrlById(doc.AvatarId); if (IsMe) { Cards = doc.Cards.Select(x => new CardViewModel(x)).ToList(); } else { Cards = new List <CardViewModel>(); } }
public ActionResult MyAvatar() { var user = _users.GetById(UserId); return(Json(new { avatarUrl = AvatarsService.GetUrlById(user.AvatarId) })); }
public ProfileController(AvatarsService avatars, UsersViewService users) { _avatars = avatars; _users = users; }
public AvatarUrlResolver(AvatarsService avatarsService) { _avatarsService = avatarsService; }