﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using YellowInfo.DataService.Interface;
using YellowInfo.Model;

namespace YellowInfo.DataService
{
    public class FindBusinessDetailService : IFindBusinessDetailService
    {
        public async Task<FeedResponse<ListingModel>> GetDetailData(string id)
        {
            const string API_KEY = "4nd67ycv3yeqtg97dku7m845";
            string Url = "http://api.sandbox.yellowapi.com/GetBusinessDetails/?listingId=" + id + "&bus-name=Yellow-Pages-Group&city=Toronto&prov=Ontario&fmt=JSON&lang=en&UID=fgdfg&apikey=" + API_KEY;
            return await BaseService.GetData<ListingModel>(Url, HttpMethod.Get);
        }
    }
}
