C# Class TradeMe.Api.Client.FavouriteMethods

The FavouriteMethods class contains the methods requried for making calls to the API related to Favourites.
Afficher le fichier Open project: TradeMe/trade-me-api-wrapper Class Usage Examples

Méthodes publiques

Méthode Description
FavouriteMethods ( ConnectionMethods connect ) : System

Initializes a new instance of the FavouriteMethods class.

RemoveSavedFavorite ( string favoriteId, string type ) : System.Xml.Linq.XDocument

Performs the Favourites method: Deletes a saved search, category or seller from the currently authenticated user’s favourites. DELETE

REQUIRES AUTHENTICATION.

RetrieveFavouriteCategories ( ) : SavedCategories

Performs the Favourites Method: Get Saved Categories. GET

REQUIRES AUTHENTICATION.

RetrieveFavouriteSearches ( SavedSearchType filter ) : SavedSearches

Performs the Favourites Method: Get Saved Searches. GET

REQURIES AUTHENTICATION.

RetrieveFavouriteSellers ( ) : SavedSellers

Performs the Favourites method: Get Saved Sellers. GET

REQUIRES AUTHENTICATION.

SaveCategory ( SaveCategoryRequest saveCategory ) : System.Xml.Linq.XDocument

Performs the Favourites method: Save Category. POST

Serializes the given SaveCategoryRequest into xml.

REQUIRES AUTHENTICATION.

SaveSearch ( SaveSearchRequest saveSearch ) : System.Xml.Linq.XDocument

Performs the Favourites method: Save Search. POST

Serializes the given SaveSearchRequest into xml.

REQUIRES AUTHENTICATION.

SaveSeller ( SaveSellerRequest saveSeller ) : System.Xml.Linq.XDocument

Performs the Favourites method: Save Seller. POST

Serializes the given SaveSellerRequest into xml.

REQUIRES AUTHENTICATION.

UpdateSavedFavorite ( string favoriteId, string type, string frequency ) : System.Xml.Linq.XDocument

Performs the Favourites method: Modifies the email frequency for a saved favourite. POST

REQUIRES AUTHENTICATION.

Method Details

FavouriteMethods() public méthode

Initializes a new instance of the FavouriteMethods class.
public FavouriteMethods ( ConnectionMethods connect ) : System
connect ConnectionMethods A ConnectionMethods class used to make calls to the API
Résultat System

RemoveSavedFavorite() public méthode

Performs the Favourites method: Deletes a saved search, category or seller from the currently authenticated user’s favourites. DELETE

REQUIRES AUTHENTICATION.
public RemoveSavedFavorite ( string favoriteId, string type ) : System.Xml.Linq.XDocument
favoriteId string The ID of the favourite.
type string The type of favourite (must be “Category”, “Search”, “AttributeSearch” or “Seller”).
Résultat System.Xml.Linq.XDocument

RetrieveFavouriteCategories() public méthode

Performs the Favourites Method: Get Saved Categories. GET

REQUIRES AUTHENTICATION.
public RetrieveFavouriteCategories ( ) : SavedCategories
Résultat SavedCategories

RetrieveFavouriteSearches() public méthode

Performs the Favourites Method: Get Saved Searches. GET

REQURIES AUTHENTICATION.
public RetrieveFavouriteSearches ( SavedSearchType filter ) : SavedSearches
filter SavedSearchType
Résultat SavedSearches

RetrieveFavouriteSellers() public méthode

Performs the Favourites method: Get Saved Sellers. GET

REQUIRES AUTHENTICATION.
public RetrieveFavouriteSellers ( ) : SavedSellers
Résultat SavedSellers

SaveCategory() public méthode

Performs the Favourites method: Save Category. POST

Serializes the given SaveCategoryRequest into xml.

REQUIRES AUTHENTICATION.
public SaveCategory ( SaveCategoryRequest saveCategory ) : System.Xml.Linq.XDocument
saveCategory SaveCategoryRequest The object that will be serialized into xml and then sent in a POST message.
Résultat System.Xml.Linq.XDocument

SaveSearch() public méthode

Performs the Favourites method: Save Search. POST

Serializes the given SaveSearchRequest into xml.

REQUIRES AUTHENTICATION.
public SaveSearch ( SaveSearchRequest saveSearch ) : System.Xml.Linq.XDocument
saveSearch SaveSearchRequest The object that will be serialized into xml and then sent in a POST message.
Résultat System.Xml.Linq.XDocument

SaveSeller() public méthode

Performs the Favourites method: Save Seller. POST

Serializes the given SaveSellerRequest into xml.

REQUIRES AUTHENTICATION.
public SaveSeller ( SaveSellerRequest saveSeller ) : System.Xml.Linq.XDocument
saveSeller SaveSellerRequest The object that will be serialized into xml and then sent in a POST message.
Résultat System.Xml.Linq.XDocument

UpdateSavedFavorite() public méthode

Performs the Favourites method: Modifies the email frequency for a saved favourite. POST

REQUIRES AUTHENTICATION.
public UpdateSavedFavorite ( string favoriteId, string type, string frequency ) : System.Xml.Linq.XDocument
favoriteId string The ID of the favourite.
type string The type of favourite (must be “Category”, “Search”, “AttributeSearch” or “Seller”).
frequency string The frequency that emails should be sent (must be “None”, “Daily”, “Every3Days” or “Weekly”).
Résultat System.Xml.Linq.XDocument