Exemple #1
0
 protected BaseConf()
 {
     this.Log          = new LogConfFile();
     this.Database     = new DatabaseConfFile();
     this.Localization = new LocalizationConfFile();
     this.Internal     = new InterConfFile();
     this.Premium      = new PremiumConfFile();
 }
Exemple #2
0
        /// <summary>
        /// Enables services for free, based on the conf's settings.
        /// </summary>
        /// <param name="premiumConfFile"></param>
        public void EvaluateFreeServices(PremiumConfFile premiumConfFile)
        {
            var freeExpiration = DateTime.Parse("2999-12-31 23:59:59");

            if (premiumConfFile.FreeInventoryPlus)
            {
                this.InventoryPlusExpiration = freeExpiration;
            }

            if (premiumConfFile.FreePremium)
            {
                this.PremiumExpiration = freeExpiration;
            }

            if (premiumConfFile.FreeVip)
            {
                this.VipExpiration = freeExpiration;
            }
        }