using System.Collections.Generic;
using ShareeBike.Model.Connector;
using ShareeBike.ViewModel.Map;
using ShareeBike.ViewModel.Settings;
namespace ShareeBike.Model
{
/// Holds collection of filters to filter options (Cargo, Citybike, ....).
/// Former name: FilterCollection.
public static class GroupFilterHelper
{
/// Gets default filter set.
public static IGroupFilterSettings GetSettingsFilterDefaults
{
get
{
return new GroupFilterSettings(new Dictionary {
{ FilterHelper.CARGOBIKE, FilterState.On },
{FilterHelper.CITYBIKE, FilterState.On }
});
}
}
/// Gets default filter set.
public static IGroupFilterMapPage GetMapPageFilterDefaults
{
get
{
return new GroupFilterMapPage(new Dictionary {
{ FilterHelper.CARGOBIKE, FilterState.On },
{FilterHelper.CITYBIKE, FilterState.Off }
});
}
}
}
/// Holds value whether filter (on Cargo, Citybike, ....) is on or off.
public enum FilterState
{
/// Option (Cargo, Citybike, ....) is available.
On,
/// Option is off
Off,
}
}