public DomiPortaWebsite() : base("www.domiporta.pl", "/" + propertyType + "/" + advertisementType + "?Localization=" + province + "&PageNumber=" + pageNumber, "DomiPorta") { //Add property types PropertyTypeIdMap.Add(PropertyType.ALL, "nieruchomosci"); PropertyTypeIdMap.Add(PropertyType.FLAT, "mieszkanie"); PropertyTypeIdMap.Add(PropertyType.GARAGE, "garaz"); PropertyTypeIdMap.Add(PropertyType.HOUSE, "dom"); PropertyTypeIdMap.Add(PropertyType.LAND, "dzialke"); PropertyTypeIdMap.Add(PropertyType.PREMISE, "lokal-uzytkowy"); PropertyTypeIdMap.Add(PropertyType.ROOM, "pokoj"); //Add provinces foreach (Province type in Province.PROVINCES) { ProvinceIdMap.Add(type, type.Name); } //Add advertisement types AdvertisementTypeIdMap.Add(AdvertisementType.ALL, "wszystkie"); AdvertisementTypeIdMap.Add(AdvertisementType.SALE, "sprzedam"); AdvertisementTypeIdMap.Add(AdvertisementType.RENT, "wynajme"); }
public OfertyDomWebsite() : base("www.oferty-dom.pl", "/szukaj/{" + pageNumber + "}.html?sort=domyslne&pageLimit=40&propertyType={" + propertyType + "}&advertisementType={" + advertisementType + "}&city=&dzielnica=&powiat=" + "&province={" + province, "Oferty dom") { try { //Add property types PropertyTypeIdMap.Add(Enums.PropertyType.FLAT, "6"); PropertyTypeIdMap.Add(Enums.PropertyType.LAND, "2"); PropertyTypeIdMap.Add(Enums.PropertyType.GARAGE, "3"); PropertyTypeIdMap.Add(Enums.PropertyType.PREMISE, "5"); PropertyTypeIdMap.Add(Enums.PropertyType.ROOM, "11"); PropertyTypeIdMap.Add(Enums.PropertyType.ELSE, "10"); PropertyTypeIdMap.Add(Enums.PropertyType.HOUSE, "1"); //Add provinces ProvinceIdMap.Add(Province.FromString("Dolnośląskie"), "1"); ProvinceIdMap.Add(Province.FromString("Kujawsko-pomorskie"), "2"); ProvinceIdMap.Add(Province.FromString("Lubelskie"), "3"); ProvinceIdMap.Add(Province.FromString("Lubuskie"), "4"); ProvinceIdMap.Add(Province.FromString("Łódzkie"), "5"); ProvinceIdMap.Add(Province.FromString("Małopolskie"), "6"); ProvinceIdMap.Add(Province.FromString("Mazowieckie"), "7"); ProvinceIdMap.Add(Province.FromString("Opolskie"), "8"); ProvinceIdMap.Add(Province.FromString("Podkarpackie"), "9"); ProvinceIdMap.Add(Province.FromString("Podlaskie"), "10"); ProvinceIdMap.Add(Province.FromString("Pomorskie"), "11"); ProvinceIdMap.Add(Province.FromString("Śląskie"), "12"); ProvinceIdMap.Add(Province.FromString("Świętokrzyskie"), "13"); ProvinceIdMap.Add(Province.FromString("Warmińsko-mazurskie"), "14"); ProvinceIdMap.Add(Province.FromString("Wielkopolskie"), "15"); ProvinceIdMap.Add(Province.FromString("Zachodniopomorskie"), "16"); //Add advertisement types AdvertisementTypeIdMap.Add(Enums.AdvertisementType.RENT, "4"); AdvertisementTypeIdMap.Add(Enums.AdvertisementType.SALE, "1"); AdvertisementTypeIdMap.Add(Enums.AdvertisementType.ALL, "6"); } catch (Exception ex) { Debug.WriteLine(ex); //Some error in spelling of provinces } }