Esempio n. 1
0
        protected async override void OnStart()
        {
            var req = await APIConnector.ApiReq <User>(APIConnector.Method.GET, "account/");

            if (req.status == 200)
            {
                User = req.obj;
            }
            else
            {
                Console.WriteLine(req.data);
            }

            if (User.logged_in)
            {
                MainPage = new NavigationPage(new MainPage());
            }
            else
            {
                MainPage = new NavigationPage(new Login());
            }
        }