Пример #1
0
        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;
        }
Пример #2
0
 private async Task <bool> CreateFriendship()
 {
     return(await FriendService.CreateFriendship(Username));
 }