public async Task ExecuteFetchFriendsCommand() { if (IsBusy) { return; } IsBusy = true; try { if (await ConnectivityService.IsConnected()) { await FriendService.RefreshFriendsList(); } else { DialogService.ShowError(Strings.NoInternetConnection); } } catch (Exception ex) { Crashes.TrackError(ex); } IsBusy = false; }
private async Task <bool> CreateFriendship() { return(await FriendService.CreateFriendship(Username)); }