using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DeepAI;
namespace BlazorApp4.Data
{
public static class DeepAI
{
public static async Task<List<Logo>> GenerateLogos(string color, string font, string imageUrl)
{
{
// Initialize DeepAI client with API key
var client = new DeepAiClient("{YOUR_API_KEY}");
// Call GenerateLogoAsync method with user's selections
var response = await client.GenerateLogoAsync(new GenerateLogoRequest(color, font, imageUrl));
// Parse response and create list of logo objects
var logos = new List<Logo>();
foreach (var output in response.Outputs)
{
logos.Add(new Logo { Color = output.Data.Color, Font = output.Data.Font, ImageUrl = output.Data.ImageUrl });
}
return logos;
}
}
}
}