diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2026-04-12 18:02:56 +0200 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2026-04-12 18:02:56 +0200 |
| commit | cd0551534d8aaf3d3d5cc1727dfcc01d0637c6b2 (patch) | |
| tree | 6c06381eb35f34bef66c9a67115f9760e5f78674 /src/Enmarcha.Sources.Tussa | |
| parent | 7178807ef9724890b39dbf09e1de5b0a9c799a85 (diff) | |
Run formatter, split code in backend
Diffstat (limited to 'src/Enmarcha.Sources.Tussa')
| -rw-r--r-- | src/Enmarcha.Sources.Tussa/Response.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Enmarcha.Sources.Tussa/Response.cs b/src/Enmarcha.Sources.Tussa/Response.cs index cbb1573..31cb698 100644 --- a/src/Enmarcha.Sources.Tussa/Response.cs +++ b/src/Enmarcha.Sources.Tussa/Response.cs @@ -5,10 +5,10 @@ namespace Enmarcha.Sources.Tussa; public class MaisbusResponse { [JsonPropertyName("id")] public int Id { get; set; } - [JsonPropertyName("codigo")] public string Code { get; set; } - [JsonPropertyName("nombre")] public string Name { get; set; } - [JsonPropertyName("coordenadas")] public Coordinates Coordinates { get; set; } - [JsonPropertyName("lineas")] public Route[] Routes { get; set; } + [JsonPropertyName("codigo")] public required string Code { get; set; } + [JsonPropertyName("nombre")] public required string Name { get; set; } + [JsonPropertyName("coordenadas")] public required Coordinates Coordinates { get; set; } + [JsonPropertyName("lineas")] public required Route[] Routes { get; set; } } public class Coordinates @@ -22,13 +22,13 @@ public class Coordinates public class Route { [JsonPropertyName("id")] public int Id { get; set; } - [JsonPropertyName("sinoptico")] public string Sinoptico { get; set; } - [JsonPropertyName("nombre")] public string Name { get; set; } - [JsonPropertyName("estilo")] public string Colour { get; set; } + [JsonPropertyName("sinoptico")] public required string Sinoptico { get; set; } + [JsonPropertyName("nombre")] public required string Name { get; set; } + [JsonPropertyName("estilo")] public required string Colour { get; set; } /// <example> /// 2025-12-28 23:57 /// </example> - [JsonPropertyName("proximoPaso")] public string NextArrival { get; set; } + [JsonPropertyName("proximoPaso")] public required string NextArrival { get; set; } [JsonPropertyName("minutosProximoPaso")] public int MinutesToArrive { get; set; } } |
