private void viewModel_OnVerificationCompleteEvent(SessionVerificationResult result, object sender) { Device.BeginInvokeOnMainThread(async() => { switch (result) { case SessionVerificationResult.NeedLogin: ViewModel.PreloadProgress += "\nNavigate Login"; await Shell.Current.GoToAsync("//LoginPage"); break; case SessionVerificationResult.Authenticated: ViewModel.PreloadProgress += "\nNavigate Main Page"; Xamarin.Forms.Application.Current.MainPage = new AppShell(); break; default: break; } }); }
protected void SessionVerificationResultReceived(PacketHeader header, Connection connection, int result) { GenericResponse response = (GenericResponse)result; SessionVerificationResult.Invoke(response, EventArgs.Empty); }
public EMHSessionCryptoResult(SessionVerificationResult Status) { this.Status = Status; }