コード例 #1
0
        //public override string ToString()
        //{
        //	return $"/skelbimai/{Page}?{Category}&{AdType}";
        //}
        public DomopliusUrlFilter()
        {
            Page       = new UrlFilterModel("page_nr", 1);
            Price      = new MinMaxUrlFilterModel("sell_price");
            Area       = new MinMaxUrlFilterModel("space");
            Rooms      = new MinMaxUrlFilterModel("rooms");
            Year       = new MinMaxUrlFilterModel("year");
            Floor      = new MinMaxUrlFilterModel("floor");
            City       = new UrlFilterModel("adress_1");
            ActionType = new UrlFilterModel("action_type");

            //BuildingType = new UrlFilterModel("distance"); // Set building types
            //FloorType = new UrlFilterModel("floor_type"); ; // Set floor types

            //Submit = new UrlFilterModel("submit_bn"); // ??
        }
コード例 #2
0
 public MinMaxUrlFilterModel(string text, string minValue = null, string maxValue = null)
 {
     Text     = text;
     MinValue = new UrlFilterModel($"{Text}_from", minValue);
     MaxValue = new UrlFilterModel($"{Text}_to", maxValue);
 }