TradeMe.Api.Client.MyTradeMeMethods.LostItems C# (CSharp) Method

LostItems() public method

Performs the My Trade Me Method: Retrieve a list of lost items.

Creates a query string using the parameters provided - parameters can be null if they are not required for the request.

REQUIRES AUTHENTICATION.
public LostItems ( LostItemsCriteria criteria, string page, string rows ) : Listings
criteria LostItemsCriteria The criteria.
page string Page number.
rows string Number of rows per page.
return Listings
        public Listings LostItems(LostItemsCriteria criteria, string page, string rows)
        {
            var query = Constants.MY_TRADEME + "/Lost";
            _addAnd = false;
            var conditions = "?";

            if (!string.IsNullOrEmpty(string.Empty + criteria))
            {
                query += "/" + criteria;
            }

            query += Constants.XML;

            conditions += SearchMethods.PageAndRowsHelper(page, rows, _addAnd);

            if (_addAnd)
            {
                query += conditions;
            }

            return this.LostItems(query);
        }

Same methods

MyTradeMeMethods::LostItems ( string query ) : Listings