From bed48c3d7e49b1736d50ce42d92bb6c18cf02504 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Mon, 22 Dec 2025 22:06:06 +0100 Subject: Refactor arrivals handling and improve type definitions; reorganise components --- .../GraphClient/App/StopTile.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/Costasdev.Busurbano.Backend/GraphClient/App/StopTile.cs') diff --git a/src/Costasdev.Busurbano.Backend/GraphClient/App/StopTile.cs b/src/Costasdev.Busurbano.Backend/GraphClient/App/StopTile.cs index 8a271f2..802de9a 100644 --- a/src/Costasdev.Busurbano.Backend/GraphClient/App/StopTile.cs +++ b/src/Costasdev.Busurbano.Backend/GraphClient/App/StopTile.cs @@ -42,35 +42,35 @@ public class StopTileResponse : AbstractGraphResponse public record Stop { [JsonPropertyName("gtfsId")] - public required string GtfsId { get; init; } + public required string GtfsId { get; set; } [JsonPropertyName("code")] - public string? Code { get; init; } + public string? Code { get; set; } [JsonPropertyName("name")] - public required string Name { get; init; } + public required string Name { get; set; } [JsonPropertyName("lat")] - public required double Lat { get; init; } + public required double Lat { get; set; } [JsonPropertyName("lon")] - public required double Lon { get; init; } + public required double Lon { get; set; } [JsonPropertyName("routes")] - public List? Routes { get; init; } + public List? Routes { get; set; } } public record Route { [JsonPropertyName("gtfsId")] - public required string GtfsId { get; init; } + public required string GtfsId { get; set; } [JsonPropertyName("shortName")] - public required string ShortName { get; init; } + public required string ShortName { get; set; } [JsonPropertyName("color")] - public string? Color { get; init; } + public string? Color { get; set; } [JsonPropertyName("textColor")] - public string? TextColor { get; init; } + public string? TextColor { get; set; } } } -- cgit v1.3