TradeMe.Api.Client.SearchMethods.SearchMotorBoats C# (CSharp) Method

SearchMotorBoats() public method

Performs the Search Method: Search Motor Boats using the parameters provided - can use null if the parameter is not required.

DOES NOT REQUIRE AUTHENTICATION.
public SearchMotorBoats ( string searchString, SortOrder sortOrder, decimal priceMin, decimal priceMax, BoatType type, int lengthMin, int lengthMax, System.DateTime dateFrom, int page, int rows ) : MotorBoats
searchString string One or more keywords to use in a search query.
sortOrder SortOrder Sort the returned record-set by a single specified sort order.
priceMin decimal Minimum price.
priceMax decimal Maximum price.
type BoatType Type of the Motor Boat.
lengthMin int Minimum length of a boat in metres.
lengthMax int Maximum length of a boat in metres.
dateFrom System.DateTime Return only listings started from this date.
page int Page number.
rows int Number of rows per page.
return MotorBoats
        public MotorBoats SearchMotorBoats(string searchString, SortOrder sortOrder, decimal priceMin, decimal priceMax, BoatType type, int? lengthMin, int? lengthMax, DateTime dateFrom, int? page, int? rows)
        {
            var url = String.Format(Constants.Culture, "{0}/{1}/Boats{2}", Constants.SEARCH, Constants.MOTORS, Constants.XML);
            _addAnd = false;

            // create the parameters for the query string
            var conditions = "?";
            conditions += SearchMethods.ConstructQueryHelper(Constants.SEARCH_STRING, searchString, _addAnd);
            conditions += SearchMethods.ConstructQueryHelper(Constants.SORT_ORDER, string.Empty + sortOrder, _addAnd);
            conditions += SearchMethods.ConstructQueryHelper(Constants.PRICE_MIN, string.Empty + priceMin, _addAnd);
            conditions += SearchMethods.ConstructQueryHelper(Constants.PRICE_MAX, string.Empty + priceMax, _addAnd);
            conditions += SearchMethods.ConstructQueryHelper(Constants.TYPE, type.ToString(), _addAnd);
            conditions += SearchMethods.ConstructQueryHelper(Constants.LENGTH_MIN, string.Empty + lengthMin, _addAnd);
            conditions += SearchMethods.ConstructQueryHelper(Constants.LENGTH_MAX, string.Empty + lengthMax, _addAnd);
            conditions += SearchMethods.ConstructQueryHelper(Constants.DATE_FROM, Client.DateToStringConverter(dateFrom), _addAnd);
            conditions += SearchMethods.ConstructQueryHelper(Constants.PAGE, string.Empty + page, _addAnd);
            conditions += SearchMethods.ConstructQueryHelper(Constants.ROWS, string.Empty + rows, _addAnd);

            // add the parameters to the query string if there are any
            if (conditions.Equals("?"))
            {
                url += conditions;
            }

            // perform the request
            return this.SearchMotorBoats(url);
        }

Same methods

SearchMethods::SearchMotorBoats ( string query ) : MotorBoats