aboutsummaryrefslogtreecommitdiff
path: root/src/Enmarcha.Sources.OpenTripPlannerGql/Queries/ArrivalsAtStop.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Enmarcha.Sources.OpenTripPlannerGql/Queries/ArrivalsAtStop.cs')
-rw-r--r--src/Enmarcha.Sources.OpenTripPlannerGql/Queries/ArrivalsAtStop.cs6
1 files changed, 5 insertions, 1 deletions
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<ArrivalsAtStopContent.Args>
stop(id:""{args.Id}"") {{
code
name
+ desc
lat
lon
routes {{
@@ -63,6 +63,7 @@ public class ArrivalsAtStopContent : IGraphRequest<ArrivalsAtStopContent.Args>
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; }
}