Exemplo n.º 1
0
        public static async Task <Image?> GetLargeAvatarAsync(SteamId steamid)
        {
            int i;
            await SteamFriends.CacheUserInformationAsync(steamid, false);

            for (i = SteamFriends.Internal.GetLargeFriendAvatar(steamid); i == -1; i = SteamFriends.Internal.GetLargeFriendAvatar(steamid))
            {
                await Task.Delay(50);
            }
            return(SteamUtils.GetImage(i));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Sometimes we don't know the user's name. This will wait until we have
 /// downloaded the information on this user.
 /// </summary>
 public async Task RequestInfoAsync()
 {
     await SteamFriends.CacheUserInformationAsync(Id, true);
 }
Exemplo n.º 3
0
 public async Task RequestInfoAsync(int timeout = 5000)
 {
     await SteamFriends.CacheUserInformationAsync(this.Id, true);
 }
Exemplo n.º 4
0
        public static async Task <Image?> GetMediumAvatarAsync(SteamId steamid)
        {
            await SteamFriends.CacheUserInformationAsync(steamid, false);

            return(SteamUtils.GetImage(SteamFriends.Internal.GetMediumFriendAvatar(steamid)));
        }