示例#1
0
        private async Task RefreshSkinAsync(Account account)
        {
            var latestProfile = await _skinService.GetProfileAsync(account.UUID, account.ProfileServer);

            account.Profile = latestProfile ?? account.Profile;
            account.Skin    = await _skinService.GetSkinAsync(account.Profile);
        }
        private async Task LoadAvatars(string profileServer)
        {
            IsLoading = true;

            for (int i = 0; i < Profiles.Count; i++)
            {
                Profiles[i].Base64Profile = await _skinService.GetProfileAsync(Profiles[i].Id, profileServer);

                Profiles[i].Skin = await _skinService.GetSkinAsync(Profiles[i].Base64Profile);
            }

            Profiles.Refresh();
            IsLoading = false;
        }