mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-05 10:36:30 +01:00
45 lines
1.2 KiB
C#
45 lines
1.2 KiB
C#
using System.Collections.Generic;
|
|
using ShareeBike.Model.Connector;
|
|
using ShareeBike.ViewModel.Map;
|
|
using ShareeBike.ViewModel.Settings;
|
|
|
|
namespace ShareeBike.Model
|
|
{
|
|
/// <summary> Holds collection of filters to filter options (Cargo, Citybike, ....). </summary>
|
|
/// <remarks> Former name: FilterCollection.</remarks>
|
|
public static class GroupFilterHelper
|
|
{
|
|
/// <summary> Gets default filter set.</summary>
|
|
public static IGroupFilterSettings GetSettingsFilterDefaults
|
|
{
|
|
get
|
|
{
|
|
return new GroupFilterSettings(new Dictionary<string, FilterState> {
|
|
{ FilterHelper.CARGOBIKE, FilterState.On },
|
|
{FilterHelper.CITYBIKE, FilterState.On }
|
|
});
|
|
}
|
|
}
|
|
|
|
/// <summary> Gets default filter set.</summary>
|
|
public static IGroupFilterMapPage GetMapPageFilterDefaults
|
|
{
|
|
get
|
|
{
|
|
return new GroupFilterMapPage(new Dictionary<string, FilterState> {
|
|
{ FilterHelper.CARGOBIKE, FilterState.On },
|
|
{FilterHelper.CITYBIKE, FilterState.Off }
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary> Holds value whether filter (on Cargo, Citybike, ....) is on or off. </summary>
|
|
public enum FilterState
|
|
{
|
|
/// <summary> Option (Cargo, Citybike, ....) is available.</summary>
|
|
On,
|
|
/// <summary> Option is off</summary>
|
|
Off,
|
|
}
|
|
}
|