Ejemplo n.º 1
0
        public async Task MediumAvatar()
        {
            ulong id = (ulong)(76561197960279927 + (new Random().Next() % 10000));

            Console.WriteLine($"Steam: http://steamcommunity.com/profiles/{id}");

            var image = await SteamFriends.GetMediumAvatarAsync(id);

            if (!image.HasValue)
            {
                return;
            }

            Console.WriteLine($"image.Width {image.Value.Width}");
            Console.WriteLine($"image.Height {image.Value.Height}");

            DrawImage(image.Value);
        }
Ejemplo n.º 2
0
 public async Task <Data.Image?> GetMediumAvatarAsync()
 {
     return(await SteamFriends.GetMediumAvatarAsync(Id));
 }