internal static void HandleGenericRedDotNotification(JObject resJson, string vmName) { JObject jobject = JObject.Parse(resJson["bluestacks_notification"][(object)"payload"][(object)"GenericRedDotNotificationItem"].ToString()); if (JsonExtensions.IsNullOrEmptyBrackets(jobject["nyapps_cross_promotion"].ToString())) { return; } PromotionManager.AddNewMyAppsCrossPromotion((JToken)jobject); PromotionObject.Save(); string appPackage = jobject["nyapps_cross_promotion"][(object)"app_pkg"].ToString(); BlueStacksUIUtils.DictWindows[vmName].Dispatcher.Invoke((Delegate)(() => BlueStacksUIUtils.DictWindows[vmName].mWelcomeTab.mHomeAppManager.AddIconWithRedDot(appPackage))); }