/// <summary> /// <para>Performs the My Trade Me Method: /// Retrieve a list of lost items. /// </para><para> /// Creates a query string using the parameters provided - parameters can be null if they are not required for the request. /// </para> /// REQUIRES AUTHENTICATION. /// </summary> /// <param name="criteria">The criteria.</param> /// <param name="page">Page number.</param> /// <param name="rows">Number of rows per page.</param> /// <returns>Listings.</returns> 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)); }
/// <summary> /// <para>Performs the My Trade Me Method: /// Retrieve a list of lost items. /// </para><para> /// Creates a query string using the parameters provided - parameters can be null if they are not required for the request. /// </para> /// REQUIRES AUTHENTICATION. /// </summary> /// <param name="criteria">The criteria.</param> /// <param name="page">Page number.</param> /// <param name="rows">Number of rows per page.</param> /// <returns>Listings.</returns> public Listings LostItems(LostItemsCriteria criteria, string page, string rows) { if (_myTradeMe == null) { _myTradeMe = new MyTradeMeMethods(_connection); } return _myTradeMe.LostItems(criteria, page, rows); }
/// <summary> /// <para>Performs the My Trade Me Method: /// Retrieve a list of lost items. /// </para><para> /// Creates a query string using the parameters provided - parameters can be null if they are not required for the request. /// </para> /// REQUIRES AUTHENTICATION. /// </summary> /// <param name="criteria">The criteria.</param> /// <param name="page">Page number.</param> /// <param name="rows">Number of rows per page.</param> /// <returns>Listings.</returns> 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); }