C# 클래스 TradeMe.Api.Client.ListingMethods

The ListingMethods class contains the methods requried for making calls to the API related to Listings.
파일 보기 프로젝트 열기: TradeMe/trade-me-api-wrapper 1 사용 예제들

공개 메소드들

메소드 설명
AnswerSpecificQuestion ( ListingAnswerQuestion answerQuestion, string listingId, string questionId ) : System.Xml.Linq.XDocument

Performs the Listing Method: Provide an answer for a specific question. POST

Serializes the given ListingAnswerQuestion into xml. Creates a query string using the parameters provided.

All the parameters are required.

REQUIRES AUTHENTICATION.

CommentOnListing ( ListingAddComment addComment, string listingId ) : System.Xml.Linq.XDocument

Performs the Listing Method: Post a comment on a listing.

Serializes the given ListingAddComment into xml. Creates a query string using the listingId provided .

All the parameters are required.

REQUIRES AUTHENTICATION.

EmailFriend ( EmailFriendRequest email, string listingId ) : System.Xml.Linq.XDocument

Performs the Listing Method: Send an email regarding an auction to a friend.

Serializes the given EmailFriendRequest into xml. Creates a query string using the listingId provided .

All the parameters are required.

REQUIRES AUTHENTICATION.

EmailSellerOfClassified ( EmailRequest emailRequest, string listingId ) : System.Xml.Linq.XDocument

Performs the Listing Method: Send an email to the seller of a classified.

Serializes the given EmailRequest into xml. Creates a query string using the listingId provided .

All the parameters are required.

REQUIRES AUTHENTICATION.

GetClosingSoonListings ( ) : ClosingSoonListings

Performs the Listing Method: Retrieves the items closing soon for the whole country or for a single region. GET

DOES NOT REQUIRE AUTHENTICATION.

GetFeaturedListings ( ) : FeaturedListings

Performs the Listing Method: Retrieves the featured listings for the whole country or for a single region. GET

DOES NOT REQUIRE AUTHENTICATION.

GetHotListings ( ) : HotListings

Performs the Listing Method: Retrieves the hot items for the whole country or for a single region. GET

DOES NOT REQUIRE AUTHENTICATION.

GetLatestListings ( ) : LatestListings

Performs the Listing Method: Retrieves the latest listed items for the whole country or for a single region. GET

DOES NOT REQUIRE AUTHENTICATION.

GetOneDollarListings ( ) : OneDollarListings

Performs the Listing Method: Retrieves the items with one dollar reserves for the whole country or for a single region. GET

DOES NOT REQUIRE AUTHENTICATION.

ListingDetail ( string query ) : ListedItemDetail

Performs the Listing Method: Retrieve the details of a single listing

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

DOES NOT REQUIRE AUTHENTICATION.

ListingDetailById ( string id ) : ListedItemDetail

Performs the Listing Method: Retrieve the details of a single listing.

Creates a query string using the listing id parameter provided.

DOES NOT REQUIRE AUTHENTICATION.

ListingMethods ( ConnectionMethods connect ) : System

Initializes a new instance of the ListingMethods class.

SendComplaint ( ComplaintRequest complaintRequest, string listingId ) : XDocument

Performs the Listing Method: Sends a complaint about a listing to the Trade Me customer service team.

Serializes the given ComplaintRequest into xml. Creates a query string using the listingId provided .

All the parameters are required.

REQUIRES AUTHENTICATION.

UnansweredQuestionsAll ( ) : Questions

Performs the Listing Method: Retrieves a list of all the unanswered questions for all live auctions of the authenticated user. GET

REQUIRES AUTHENTICATION.

UnansweredQuestionsById ( string listingId ) : Questions

Performs the Listing Method: Retrieve a list of unanswered questions for all listings belonging to a member, Retrieve a list of unanswered questions on a single listing.

Creates a query string using the id parameter provided - the parameter should be null if the request is for all listings belonging to a member.

REQUIRES AUTHENTICATION.

UnansweredQuestionsByQueryString ( string query ) : Questions

Performs the Listing Method: Retrieve a list of unanswered questions for all listings belonging to a member, Retrieve a list of unanswered questions on a single listing,

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

REQUIRES AUTHENTICATION.

비공개 메소드들

메소드 설명
ListedItemDetailConnectionHelper ( string url ) : ListedItemDetail

A helper method for performing the http request for ListedItemDetail requests.

메소드 상세

AnswerSpecificQuestion() 공개 메소드

Performs the Listing Method: Provide an answer for a specific question. POST

Serializes the given ListingAnswerQuestion into xml. Creates a query string using the parameters provided.

All the parameters are required.

REQUIRES AUTHENTICATION.
public AnswerSpecificQuestion ( ListingAnswerQuestion answerQuestion, string listingId, string questionId ) : System.Xml.Linq.XDocument
answerQuestion ListingAnswerQuestion The object that will be serialized into xml and then sent in a POST message.
listingId string The id of the listing that has the question being answered.
questionId string The id of the question being answered.
리턴 System.Xml.Linq.XDocument

CommentOnListing() 공개 메소드

Performs the Listing Method: Post a comment on a listing.

Serializes the given ListingAddComment into xml. Creates a query string using the listingId provided .

All the parameters are required.

REQUIRES AUTHENTICATION.
public CommentOnListing ( ListingAddComment addComment, string listingId ) : System.Xml.Linq.XDocument
addComment ListingAddComment The object that will be serialized into xml and then sent in a POST message.
listingId string The id of the listing the comment should be added to.
리턴 System.Xml.Linq.XDocument

EmailFriend() 공개 메소드

Performs the Listing Method: Send an email regarding an auction to a friend.

Serializes the given EmailFriendRequest into xml. Creates a query string using the listingId provided .

All the parameters are required.

REQUIRES AUTHENTICATION.
public EmailFriend ( EmailFriendRequest email, string listingId ) : System.Xml.Linq.XDocument
email EmailFriendRequest The object that will be serialized into xml and then sent in a POST message.
listingId string The id of the listing you want to email about.
리턴 System.Xml.Linq.XDocument

EmailSellerOfClassified() 공개 메소드

Performs the Listing Method: Send an email to the seller of a classified.

Serializes the given EmailRequest into xml. Creates a query string using the listingId provided .

All the parameters are required.

REQUIRES AUTHENTICATION.
public EmailSellerOfClassified ( EmailRequest emailRequest, string listingId ) : System.Xml.Linq.XDocument
emailRequest EmailRequest The object that will be serialized into xml and then sent in a POST message.
listingId string The id of the listing that youwant to email about.
리턴 System.Xml.Linq.XDocument

GetClosingSoonListings() 공개 메소드

Performs the Listing Method: Retrieves the items closing soon for the whole country or for a single region. GET

DOES NOT REQUIRE AUTHENTICATION.
public GetClosingSoonListings ( ) : ClosingSoonListings
리턴 ClosingSoonListings

GetFeaturedListings() 공개 메소드

Performs the Listing Method: Retrieves the featured listings for the whole country or for a single region. GET

DOES NOT REQUIRE AUTHENTICATION.
public GetFeaturedListings ( ) : FeaturedListings
리턴 FeaturedListings

GetHotListings() 공개 메소드

Performs the Listing Method: Retrieves the hot items for the whole country or for a single region. GET

DOES NOT REQUIRE AUTHENTICATION.
public GetHotListings ( ) : HotListings
리턴 HotListings

GetLatestListings() 공개 메소드

Performs the Listing Method: Retrieves the latest listed items for the whole country or for a single region. GET

DOES NOT REQUIRE AUTHENTICATION.
public GetLatestListings ( ) : LatestListings
리턴 LatestListings

GetOneDollarListings() 공개 메소드

Performs the Listing Method: Retrieves the items with one dollar reserves for the whole country or for a single region. GET

DOES NOT REQUIRE AUTHENTICATION.
public GetOneDollarListings ( ) : OneDollarListings
리턴 OneDollarListings

ListingDetail() 공개 메소드

Performs the Listing Method: Retrieve the details of a single listing

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

DOES NOT REQUIRE AUTHENTICATION.
public ListingDetail ( string query ) : ListedItemDetail
query string The query string that will be added to the base url and used to connect to the API with.
리턴 ListedItemDetail

ListingDetailById() 공개 메소드

Performs the Listing Method: Retrieve the details of a single listing.

Creates a query string using the listing id parameter provided.

DOES NOT REQUIRE AUTHENTICATION.
public ListingDetailById ( string id ) : ListedItemDetail
id string The listing id.
리턴 ListedItemDetail

ListingMethods() 공개 메소드

Initializes a new instance of the ListingMethods class.
public ListingMethods ( ConnectionMethods connect ) : System
connect ConnectionMethods A ConnectionMethods class used to make calls to the API
리턴 System

SendComplaint() 공개 메소드

Performs the Listing Method: Sends a complaint about a listing to the Trade Me customer service team.

Serializes the given ComplaintRequest into xml. Creates a query string using the listingId provided .

All the parameters are required.

REQUIRES AUTHENTICATION.
public SendComplaint ( ComplaintRequest complaintRequest, string listingId ) : XDocument
complaintRequest ComplaintRequest The object that will be serialized into xml and then sent in a POST message.
listingId string The id of the listing that youwant to complain about.
리턴 XDocument

UnansweredQuestionsAll() 공개 메소드

Performs the Listing Method: Retrieves a list of all the unanswered questions for all live auctions of the authenticated user. GET

REQUIRES AUTHENTICATION.
public UnansweredQuestionsAll ( ) : Questions
리턴 Questions

UnansweredQuestionsById() 공개 메소드

Performs the Listing Method: Retrieve a list of unanswered questions for all listings belonging to a member, Retrieve a list of unanswered questions on a single listing.

Creates a query string using the id parameter provided - the parameter should be null if the request is for all listings belonging to a member.

REQUIRES AUTHENTICATION.
public UnansweredQuestionsById ( string listingId ) : Questions
listingId string The listing id.
리턴 Questions

UnansweredQuestionsByQueryString() 공개 메소드

Performs the Listing Method: Retrieve a list of unanswered questions for all listings belonging to a member, Retrieve a list of unanswered questions on a single listing,

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

REQUIRES AUTHENTICATION.
public UnansweredQuestionsByQueryString ( string query ) : Questions
query string The query string that will be added to the base url and used to connect to the API.
리턴 Questions