public ApiWithdrawalData(UnpaidPayoutRequests unpaidPayoutRequests, List <ApiPaymentProcessor> processors, bool isPinEnabled, Money mainBalance) { this.unpaidPayoutRequests = unpaidPayoutRequests; this.processors = processors; this.isPinEnabled = isPinEnabled; this.mainBalance = new ApiMoney(mainBalance); }
public ApiReferral(Member referral) { username = referral.Name; email = referral.Email; referralSince = referral.ReferralSince; lastActivity = referral.LastDRActivity; totalEarned = new ApiMoney(referral.TotalEarnedToDReferer); }
public ApiMember(Member user) { id = user.Id; username = user.Name; totalEarned = new ApiMoney(user.TotalEarned); referralsCount = user.GetDirectReferralsCount(); referralLink = AppSettings.Site.Url + "register.aspx?u=" + user.Id; //Balances balances = GetBalances(user); }
public ApiJackpot(Jackpot jackpot, int userId) { id = jackpot.Id; title = jackpot.Name; startDate = jackpot.StartDate; endDate = jackpot.EndDate; ticketPrice = new ApiMoney(jackpot.TicketPrice); prize = GetPrizeText(jackpot); participats = jackpot.NumberOfParticipants.HasValue ? jackpot.NumberOfParticipants.Value : 0; allTickets = jackpot.NumberOfTickets.HasValue ? jackpot.NumberOfTickets.Value : 0; yourTickets = JackpotManager.GetNumberOfUsersTickets(jackpot.Id, userId); numberOfWinningTickets = 2; //Temp }
public ApiMembershipPack(Member user, MembershipPack pack) { this.description = UpgradePageHelper.GetMembershipPackDescription(user, pack); this.packId = pack.Id; this.price = new ApiMoney(pack.GetPrice(user)); }
public ApiBalance(string name, BalanceType type, ApiMoney amount) { this.id = (int)type; this.name = name; value = amount; }