Ejemplo n.º 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);
     }
 }
Ejemplo n.º 2
0
        private void InitBuy()
        {
            try
            {
                if (AppSettings.ShowPaypal)
                {
                    InitPayPalPayment = new InitPayPalPayment(Activity);
                }

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

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

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

                if (AppSettings.ShowPaySera)
                {
                    PaySeraPayment = new InitPaySeraPayment(Activity);
                }
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
Ejemplo n.º 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.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);
            }
        }
Ejemplo n.º 4
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);
            }
        }
        private void InitComponent(View view)
        {
            try
            {
                TxtMyBalance = view.FindViewById <TextView>(Resource.Id.myBalance);

                IconAmount  = view.FindViewById <TextView>(Resource.Id.IconAmount);
                TxtAmount   = view.FindViewById <EditText>(Resource.Id.AmountEditText);
                BtnContinue = view.FindViewById <Button>(Resource.Id.ContinueButton);

                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeRegular, IconAmount, FontAwesomeIcon.MoneyBillWave);

                Methods.SetColorEditText(TxtAmount, AppSettings.SetTabDarkTheme ? Color.White : Color.Black);

                InitPayPalPayment = new InitPayPalPayment(Activity);

                var userData = ListUtils.MyProfileList.FirstOrDefault();
                if (userData != null)
                {
                    TxtMyBalance.Text = userData.Wallet;
                }
            }
            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);
            }
        }
        private void InitComponent(View view)
        {
            try
            {
                TxtMyBalance = view.FindViewById <TextView>(Resource.Id.myBalance);

                IconAmount  = view.FindViewById <TextView>(Resource.Id.IconAmount);
                TxtAmount   = view.FindViewById <EditText>(Resource.Id.AmountEditText);
                BtnContinue = view.FindViewById <Button>(Resource.Id.ContinueButton);

                FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeRegular, IconAmount, FontAwesomeIcon.MoneyBillWave);

                Methods.SetColorEditText(TxtAmount, AppSettings.SetTabDarkTheme ? Color.White : Color.Black);

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

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

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

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

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

                var userData = ListUtils.MyProfileList.FirstOrDefault();
                if (userData != null)
                {
                    TxtMyBalance.Text = userData.Wallet;
                }
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
Ejemplo n.º 8
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);
            }
        }
Ejemplo n.º 9
0
        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);
            }
        }
Ejemplo n.º 10
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);
            }
        }
Ejemplo n.º 11
0
        private void InitBuy()
        {
            try
            {
                InitPayPalPayment = AppSettings.ShowPaypal switch
                {
                    true => new InitPayPalPayment(Activity),
                    _ => InitPayPalPayment
                };

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

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

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

                PaySeraPayment = AppSettings.ShowPaySera switch
                {
                    true => new InitPaySeraPayment(Activity),
                    _ => 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);
                }
                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);
     }
 }
Ejemplo n.º 14
0
        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);
            }
        }