コード例 #1
0
 public Listing(string url)
 {
     this.url = url;
     search   = new Search();
     search.SetUrl(url);
     response    = search.GetWebResponse();
     listingPage = new ListingPage(response, url);
     listingPage.SetProperties();
     TotalResults    = listingPage.TotalResults;
     TotalListings   = listingPage.TotalListings;
     ListingPageUrls = GetListingPageUrls(TotalListings);
     ListingPages    = GetListingPages(ListingPageUrls);
     Properties      = GetProperties(ListingPages);
 }
コード例 #2
0
        public List <ListingPage> GetListingPages(List <string> listingPageUrls)
        {
            var listingPages = new List <ListingPage>();

            foreach (var listingPageUrl in listingPageUrls)
            {
                search = new Search();
                search.SetUrl(listingPageUrl);
                response    = search.GetWebResponse();
                listingPage = new ListingPage(response, listingPageUrl);
                listingPage.SetProperties();// add to constructor
                listingPages.Add(listingPage);
            }

            return(listingPages);
        }