Beispiel #1
0
        public async Task SmallAvatar()
        {
            ulong id = (ulong)(76561197960279927 + (new Random().Next() % 10000));

            var image = await SteamFriends.GetSmallAvatarAsync(id);

            if (!image.HasValue)
            {
                return;
            }

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

            DrawImage(image.Value);
        }
Beispiel #2
0
 public async Task <Data.Image?> GetSmallAvatarAsync()
 {
     return(await SteamFriends.GetSmallAvatarAsync(Id));
 }