public RentReferralsSystem(string username, IMembership membership)
 {
     Username         = username;
     Membership       = membership;
     option           = AppSettings.Referrals.Renting;
     activeUsersIndex = 0;
     random           = new Random();
     this.UserId      = (new Member(username)).Id; //BAD
 }
Exemple #2
0
        public static string GetDescription(this AppSettings.Referrals.RentingOption option)
        {
            switch (option)
            {
            case AppSettings.Referrals.RentingOption.Null:
                return("N/A");

            case AppSettings.Referrals.RentingOption.Normal:
                return("Normal referrals");

            case AppSettings.Referrals.RentingOption.Bot:
                return("Bots");

            case AppSettings.Referrals.RentingOption.All:
                return("All");

            case AppSettings.Referrals.RentingOption.DirectReferrals:
                return("Direct referrals");

            default:
                throw new NotImplementedException(option.ToString());
            }
        }