/// <summary> /// Handles what happens when we have successfully logged in /// </summary> /// <param name="loginResult">The results from the successful login</param> public async Task HandleSuccessfulLoginAsync(LoginResultApiModel loginResult) { // Store this in the client data store await ClientDataStore.SaveLoginCredentialsAsync(new LoginCredentialsDataModel { Email = loginResult.Email, FirstName = loginResult.FirstName, LastName = loginResult.LastName, Username = loginResult.Username, Token = loginResult.Token }); // Load new settings await ViewModelSettings.LoadAsync(); // Go to chat page ViewModelApplication.GoToPage(ApplicationPage.Chat); }
public UserData Map(LoginResultApiModel apiModel) => mMapper.Map <UserData>(apiModel);