diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2026-03-06 23:23:36 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2026-03-06 23:23:36 +0100 |
| commit | c3db1a9a85745597c1bec334443d630f009e30c8 (patch) | |
| tree | a146bde390c518517fbabd527bb8bddf4160ec8b /src/Enmarcha.Backend/Services/LineFormatterService.cs | |
| parent | 49ef6f4af837d4f3f4f367fa831f1ff176036c27 (diff) | |
Clean cruft, add colour to football routes
Diffstat (limited to 'src/Enmarcha.Backend/Services/LineFormatterService.cs')
| -rw-r--r-- | src/Enmarcha.Backend/Services/LineFormatterService.cs | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/src/Enmarcha.Backend/Services/LineFormatterService.cs b/src/Enmarcha.Backend/Services/LineFormatterService.cs deleted file mode 100644 index d3b6109..0000000 --- a/src/Enmarcha.Backend/Services/LineFormatterService.cs +++ /dev/null @@ -1,53 +0,0 @@ -using Enmarcha.Backend.Types; - -namespace Enmarcha.Backend.Services; - -public class LineFormatterService -{ - public ConsolidatedCirculation Format(ConsolidatedCirculation circulation) - { - circulation.Route = circulation.Route.Replace("*", ""); - - if (circulation.Route == "FORA DE SERVIZO.G.B.") - { - circulation.Route = "García Barbón, 7 (fora de servizo)"; - return circulation; - } - - switch (circulation.Line) - { - case "A" when circulation.Route.StartsWith("\"1\""): - circulation.Line = "A1"; - circulation.Route = circulation.Route.Replace("\"1\"", ""); - return circulation; - case "6": - circulation.Route = circulation.Route - .Replace("\"", ""); - return circulation; - case "FUT": - { - if (circulation.Route == "CASTELAO-CAMELIAS-G.BARBÓN.M.GARRIDO") - { - circulation.Line = "MAR"; - circulation.Route = "MARCADOR ⚽: CASTELAO-CAMELIAS-G.BARBÓN.M.GARRIDO"; - } - - if (circulation.Route == "P. ESPAÑA-T.VIGO-S.BADÍA") - { - circulation.Line = "RIO"; - circulation.Route = "RÍO ⚽: P. ESPAÑA-T.VIGO-S.BADÍA"; - } - - if (circulation.Route == "NAVIA-BOUZAS-URZAIZ-G. ESPINO") - { - circulation.Line = "GOL"; - circulation.Route = "GOL ⚽: NAVIA-BOUZAS-URZAIZ-G. ESPINO"; - } - - return circulation; - } - default: - return circulation; - } - } -} |
