mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-07-03 19:56:37 +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);
|
|
}
|
|
}
|
|
}
|