using Microsoft.Net.Http.Headers;

namespace economy.Models
{
    // 공공데이터 API
    public class DataGoKR
    {
        public readonly HttpClient httpClient;
        public readonly string APIUrl = "http://apis.data.go.kr";
        public readonly string APIKey = "vQz8tIxrdhjerG6DE1w1hcVEli5S27LtIsCvx0axiieZmRgOpB4vToQ77VmvknAkIC9YjxlPx2gDZcl06S88Xw%3D%3D";

        public DataGoKR(HttpClient e)
        {
            httpClient = e;
            httpClient.BaseAddress = new Uri(APIUrl);
        }
    }

    // 화훼공판장 API
    public class FlowerAtOrKR
    {
        public readonly HttpClient httpClient;
        public readonly string APIUrl = "https://flower.at.or.kr";
        public readonly string APIKey = "5F70416B443241BE846D0807744FC489";

        public FlowerAtOrKR(HttpClient e)
        {
            httpClient = e;
            httpClient.BaseAddress = new Uri(APIUrl);
        }
    }

    // 한국수출입은행 API
    public class KoreaEximGoKR
    {
        public readonly HttpClient httpClient;
        public readonly string APIUrl = "https://www.koreaexim.go.kr";
        public readonly string ExchangeAPIKey = "OiZlh6SjbXGBlfbagekBpi6kAE4UyonP"; // 환율
        public readonly string InterestAPIKey = "4olJNSqYHe4oVsW50JFXpXyYmDh9O9NN"; // 대출금리
        public readonly string InternationalAPIKey = "UI3DgPS3oZucxxCThkJQV6eAGprSbLJy"; // 국제금리

        public KoreaEximGoKR(HttpClient e)
        {
            httpClient = e;
            httpClient.BaseAddress = new Uri(APIUrl);
        }
    }

    // 동행복권
    public class DhlotteryCoKR
    {
        public readonly HttpClient httpClient;
        public readonly string APIUrl = "https://www.dhlottery.co.kr";

        public DhlotteryCoKR(HttpClient e)
        {
            httpClient = e;
            httpClient.BaseAddress = new Uri(APIUrl);
        }
    }

    // FIFA 순위
    public class FIFA_API
    {
        public readonly HttpClient httpClient;
        public readonly string APIUrl = "https://api.fifa.com";

        public FIFA_API(HttpClient e)
        {
            httpClient = e;
            httpClient.BaseAddress = new Uri(APIUrl);
        }
    }
}
