예제 #1
0
        private async void OnLoginClicked(Credentials credentials)
        {
            IsBusy = true;
            var authenticated = await TMDbService.LoginAndSetSessionAsync(credentials);

            IsBusy = false;
            if (authenticated.Success)
            {
                await Shell.Current.GoToAsync("//Main/MainPage");
            }
            else
            {
                ToastService.LongAlertMessage(authenticated.Message);
            }
        }