public static async Task DownloadFunction(List<Card> cards)
{
foreach (var card in cards)
{
byte[] fileBytes = await client.GetByteArrayAsync(card.ImageUris.Small);
File.WriteAllBytes($@"C:\Users\samue\Desktop\MTGImages\{card.Root.name}", fileBytes);
}
}
public static async Task DownloadFunction(List<Card> cards)
{
foreach (var card in cards)
{
byte[] fileBytes = await client.GetByteArrayAsync(card.ImageUris.Small);
File.WriteAllBytes($@"C:\Users\samue\Desktop\MTGImages\{card.Root.name}", fileBytes);
}
}