From a304c24b32c0327436bbd8c2853e60668e161b42 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Mon, 29 Dec 2025 00:41:52 +0100 Subject: Rename a lot of stuff, add Santiago real time --- src/Enmarcha.Sources.Tussa/Response.cs | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/Enmarcha.Sources.Tussa/Response.cs (limited to 'src/Enmarcha.Sources.Tussa/Response.cs') diff --git a/src/Enmarcha.Sources.Tussa/Response.cs b/src/Enmarcha.Sources.Tussa/Response.cs new file mode 100644 index 0000000..df941b9 --- /dev/null +++ b/src/Enmarcha.Sources.Tussa/Response.cs @@ -0,0 +1,34 @@ +using System.Text.Json.Serialization; + +namespace Enmarcha.Sources.Tussa; + +public class MaisbusResponse +{ + [JsonPropertyName("id")] public string 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; } +} + +public class Coordinates +{ + [JsonPropertyName("latitud")] + public double Latitude { get; set; } + [JsonPropertyName("longitud")] + public double Longitude { get; set; } +} + +public class Route +{ + [JsonPropertyName("id")] public string Id { get; set; } + [JsonPropertyName("sinoptico")] public string Sinoptico { get; set; } + [JsonPropertyName("nombre")] public string Name { get; set; } + [JsonPropertyName("estilo")] public string Colour { get; set; } + /// + /// 2025-12-28 23:57 + /// + [JsonPropertyName("proximoPaso")] public string NextArrival { get; set; } + [JsonPropertyName("minutosProximoPaso")] public int MinutesToArrive { get; set; } +} + -- cgit v1.3