mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-12-23 07:36:31 +01:00
46 lines
1.5 KiB
C#
46 lines
1.5 KiB
C#
|
using System.Collections.Generic;
|
|||
|
using TINK.Model.Connector;
|
|||
|
using TINK.ViewModel.Map;
|
|||
|
using TINK.ViewModel.Settings;
|
|||
|
|
|||
|
namespace TINK.Model
|
|||
|
{
|
|||
|
/// <summary> Holds collecion of filters to filter options (TINK, Konrad, ....). </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.FILTERTINKGENERAL, FilterState.On },
|
|||
|
{FilterHelper.FILTERKONRAD, FilterState.On }
|
|||
|
});
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
/// <summary> Gets default filter set.</summary>
|
|||
|
public static IGroupFilterMapPage GetMapPageFilterDefaults
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return new ViewModel.Map.GroupFilterMapPage(new Dictionary<string, FilterState> {
|
|||
|
{ FilterHelper.FILTERTINKGENERAL, FilterState.On },
|
|||
|
{FilterHelper.FILTERKONRAD, FilterState.Off }
|
|||
|
});
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
/// <summary> Holds value whether filter (on TINK, Konrad, ....) is on or off. </summary>
|
|||
|
public enum FilterState
|
|||
|
{
|
|||
|
/// <summary> Option (TINK, Konrad, ....) is available.</summary>
|
|||
|
On,
|
|||
|
/// <summary> Option is off</summary>
|
|||
|
Off,
|
|||
|
}
|
|||
|
}
|