C# Class Netsy.UI.DispatchedServices.DispatchedListingsService

Listings service wrapped to use a dispatcher To put the results back on the Dispatcher's thread
Inheritance: DispatchedService, IListingsService
Mostra file Open project: AnthonySteele/Netsy

Public Methods

Method Description
DispatchedListingsService ( IListingsService wrappedService, Dispatcher dispatcher ) : System

Initializes a new instance of the DispatchedListingsService class

GetAllListings ( SortField sortOn, SortOrder sortOrder, int offset, int limit, DetailLevel detailLevel ) : IAsyncResult

Get all active listings on Etsy.

GetFrontFeaturedListings ( int offset, int limit, DetailLevel detailLevel ) : IAsyncResult

Get the featured listings on the front page for the current day.

GetListingDetails ( int listingId, DetailLevel detailLevel ) : IAsyncResult

Get the details of a listing.

GetListingsByCategory ( string category, SortField sortOn, SortOrder sortOrder, int offset, int limit, DetailLevel detailLevel ) : IAsyncResult

Search for listings by category.

GetListingsByColor ( EtsyColor color, int wiggle, int offset, int limit, DetailLevel detailLevel ) : IAsyncResult

Search for listings by average color of primary image.

GetListingsByColorAndKeywords ( IEnumerable keywords, EtsyColor color, int wiggle, int offset, int limit, DetailLevel detailLevel ) : IAsyncResult

Search for listings by keywords and average color of primary image.

GetListingsByKeyword ( IEnumerable searchTerms, SortField sortOn, SortOrder sortOrder, decimal minPrice, decimal maxPrice, bool searchDescription, int offset, int limit, DetailLevel detailLevel ) : IAsyncResult

Search for listings by keyword.

GetListingsByMaterials ( IEnumerable materials, SortField sortOn, SortOrder sortOrder, int offset, int limit, DetailLevel detailLevel ) : IAsyncResult

Search for listings by materials used.

GetListingsByTags ( IEnumerable tags, SortField sortOn, SortOrder sortOrder, int offset, int limit, DetailLevel detailLevel ) : IAsyncResult

Search for listings by tags.

Method Details

DispatchedListingsService() public method

Initializes a new instance of the DispatchedListingsService class
public DispatchedListingsService ( IListingsService wrappedService, Dispatcher dispatcher ) : System
wrappedService IListingsService the wrapped service
dispatcher System.Windows.Threading.Dispatcher the thread dispatcher
return System

GetAllListings() public method

Get all active listings on Etsy.
public GetAllListings ( SortField sortOn, SortOrder sortOrder, int offset, int limit, DetailLevel detailLevel ) : IAsyncResult
sortOn SortField Specify the field to sort on
sortOrder SortOrder Specify the direction to sort on
offset int To page through large result sets
limit int Specify the number of results to return
detailLevel DetailLevel control how much information to return
return IAsyncResult

GetFrontFeaturedListings() public method

Get the featured listings on the front page for the current day.
public GetFrontFeaturedListings ( int offset, int limit, DetailLevel detailLevel ) : IAsyncResult
offset int To page through large result sets
limit int Specify the number of results to return
detailLevel DetailLevel control how much information to return
return IAsyncResult

GetListingDetails() public method

Get the details of a listing.
public GetListingDetails ( int listingId, DetailLevel detailLevel ) : IAsyncResult
listingId int Specify the listing's numeric ID
detailLevel DetailLevel Control how much information to return
return IAsyncResult

GetListingsByCategory() public method

Search for listings by category.
public GetListingsByCategory ( string category, SortField sortOn, SortOrder sortOrder, int offset, int limit, DetailLevel detailLevel ) : IAsyncResult
category string the category name
sortOn SortField Specify the field to sort on
sortOrder SortOrder Specify the direction to sort on
offset int To page through large result sets
limit int Specify the number of results to return
detailLevel DetailLevel control how much information to return
return IAsyncResult

GetListingsByColor() public method

Search for listings by average color of primary image.
public GetListingsByColor ( EtsyColor color, int wiggle, int offset, int limit, DetailLevel detailLevel ) : IAsyncResult
color Netsy.DataModel.EtsyColor The average color of primary image
wiggle int Specify the degree of tolerance for color matching; where 0 is the most accurate, and 15 is the leas
offset int To page through large result sets
limit int Specify the number of results to return
detailLevel DetailLevel control how much information to return
return IAsyncResult

GetListingsByColorAndKeywords() public method

Search for listings by keywords and average color of primary image.
public GetListingsByColorAndKeywords ( IEnumerable keywords, EtsyColor color, int wiggle, int offset, int limit, DetailLevel detailLevel ) : IAsyncResult
keywords IEnumerable Specify keywords to search on, separated by spaces or semicolons. You can also use the operators AND and NOT to control keyword matching.
color Netsy.DataModel.EtsyColor Specify an HSV color
wiggle int Specify the degree of tolerance for color matching; where 0 is the most accurate, and 15 is the least.
offset int To page through large result sets
limit int Specify the number of results to return
detailLevel DetailLevel control how much information to return
return IAsyncResult

GetListingsByKeyword() public method

Search for listings by keyword.
public GetListingsByKeyword ( IEnumerable searchTerms, SortField sortOn, SortOrder sortOrder, decimal minPrice, decimal maxPrice, bool searchDescription, int offset, int limit, DetailLevel detailLevel ) : IAsyncResult
searchTerms IEnumerable Specify keywords to search on, separated by spaces or semicolons. You can also use the operators AND and NOT to control keyword matching.
sortOn SortField Specify the field to sort on
sortOrder SortOrder Specify the direction to sort on
minPrice decimal Minimum for restricting price ranges. Values are in US dollars and may include cents.
maxPrice decimal Maximum for restricting price ranges. Values are in US dollars and may include cents.
searchDescription bool If true, listing descriptions will count towards search matches. (This may produce less relevant results.)
offset int To page through large result sets
limit int Specify the number of results to return
detailLevel DetailLevel control how much information to return
return IAsyncResult

GetListingsByMaterials() public method

Search for listings by materials used.
public GetListingsByMaterials ( IEnumerable materials, SortField sortOn, SortOrder sortOrder, int offset, int limit, DetailLevel detailLevel ) : IAsyncResult
materials IEnumerable Specify one or more materials, separated by spaces or semicolons.
sortOn SortField Specify the field to sort on
sortOrder SortOrder Specify the direction to sort on
offset int To page through large result sets
limit int Specify the number of results to return
detailLevel DetailLevel control how much information to return
return IAsyncResult

GetListingsByTags() public method

Search for listings by tags.
public GetListingsByTags ( IEnumerable tags, SortField sortOn, SortOrder sortOrder, int offset, int limit, DetailLevel detailLevel ) : IAsyncResult
tags IEnumerable Specify one or more tags, separated by spaces or semicolons.
sortOn SortField Specify the field to sort on
sortOrder SortOrder Specify the direction to sort on
offset int To page through large result sets
limit int Specify the number of results to return
detailLevel DetailLevel control how much information to return
return IAsyncResult