﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AllaBolagScreenScraper
{
    class ScreenScraperFactory
    {
        public static IScreenScraper CreateScreenScrape(string type)
        {
            IScreenScraper scraper = null;
            if (type == "AllaBolag.se")
            {
                scraper = new ScreenScraperAllaBolag();
            }
            else if (type == "Upplysning.se")
            {
                scraper = new ScreenScraperUpplysning();
            }
            else if (type == "Eniro.se")
            {
                scraper = new ScreenScraperEniro();
            }
            else if (type == "Hitta.se")
            {
                scraper = new ScreenScraperHitta();
            }
            return scraper;
        }

    }
}
