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

PropertyHelper() private method

A helper method for construction a portion of the query string needed for property requests.
private PropertyHelper ( string searchString, string sortOrder, int page, int rows, int region, int district, int suburb, System.DateTime dateFrom, int priceMin, int priceMax, int landAreaMin, int landAreaMax ) : string
searchString string One or more keywords to use in a search query.
sortOrder string Sort the returned record-set by a single specified sort order.
page int Page number.
rows int Number of rows per page.
region int Specifies the search region ID.
district int Specifies the search district ID.
suburb int Specifies the search suburb ID.
dateFrom System.DateTime Specifies minimum start date for returned listings.
priceMin int Minimum property price.
priceMax int Maximum property price.
landAreaMin int Minimum land area in square meters.
landAreaMax int Maximum land area in square meters.
return string
        private string PropertyHelper(
            string searchString,
            string sortOrder,
            int? page,
            int? rows,
            int? region,
            int? district,
            int? suburb,
            DateTime dateFrom,
            int? priceMin,
            int? priceMax,
            int? landAreaMin,
            int? landAreaMax)
        {
            var conditions = string.Empty;
            conditions += SearchStringToDistrict(searchString, sortOrder, page, rows, string.Empty + region, string.Empty + district);
            conditions += SearchMethods.ConstructQueryHelper(Constants.SUBURB, string.Empty + suburb, _addAnd);
            conditions += SearchMethods.ConstructQueryHelper(Constants.DATE_FROM, string.Empty + dateFrom, _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.LAND_AREA_MIN, string.Empty + landAreaMin, _addAnd);
            conditions += SearchMethods.ConstructQueryHelper(Constants.LAND_AREA_MAX, string.Empty + landAreaMax, _addAnd);

            return conditions;
        }