Example #1
0
 private void DestroyBasic()
 {
     try
     {
         MainRecyclerView       = null !;
         MainPlansRecyclerView  = null !;
         LayoutManagerView      = null !;
         PlansLayoutManagerView = null !;
         FeaturesAdapter        = null !;
         PlansAdapter           = null !;
         InitPayPalPayment      = null !;
         InitRazorPay           = null !;
         PayStackPayment        = null !;
         PayStackPayment        = null !;
         BillingPayment         = null !;
         IconClose      = null !;
         PayId          = null !;
         Price          = null !;
         PayType        = null !;
         ItemUpgrade    = null !;
         PaySeraPayment = null !;
     }
     catch (Exception e)
     {
         Methods.DisplayReportResultTrack(e);
     }
 }
Example #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            try
            {
                base.OnCreate(savedInstanceState);
                SetTheme(AppSettings.SetTabDarkTheme ? Resource.Style.MyTheme_Dark_Base : Resource.Style.MyTheme_Base);

                Methods.App.FullScreenApp(this);

                // Create your application here
                SetContentView(Resource.Layout.Go_Pro_Layout);

                InitPayPalPayment = new InitPayPalPayment(this);
                BillingPayment    = new InitInAppBillingPayment(this);
                TextDecorator     = new TextDecorator();

                //Get Value And Set Toolbar
                InitComponent();
                InitToolbar();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
Example #3
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            try
            {
                base.OnCreate(savedInstanceState);
                SetTheme(AppSettings.SetTabDarkTheme ? Resource.Style.MyTheme_Dark_Base : Resource.Style.MyTheme_Base);

                Methods.App.FullScreenApp(this);

                // Create your application here
                SetContentView(Resource.Layout.FundingViewLayout);

                if (AppSettings.ShowInAppBilling && Client.IsExtended)
                {
                    BillingPayment = new InitInAppBillingPayment(this);
                }
                else
                {
                    InitPayPalPayment = new InitPayPalPayment(this);
                }

                //Get Value And Set Toolbar
                InitComponent();
                InitToolbar();

                GetDataFunding();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            try
            {
                base.OnCreate(savedInstanceState);
                SetTheme(AppSettings.SetTabDarkTheme ? Resource.Style.MyTheme_Dark_Base : Resource.Style.MyTheme_Base);

                Methods.App.FullScreenApp(this);

                // Create your application here
                SetContentView(Resource.Layout.FundingViewLayout);

                if (AppSettings.ShowInAppBilling && Client.IsExtended)
                {
                    BillingPayment = new InitInAppBillingPayment(this);
                }

                if (AppSettings.ShowPaypal)
                {
                    InitPayPalPayment = new InitPayPalPayment(this);
                }

                if (AppSettings.ShowRazorPay)
                {
                    InitRazorPay = new InitRazorPayPayment(this);
                }

                if (AppSettings.ShowPayStack)
                {
                    PayStackPayment = new InitPayStackPayment(this);
                }

                if (AppSettings.ShowCashFree)
                {
                    CashFreePayment = new InitCashFreePayment(this);
                }

                if (AppSettings.ShowPaySera)
                {
                    PaySeraPayment = new InitPaySeraPayment(this);
                }

                //Get Value And Set Toolbar
                InitComponent();
                InitToolbar();

                GetDataFunding();
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
Example #5
0
        private void InitBuy()
        {
            try
            {
                BillingPayment = AppSettings.ShowInAppBilling switch
                {
                    true when Client.IsExtended => new InitInAppBillingPayment(this),
                    _ => BillingPayment
                };

                InitPayPalPayment = AppSettings.ShowPaypal switch
                {
                    true => new InitPayPalPayment(this),
                    _ => InitPayPalPayment
                };

                InitRazorPay = AppSettings.ShowRazorPay switch
                {
                    true => new InitRazorPayPayment(this),
                    _ => InitRazorPay
                };

                PayStackPayment = AppSettings.ShowPayStack switch
                {
                    true => new InitPayStackPayment(this),
                    _ => PayStackPayment
                };

                CashFreePayment = AppSettings.ShowCashFree switch
                {
                    true => new InitCashFreePayment(this),
                    _ => CashFreePayment
                };

                PaySeraPayment = AppSettings.ShowPaySera switch
                {
                    true => new InitPaySeraPayment(this),
                    _ => PaySeraPayment
                };
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
        private void InitComponent()
        {
            try
            {
                MainRecyclerView      = FindViewById <RecyclerView>(Resource.Id.recycler);
                MainPlansRecyclerView = FindViewById <RecyclerView>(Resource.Id.recycler2);
                IconClose             = FindViewById <ImageView>(Resource.Id.iv1);

                if (AppSettings.ShowInAppBilling && Client.IsExtended)
                {
                    BillingPayment = new InitInAppBillingPayment(this);
                }

                if (AppSettings.ShowPaypal)
                {
                    InitPayPalPayment = new InitPayPalPayment(this);
                }

                if (AppSettings.ShowRazorPay)
                {
                    InitRazorPay = new InitRazorPayPayment(this);
                }

                if (AppSettings.ShowPayStack)
                {
                    PayStackPayment = new InitPayStackPayment(this);
                }

                if (AppSettings.ShowCashFree)
                {
                    CashFreePayment = new InitCashFreePayment(this);
                }

                if (AppSettings.ShowPaySera)
                {
                    PaySeraPayment = new InitPaySeraPayment(this);
                }
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
Example #7
0
        private void InitBuy()
        {
            try
            {
                if (AppSettings.ShowInAppBilling && Client.IsExtended)
                {
                    BillingPayment = new InitInAppBillingPayment(this);
                }

                if (AppSettings.ShowPaypal)
                {
                    InitPayPalPayment = new InitPayPalPayment(this);
                }

                if (AppSettings.ShowRazorPay)
                {
                    InitRazorPay = new InitRazorPayPayment(this);
                }

                if (AppSettings.ShowPayStack)
                {
                    PayStackPayment = new InitPayStackPayment(this);
                }

                if (AppSettings.ShowCashFree)
                {
                    CashFreePayment = new InitCashFreePayment(this);
                }

                if (AppSettings.ShowPaySera)
                {
                    PaySeraPayment = new InitPaySeraPayment(this);
                }
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
        private void InitComponent()
        {
            try
            {
                MainRecyclerView      = FindViewById <RecyclerView>(Resource.Id.recycler);
                MainPlansRecyclerView = FindViewById <RecyclerView>(Resource.Id.recycler2);
                IconClose             = FindViewById <ImageView>(Resource.Id.iv1);

                if (AppSettings.ShowInAppBilling && Client.IsExtended)
                {
                    BillingPayment = new InitInAppBillingPayment(this);
                }
                else
                {
                    InitPayPalPayment = new InitPayPalPayment(this);
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
 private void DestroyBasic()
 {
     try
     {
         MainRecyclerView       = null;
         MainPlansRecyclerView  = null;
         LayoutManagerView      = null;
         PlansLayoutManagerView = null;
         FeaturesAdapter        = null;
         PlansAdapter           = null;
         InitPayPalPayment      = null;
         BillingPayment         = null;
         IconClose   = null;
         PayId       = null;
         Price       = null;
         PayType     = null;
         ItemUpgrade = null;
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            try
            {
                base.OnCreate(savedInstanceState);

                Methods.App.FullScreenApp(this);
                SetTheme(AppSettings.SetTabDarkTheme ? Resource.Style.MyTheme_Dark_Base : Resource.Style.MyTheme_Base);

                AddFlagsWakeLock();

                // Create your application here
                SetContentView(Resource.Layout.TabbedMainLayout);

                Instance = this;

                TracksCounter = new TracksCounter(this);

                CardFragment          = new CardMachFragment();
                TrendingFragment      = new TrendingFragment();
                NotificationsFragment = new NotificationsFragment();
                ProfileFragment       = new ProfileFragment();

                if (AppSettings.ShowPaypal)
                {
                    InitPayPalPayment = new InitPayPalPayment(this);
                }

                if (AppSettings.ShowInAppBilling)
                {
                    BillingPayment = new InitInAppBillingPayment(this);
                }

                if (AppSettings.EnableAppFree)
                {
                    AppSettings.PremiumSystemEnabled = false;
                }

                //Get Value
                SetupBottomNavigationView();

                GetMyInfoData();

                string type = Intent.GetStringExtra("TypeNotification") ?? "Don't have type";
                if (!string.IsNullOrEmpty(type) && type != "Don't have type")
                {
                    //var result = DbDatabase.Get_data_Login_Credentials();

                    var intent = new Intent(this, typeof(UserProfileActivity));

                    if (type == "got_new_match")
                    {
                        intent.PutExtra("EventPage", "HideButton");
                    }
                    else if (type == "like")
                    {
                        intent.PutExtra("EventPage", "likeAndClose");
                    }
                    else
                    {
                        intent.PutExtra("EventPage", "Close");
                    }

                    intent.PutExtra("DataType", "OneSignal");
                    intent.PutExtra("ItemUser", JsonConvert.SerializeObject(OneSignalNotification.UserData));
                    StartActivity(intent);
                }

                SetService();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }