Beispiel #1
0
        async Task RefreshProfileData()
        {
            if (Connectivity.NetworkAccess == NetworkAccess.Internet)
            {
                var profile = await _mvpApiService.GetProfileAsync().ConfigureAwait(false);

                var image = await _mvpApiService.GetProfileImageAsync().ConfigureAwait(false);

                Name         = profile.FullName;
                ProfileImage = image;
            }
        }
Beispiel #2
0
        private async Task LoadProfileAsync()
        {
            try
            {
                var result = await mvpApiService.GetProfileAsync();

                ProfileContentControl.DataContext = result;
                ProfileContentControl.Visibility  = Visibility.Visible;
            }
            catch (Exception exception)
            {
                Debug.WriteLine(exception);
            }
        }