mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-07-04 12:16:34 +02:00
17 lines
516 B
C#
17 lines
516 B
C#
|
using System.Collections.Generic;
|
|||
|
|
|||
|
namespace TINK.Model.Connector
|
|||
|
{
|
|||
|
public static class FilteredConnectorFactory
|
|||
|
{
|
|||
|
/// <summary> Creates a filter object. </summary>
|
|||
|
/// <param name="group"></param>
|
|||
|
public static IFilteredConnector Create(IEnumerable<string> group, IConnector connector)
|
|||
|
{
|
|||
|
return group != null
|
|||
|
? (IFilteredConnector) new FilteredConnector(group, connector)
|
|||
|
: new NullFilterConnector(connector);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|