public BaseMixpanelObject()
 {
     this.Cg5Upgrade = SettingsHolder.get_Settings().get_IsCg5Upgrade();
     this.DistinctId = ((!this.Cg5Upgrade) ? SettingsHolder.get_Settings().get_DistinctId() : BaseMixpanelObject.GetDistinctIdHmac(SettingsHolder.get_Settings().get_DistinctId()));
     if (SettingsHolder.get_Settings().get_LoginServer().Contains("dev-api.cyberghostvpn.com"))
     {
         this.Environment = "dev";
     }
     else if (SettingsHolder.get_Settings().get_LoginServer().Contains("beta-api.cyberghostvpn.com"))
     {
         this.Environment = "beta";
     }
     else
     {
         this.Environment = "live";
     }
     if (ObjectHolder.CurrentStatus != null)
     {
         this.ApiVersion = string.Format("{0}-{1}", ObjectHolder.CurrentStatus.get_JsApi(), ObjectHolder.CurrentStatus.get_PhpApi());
         this.Ip         = ObjectHolder.CurrentStatus.get_RealIp();
     }
     this.Country        = HelperFunctions.GetSystemRegionCode();
     this.ClientLanguage = SettingsHolder.get_Settings().get_Language();
     this.AppName        = Theming.GetProductName();
     if (ObjectHolder.CurrentUser != null && ObjectHolder.CurrentUser.get_Subscription() != null && ObjectHolder.CurrentUser.get_Subscription().get_Product() != null)
     {
         this.PlanId   = ObjectHolder.CurrentUser.get_Subscription().get_Product().get_PlansId();
         this.PlanName = ObjectHolder.CurrentUser.get_Subscription().get_Product().get_Plan().get_InternalName();
         if (ObjectHolder.CurrentUser.get_Subscription().get_Product().get_Plan().get_TrialPeriodDays() > 0)
         {
             this.PlanType = "trial";
         }
         else
         {
             this.PlanType = (ObjectHolder.CurrentUser.get_Subscription().get_Product().get_Plan().get_Free() ? "free" : (ObjectHolder.CurrentUser.get_Subscription().get_Product().get_Plan().get_Promo() ? "promo" : "paid"));
         }
         this.ProductId             = ObjectHolder.CurrentUser.get_Subscription().get_Product().get_Id();
         this.ProductName           = ObjectHolder.CurrentUser.get_Subscription().get_Product().get_InternalName();
         this.BillingType           = (ObjectHolder.CurrentUser.get_Subscription().get_Product().get_Recurring() ? "recurring" : "prepaid");
         this.BillingIntervalMonths = ObjectHolder.CurrentUser.get_Subscription().get_Product().get_Months();
         this.BillingIntervalDays   = ObjectHolder.CurrentUser.get_Subscription().get_Product().get_Days();
     }
     this.Currency                       = NumberFormatInfo.CurrentInfo.CurrencySymbol;
     this.Os                             = "win";
     this.Architecture                   = (System.Environment.Is64BitOperatingSystem ? "x64" : "x86");
     this.OsVersion                      = HelperFunctions.GetOsVersion().ToString();
     this.AffiliateId                    = Constants.get_AffiliateId();
     this.ClientVersion                  = Assembly.GetExecutingAssembly().GetName().Version.ToString();
     this.SuccesfullConnections          = SettingsHolder.get_Settings().get_TotalConnectionsOk();
     this.UnsuccesfullConnections        = SettingsHolder.get_Settings().get_TotalConnectionFailed();
     this.ConnectionAttempts             = SettingsHolder.get_Settings().get_TotalConnectionAttempts();
     this.ApplicationLaunches            = SettingsHolder.get_Settings().get_TotalApplicationLaunches();
     this.TotalSecureHotspotsProtected   = SettingsHolder.get_Settings().get_WiFiSecureSsids().Count;
     this.TotalUnsecureHotspotsProtected = SettingsHolder.get_Settings().get_WiFiUnsecureSsids().Count;
     this.LastUsedProfile                = SettingsHolder.get_Settings().get_LastConnectedProfile();
 }