C# Class Netsy.Services.ShopService

Implementation of the shop service
Inheritance: IShopService
Mostra file Open project: AnthonySteele/Netsy Class Usage Examples

Public Methods

Method Description
GetFeaturedDetails ( int userId, DetailLevel detailLevel ) : IAsyncResult

Get the expanded details on featured listings of a shop, ordered by highest ranked featured item.

GetFeaturedDetails ( string userName, DetailLevel detailLevel ) : IAsyncResult

Get the expanded details on featured listings of a shop, ordered by highest ranked featured item.

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

Get featured sellers

GetShopDetails ( int userId, DetailLevel detailLevel ) : IAsyncResult

Get the shop details

GetShopDetails ( string userName, DetailLevel detailLevel ) : IAsyncResult

Get the details of a seller's shop by user name.

GetShopListings ( int userId, SortField sortOn, SortOrder sortOrder, int sectionId, int offset, int limit, DetailLevel detailLevel ) : IAsyncResult

Get all the listings in a shop.

GetShopListings ( string userName, SortField sortOn, SortOrder sortOrder, int sectionId, int offset, int limit, DetailLevel detailLevel ) : IAsyncResult

Get all the listings in a shop.

GetShopsByName ( string searchName, SortOrder sortOrder, int offset, int limit, DetailLevel detailLevel ) : IAsyncResult

Get shops by name

ShopService ( EtsyContext etsyContext ) : System

Initializes a new instance of the ShopService class

ShopService ( EtsyContext etsyContext, IDataRetriever dataRetriever ) : System

Initializes a new instance of the ShopService class

Method Details

GetFeaturedDetails() public method

Get the expanded details on featured listings of a shop, ordered by highest ranked featured item.
public GetFeaturedDetails ( int userId, DetailLevel detailLevel ) : IAsyncResult
userId int the user id
detailLevel DetailLevel the level of detail
return IAsyncResult

GetFeaturedDetails() public method

Get the expanded details on featured listings of a shop, ordered by highest ranked featured item.
public GetFeaturedDetails ( string userName, DetailLevel detailLevel ) : IAsyncResult
userName string the user name
detailLevel DetailLevel the level of detail
return IAsyncResult

GetFeaturedSellers() public method

Get featured sellers
public GetFeaturedSellers ( int offset, int limit, DetailLevel detailLevel ) : IAsyncResult
offset int the offset in results
limit int the limit of results
detailLevel DetailLevel the detail level
return IAsyncResult

GetShopDetails() public method

Get the shop details
public GetShopDetails ( int userId, DetailLevel detailLevel ) : IAsyncResult
userId int the uset Id
detailLevel DetailLevel thje detail level
return IAsyncResult

GetShopDetails() public method

Get the details of a seller's shop by user name.
public GetShopDetails ( string userName, DetailLevel detailLevel ) : IAsyncResult
userName string the name of the shop
detailLevel DetailLevel the level of detail
return IAsyncResult

GetShopListings() public method

Get all the listings in a shop.
public GetShopListings ( int userId, SortField sortOn, SortOrder sortOrder, int sectionId, int offset, int limit, DetailLevel detailLevel ) : IAsyncResult
userId int the user id
sortOn SortField field to sort on
sortOrder SortOrder sort ascending or descending
sectionId int shop section to show
offset int the search results offset
limit int the search limit
detailLevel DetailLevel the level of detail
return IAsyncResult

GetShopListings() public method

Get all the listings in a shop.
public GetShopListings ( string userName, SortField sortOn, SortOrder sortOrder, int sectionId, int offset, int limit, DetailLevel detailLevel ) : IAsyncResult
userName string the user name
sortOn SortField field to sort on
sortOrder SortOrder sort ascending or descending
sectionId int shop section to show
offset int the search results offset
limit int the search limit
detailLevel DetailLevel the level of detail
return IAsyncResult

GetShopsByName() public method

Get shops by name
public GetShopsByName ( string searchName, SortOrder sortOrder, int offset, int limit, DetailLevel detailLevel ) : IAsyncResult
searchName string the text to search for
sortOrder SortOrder the results order
offset int the results offset
limit int the results limit
detailLevel DetailLevel detail level
return IAsyncResult

ShopService() public method

Initializes a new instance of the ShopService class
public ShopService ( EtsyContext etsyContext ) : System
etsyContext Netsy.DataModel.EtsyContext the etsy context to use
return System

ShopService() public method

Initializes a new instance of the ShopService class
public ShopService ( EtsyContext etsyContext, IDataRetriever dataRetriever ) : System
etsyContext Netsy.DataModel.EtsyContext the etsy context to use
dataRetriever IDataRetriever the data retreiver to use
return System