예제 #1
0
 /// <summary>
 /// Gets all listings by Id
 /// </summary>
 /// <param name="listingId"></param>
 /// <param name="token"></param>
 /// <param name="includes">Associations to include.</param>
 /// <param name="progressReporter"></param>
 /// <returns></returns>
 public IAsyncEnumerable <Listing> GetListingsById(
     int[] listingId,
     CancellationToken token             = default(CancellationToken),
     ListingAssociationIncludes includes = ListingAssociationIncludes.None,
     IProgress <string> progressReporter = null) => GetListingsByIdStringIncludes(listingId, token, includes.ToIncludeString(), progressReporter);
예제 #2
0
        /// <summary>
        /// Gets listings by ID for the page.
        /// </summary>
        /// <param name="listingId"></param>
        /// <param name="includes">Listing associations to include.</param>
        /// <returns></returns>
        public Task <ListingSearchResult> GetListingsByIdPage(int[] listingId, ListingAssociationIncludes includes = ListingAssociationIncludes.None)
        {
            var includesStr = includes.ToIncludeString();

            return(GetListingsByIdPage(listingId, includesStr));
        }