Ejemplo n.º 1
0
        private static IDictionary <long, ListingInfo> resultsToListingDictionary(IList <MeResponse> results, MeRequest.ListingType type)
        {
            IDictionary <long, ListingInfo> listings = new Dictionary <long, ListingInfo>();

            foreach (MeResponse response in results)
            {
                foreach (Listing listing in response.Listings)
                {
                    ListingInfo info = ListingInfo.FromListing(listing, type);
                    listings[info.ListingId] = info;
                }
            }

            return(listings);
        }