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)); }
public static async Task <Data.Image?> GetLargeAvatarAsync(SteamId steamid) { await CacheUserInformationAsync(steamid, false); var imageid = Internal.GetLargeFriendAvatar(steamid); // Wait for the image to download while (imageid == -1) { await Task.Delay(50); imageid = Internal.GetLargeFriendAvatar(steamid); } return(SteamUtils.GetImage(imageid)); }
public static async Task <Data.Image?> GetMediumAvatarAsync(SteamId steamid) { await CacheUserInformationAsync(steamid, false); return(SteamUtils.GetImage(Internal.GetMediumFriendAvatar(steamid))); }
public static async Task <Image?> GetSmallAvatarAsync(SteamId steamid) { await SteamFriends.CacheUserInformationAsync(steamid, false); return(SteamUtils.GetImage(SteamFriends.Internal.GetSmallFriendAvatar(steamid))); }