Ejemplo n.º 1
0
 public MaxHeightFilter(IMunroFilter filterMunrosSource, double height = 0) : base(filterMunrosSource, height)
 {
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Instantiate the filter with another filter for <see cref="BaseMunroFilter.Munros"/> and the given value for <see cref="HillCategory"/>
 /// </summary>
 public HillCategoryFilter(IMunroFilter filterMunrosSource, Munro.CategoryType category = Munro.CategoryType.NONE) : base(filterMunrosSource)
 {
     HillCategory = category;
 }
Ejemplo n.º 3
0
 public BaseMunroFilter(IMunroFilter filter)
 {
     Munros = filter.GetResults();
 }
Ejemplo n.º 4
0
 public SortFilter(IMunroFilter filterMunrosSource, params SortCriteria[] sortCriterias) : base(filterMunrosSource)
 {
     SortCriterias = sortCriterias.ToList();
 }
Ejemplo n.º 5
0
 public LimitResultsFilter(IMunroFilter filterMunrosSource, int numberResults = 0, LimitType limitPosition = LimitType.TOP) : base(filterMunrosSource)
 {
     NumberResults = numberResults;
     LimitPosition = limitPosition;
 }
Ejemplo n.º 6
0
 public HeightFilter(IMunroFilter filterMunrosSource, double height = 0) : base(filterMunrosSource)
 {
     Height = height;
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Search by filter(filters can be created using other filters so to be combined, the order of creation matters)
 /// </summary>
 /// <param name="munroFilter"></param>
 /// <returns>List of <see cref="Munro"/> matching the given parameters</returns>
 public static List <Munro> Search(IMunroFilter munroFilter)
 {
     return(munroFilter.GetResults());
 }