From 3ce586243a49f34b36d0fe4099bbfb2631610f11 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Mon, 16 Mar 2026 13:01:36 +0100 Subject: New marquee generation logic for Xunta --- src/Enmarcha.Sources.OpenTripPlannerGql/Queries/ArrivalsAtStop.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/Enmarcha.Sources.OpenTripPlannerGql') diff --git a/src/Enmarcha.Sources.OpenTripPlannerGql/Queries/ArrivalsAtStop.cs b/src/Enmarcha.Sources.OpenTripPlannerGql/Queries/ArrivalsAtStop.cs index 49dbd43..7cf107a 100644 --- a/src/Enmarcha.Sources.OpenTripPlannerGql/Queries/ArrivalsAtStop.cs +++ b/src/Enmarcha.Sources.OpenTripPlannerGql/Queries/ArrivalsAtStop.cs @@ -1,6 +1,5 @@ using System.Globalization; using System.Text.Json.Serialization; -using Enmarcha.Sources.OpenTripPlannerGql; namespace Enmarcha.Sources.OpenTripPlannerGql.Queries; @@ -19,6 +18,7 @@ public class ArrivalsAtStopContent : IGraphRequest stop(id:""{args.Id}"") {{ code name + desc lat lon routes {{ @@ -63,6 +63,7 @@ public class ArrivalsAtStopContent : IGraphRequest stop {{ gtfsId name + desc lat lon }} @@ -86,6 +87,8 @@ public class ArrivalsAtStopResponse : AbstractGraphResponse [JsonPropertyName("name")] public required string Name { get; set; } + [JsonPropertyName("desc")] public required string Description { get; set; } + [JsonPropertyName("lat")] public double Lat { get; set; } [JsonPropertyName("lon")] public double Lon { get; set; } @@ -157,6 +160,7 @@ public class ArrivalsAtStopResponse : AbstractGraphResponse { [JsonPropertyName("gtfsId")] public string? GtfsId { get; set; } [JsonPropertyName("name")] public required string Name { get; set; } + [JsonPropertyName("desc")] public required string Description { get; set; } [JsonPropertyName("lat")] public double Lat { get; set; } [JsonPropertyName("lon")] public double Lon { get; set; } } -- cgit v1.3