| | | 1 | | using CsvHelper.Configuration; |
| | | 2 | | using EHonda.KicktippAi.Core; |
| | | 3 | | |
| | | 4 | | namespace ContextProviders.Kicktipp.Csv; |
| | | 5 | | |
| | | 6 | | /// <summary> |
| | | 7 | | /// CsvHelper ClassMap for <see cref="TeamStanding"/> defining the CSV schema for league standings. |
| | | 8 | | /// </summary> |
| | | 9 | | public sealed class TeamStandingCsvMap : ClassMap<TeamStanding> |
| | | 10 | | { |
| | 1 | 11 | | public TeamStandingCsvMap() |
| | | 12 | | { |
| | 1 | 13 | | Map(m => m.Position).Index(0).Name("Position"); |
| | 1 | 14 | | Map(m => m.TeamName).Index(1).Name("Team"); |
| | 1 | 15 | | Map(m => m.GamesPlayed).Index(2).Name("Games"); |
| | 1 | 16 | | Map(m => m.Points).Index(3).Name("Points"); |
| | 1 | 17 | | Map(m => m.GoalsFormatted).Index(4).Name("Goal_Ratio"); |
| | 1 | 18 | | Map(m => m.GoalsFor).Index(5).Name("Goals_For"); |
| | 1 | 19 | | Map(m => m.GoalsAgainst).Index(6).Name("Goals_Against"); |
| | 1 | 20 | | Map(m => m.Wins).Index(7).Name("Wins"); |
| | 1 | 21 | | Map(m => m.Draws).Index(8).Name("Draws"); |
| | 1 | 22 | | Map(m => m.Losses).Index(9).Name("Losses"); |
| | 1 | 23 | | Map(m => m.Group).Index(10).Name("Group").Optional(); |
| | 1 | 24 | | } |
| | | 25 | | } |