From cd0551534d8aaf3d3d5cc1727dfcc01d0637c6b2 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Sun, 12 Apr 2026 18:02:56 +0200 Subject: Run formatter, split code in backend --- src/Enmarcha.Sources.Tussa/Response.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/Enmarcha.Sources.Tussa/Response.cs') 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; } /// /// 2025-12-28 23:57 /// - [JsonPropertyName("proximoPaso")] public string NextArrival { get; set; } + [JsonPropertyName("proximoPaso")] public required string NextArrival { get; set; } [JsonPropertyName("minutosProximoPaso")] public int MinutesToArrive { get; set; } } -- cgit v1.3