C# Класс TradeMe.Api.Client.CatalogueMethods

The CatalogueMethods class contains the methods requried for making calls to the API related to the catalogue.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CatalogueMethods ( ConnectionMethods connect ) : System

Initializes a new instance of the CatalogueMethods class.

GetComplaintSubjects ( ) : ComplaintSubjectCollection

Performs the category method: Retrieves a list of possible complaint subjects. This is used in conjunction with the send a complaint API. GET

DOES NOT REQUIRE AUTHENTICATION.

GetMotorbikeMakes ( ) : MotorbikeMakeCollection

Performs the category method: Retrieves a list of all motorbike makes. Can be used when searching. GET

DOES NOT REQUIRE AUTHENTICATION.

RetrieveAttributesForCategory ( string categoryNumber ) : Attributes

Performs the category method: Retrieves the list of attributes which are applicable to a specific category. GET

DOES NOT REQUIRE AUTHENTICATION.

RetrieveBluRayIds ( ) : BluRayValidations

Performs the category method: Returns a the list of Blu-ray catalogue ID numbers. You can use this list to validate the catalogue ID before listing a Blu-ray. GET

DOES NOT REQUIRE AUTHENTICATION.

RetrieveCategories ( ) : Category

Performs the category methods: Retrieve a list of all or part of our category tree.

DOES NOT REQUIRE AUTHENTICATION.

RetrieveCategoriesById ( string id ) : Category

Performs the category methods: Retrieve a list of all or part of our category tree. Does this by using the id string provided - should be the id of the category you wish to retrieve.

DOES NOT REQUIRE AUTHENTICATION.

RetrieveCategoriesByQueryString ( string query ) : Category

Performs the category methods: Retrieve a list of all or part of our category tree, Retrieve a list of Trade Me Motors used car categories, Retrieve a list of Trade Me Motors motorbike categories, using the "query" string provided - should be the "Categories/UsedCars.xml" part of the url it shouldn't include "http://api.trademe.co.nz/v1/".

DOES NOT REQUIRE AUTHENTICATION.

RetrieveDurationOptionsForCategory ( string categoryNumber ) : ListingDurations

Performs the category method: Retrieves the default duration and the duration options that are available for listings in a specific category. GET

DOES NOT REQUIRE AUTHENTICATION.

RetrieveDvdIds ( ) : DvdValidations

Performs the category method: Returns a list of DVD catalogue ID numbers. You can use this list to validate the catalogue ID before listing a DVD. GET

DOES NOT REQUIRE AUTHENTICATION.

RetrieveFeesForCategory ( string categoryNumber ) : ListingFees

Performs the category method: Retrieves a list of fees for a specific category. GET

DOES NOT REQUIRE AUTHENTICATION.

RetrieveJobCategories ( ) : JobCategories

Performs the category method: Retrieve a list of Trade Me Jobs categories.

DOES NOT REQUIRE AUTHENTICATION.

RetrieveLegalNoticeForCategory ( string categoryNumber ) : LegalNotice

Performs the category method: Retrieves the legal notice that the user is required to agree to before listing. GET

DOES NOT REQUIRE AUTHENTICATION.

RetrieveLocalities ( string query ) : LocalityCollection

Performs the Localities methods: three-tier locality dataset, two-tier locality dataset,

using the "query" string provided - should be the "Localities.xml" part of the url. It shouldn't include "http://api.trademe.co.nz/v1/".

DOES NOT REQUIRE AUTHENTICATION.

RetrieveLocalitiesThreeTier ( ) : LocalityCollection

Performs the Localities methods: three-tier locality dataset

Returns three-tier locality hierarchy of regions, districts and their respective suburbs. These values are used in Trade Me Property, Trade Me Jobs and Services.

DOES NOT REQUIRE AUTHENTICATION.

RetrieveLocalitiesTwoTier ( ) : LocalityCollection

Performs the Localities method: two-tier locality dataset.

Returns list of towns used in member registration. This information is displayed on member profile as “suburb” and also on listings where the approximate location of goods is important, such as in Trade Me Motors.

DOES NOT REQUIRE AUTHENTICATION.

RetrieveMotorBikeCategories ( ) : Category

Performs the category methods: Retrieve a list of Trade Me Motors motorbike categories.

DOES NOT REQUIRE AUTHENTICATION.

RetrieveTravelLocalities ( ) : LocalityCollection

Performs the category method: Returns a list of districts and suburbs as used by TradeMe travel. GET

DOES NOT REQUIRE AUTHENTICATION.

RetrieveUsedCarCategories ( ) : Category

Performs the category methods: Retrieve a list of Trade Me Motors used car categories.

DOES NOT REQUIRE AUTHENTICATION.

SearchBluRayCatalog ( String search = "" ) : MovieTitles

Performs the category method: Searches the Trade Me Blu-ray catalogue for movie titles. GET

DOES NOT REQUIRE AUTHENTICATION.

SearchDvdCatalog ( String search = "" ) : MovieTitles

Performs the category method: Searches the Trade Me DVD catalogue for movie titles. GET

DOES NOT REQUIRE AUTHENTICATION.

Описание методов

CatalogueMethods() публичный Метод

Initializes a new instance of the CatalogueMethods class.
public CatalogueMethods ( ConnectionMethods connect ) : System
connect ConnectionMethods A ConnectionMethods class used to make calls to the API
Результат System

GetComplaintSubjects() публичный Метод

Performs the category method: Retrieves a list of possible complaint subjects. This is used in conjunction with the send a complaint API. GET

DOES NOT REQUIRE AUTHENTICATION.
public GetComplaintSubjects ( ) : ComplaintSubjectCollection
Результат ComplaintSubjectCollection

GetMotorbikeMakes() публичный Метод

Performs the category method: Retrieves a list of all motorbike makes. Can be used when searching. GET

DOES NOT REQUIRE AUTHENTICATION.
public GetMotorbikeMakes ( ) : MotorbikeMakeCollection
Результат MotorbikeMakeCollection

RetrieveAttributesForCategory() публичный Метод

Performs the category method: Retrieves the list of attributes which are applicable to a specific category. GET

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveAttributesForCategory ( string categoryNumber ) : Attributes
categoryNumber string The category number for which you wish to see the attributes for. /// This must be a leaf category (for example, you cannot view the attributes for Computers > Desktops, /// but you can for Computers > Desktops > CRT monitors).
Результат Attributes

RetrieveBluRayIds() публичный Метод

Performs the category method: Returns a the list of Blu-ray catalogue ID numbers. You can use this list to validate the catalogue ID before listing a Blu-ray. GET

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveBluRayIds ( ) : BluRayValidations
Результат BluRayValidations

RetrieveCategories() публичный Метод

Performs the category methods: Retrieve a list of all or part of our category tree.

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveCategories ( ) : Category
Результат Category

RetrieveCategoriesById() публичный Метод

Performs the category methods: Retrieve a list of all or part of our category tree. Does this by using the id string provided - should be the id of the category you wish to retrieve.

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveCategoriesById ( string id ) : Category
id string The id of the category you wish to retrieve.
Результат Category

RetrieveCategoriesByQueryString() публичный Метод

Performs the category methods: Retrieve a list of all or part of our category tree, Retrieve a list of Trade Me Motors used car categories, Retrieve a list of Trade Me Motors motorbike categories, using the "query" string provided - should be the "Categories/UsedCars.xml" part of the url it shouldn't include "http://api.trademe.co.nz/v1/".

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveCategoriesByQueryString ( string query ) : Category
query string The query string that will be added to the base url and used to connect to the API with.
Результат Category

RetrieveDurationOptionsForCategory() публичный Метод

Performs the category method: Retrieves the default duration and the duration options that are available for listings in a specific category. GET

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveDurationOptionsForCategory ( string categoryNumber ) : ListingDurations
categoryNumber string The number of the category to retrieve durations for.
Результат ListingDurations

RetrieveDvdIds() публичный Метод

Performs the category method: Returns a list of DVD catalogue ID numbers. You can use this list to validate the catalogue ID before listing a DVD. GET

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveDvdIds ( ) : DvdValidations
Результат DvdValidations

RetrieveFeesForCategory() публичный Метод

Performs the category method: Retrieves a list of fees for a specific category. GET

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveFeesForCategory ( string categoryNumber ) : ListingFees
categoryNumber string The number of the category to retrieve fees for.
Результат ListingFees

RetrieveJobCategories() публичный Метод

Performs the category method: Retrieve a list of Trade Me Jobs categories.

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveJobCategories ( ) : JobCategories
Результат JobCategories

RetrieveLegalNoticeForCategory() публичный Метод

Performs the category method: Retrieves the legal notice that the user is required to agree to before listing. GET

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveLegalNoticeForCategory ( string categoryNumber ) : LegalNotice
categoryNumber string The category number for which you wish to see the legal notice for. /// The number of the category to retrieve the legal notice for. This must be a leaf category /// (for example, you cannot view the legal notice for Business, Farming and Industry, but you can /// for Business, Farming and Industry > Carbon credits).
Результат LegalNotice

RetrieveLocalities() публичный Метод

Performs the Localities methods: three-tier locality dataset, two-tier locality dataset,

using the "query" string provided - should be the "Localities.xml" part of the url. It shouldn't include "http://api.trademe.co.nz/v1/".

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveLocalities ( string query ) : LocalityCollection
query string The query string that will be added to the base url and used to connect to the API with.
Результат LocalityCollection

RetrieveLocalitiesThreeTier() публичный Метод

Performs the Localities methods: three-tier locality dataset

Returns three-tier locality hierarchy of regions, districts and their respective suburbs. These values are used in Trade Me Property, Trade Me Jobs and Services.

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveLocalitiesThreeTier ( ) : LocalityCollection
Результат LocalityCollection

RetrieveLocalitiesTwoTier() публичный Метод

Performs the Localities method: two-tier locality dataset.

Returns list of towns used in member registration. This information is displayed on member profile as “suburb” and also on listings where the approximate location of goods is important, such as in Trade Me Motors.

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveLocalitiesTwoTier ( ) : LocalityCollection
Результат LocalityCollection

RetrieveMotorBikeCategories() публичный Метод

Performs the category methods: Retrieve a list of Trade Me Motors motorbike categories.

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveMotorBikeCategories ( ) : Category
Результат Category

RetrieveTravelLocalities() публичный Метод

Performs the category method: Returns a list of districts and suburbs as used by TradeMe travel. GET

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveTravelLocalities ( ) : LocalityCollection
Результат LocalityCollection

RetrieveUsedCarCategories() публичный Метод

Performs the category methods: Retrieve a list of Trade Me Motors used car categories.

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveUsedCarCategories ( ) : Category
Результат Category

SearchBluRayCatalog() публичный Метод

Performs the category method: Searches the Trade Me Blu-ray catalogue for movie titles. GET

DOES NOT REQUIRE AUTHENTICATION.
public SearchBluRayCatalog ( String search = "" ) : MovieTitles
search String The partial title to search for.
Результат MovieTitles

SearchDvdCatalog() публичный Метод

Performs the category method: Searches the Trade Me DVD catalogue for movie titles. GET

DOES NOT REQUIRE AUTHENTICATION.
public SearchDvdCatalog ( String search = "" ) : MovieTitles
search String The partial title to search for.
Результат MovieTitles