Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
        public ApiReferral(Member referral)
        {
            username = referral.Name;
            email    = referral.Email;

            referralSince = referral.ReferralSince;
            lastActivity  = referral.LastDRActivity;

            totalEarned = new ApiMoney(referral.TotalEarnedToDReferer);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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
        }
Exemplo n.º 5
0
 public ApiMembershipPack(Member user, MembershipPack pack)
 {
     this.description = UpgradePageHelper.GetMembershipPackDescription(user, pack);
     this.packId      = pack.Id;
     this.price       = new ApiMoney(pack.GetPrice(user));
 }
Exemplo n.º 6
0
 public ApiBalance(string name, BalanceType type, ApiMoney amount)
 {
     this.id   = (int)type;
     this.name = name;
     value     = amount;
 }