File: ExternalLapDataSourceFactory.cs

package info (click to toggle)
quickroute-gps 2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 19,576 kB
  • sloc: cs: 74,488; makefile: 72; sh: 43
file content (18 lines) | stat: -rw-r--r-- 713 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System.Collections.Generic;
using QuickRoute.BusinessEntities.ExternalLapDataSources.CzechSplits;
using QuickRoute.BusinessEntities.ExternalLapDataSources.WinSplits;

namespace QuickRoute.BusinessEntities.ExternalLapDataSources
{
  public static class ExternalLapDataSourceFactory
  {
    public static IEnumerable<KeyValuePair<string, IExternalLapDataSource>> GetExternalLapDataSources()
    {
      return new[]
               {
                 new KeyValuePair<string, IExternalLapDataSource>("WinSplits", new WinSplitsLapDataSource()), 
                 new KeyValuePair<string, IExternalLapDataSource>("CzechSplits", new CzechSplitsLapDataSource()) 
               };
    }
  }
}