Task JoinChain(JoinChainEvent joinEvent) { if (joinEvent.ChainId == ProfileServiceInfo.ChainId) { var result = joinEvent.Response.TransactionResult; if (result == TransactionResultTypes.Ok || result == TransactionResultTypes.AlreadyJoined) { UIAppSettings.JoinedProfile = true; UIApp.Current.SaveSettings(); SetupPage(); } _ = ProfileManager.Current.GetProfileData(WalletApp.CurrentAccountId, ProfileDownloadType.ForceDownload, true); } return(Task.CompletedTask); }
protected virtual async Task Joined(JoinChainEvent joinEvent) { IsBusy = false; if (_chainId > 0) { _chainIdText.Edit.IsEnabled = false; } var result = joinEvent.Response.TransactionResult; var valid = _useCoreAccount ? result == TransactionResultTypes.Ok || result == TransactionResultTypes.AlreadyJoined : result == TransactionResultTypes.Ok; if (valid) { await MessageAsync("Success"); //await Navigation.PopAsync(); } else { await ErrorTextAsync(joinEvent.Response.GetErrorMessage()); } }