aboutsummaryrefslogtreecommitdiff
path: root/src/Costasdev.Busurbano.ServiceViewer/Views/Services/ServicesInDay.cshtml.cs
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-10-21 15:34:24 +0200
committerAriel Costas Guerrero <ariel@costas.dev>2025-12-12 10:24:53 +0100
commit661cccc2da9a6c32b7b56c60313787282a9084ea (patch)
tree8176720aa99b80281a8351ae74170238c50b59cc /src/Costasdev.Busurbano.ServiceViewer/Views/Services/ServicesInDay.cshtml.cs
parented023a4b5ee257c0c367357b6d83f9778e2cf536 (diff)
Begin implementing
Diffstat (limited to 'src/Costasdev.Busurbano.ServiceViewer/Views/Services/ServicesInDay.cshtml.cs')
-rw-r--r--src/Costasdev.Busurbano.ServiceViewer/Views/Services/ServicesInDay.cshtml.cs39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/Costasdev.Busurbano.ServiceViewer/Views/Services/ServicesInDay.cshtml.cs b/src/Costasdev.Busurbano.ServiceViewer/Views/Services/ServicesInDay.cshtml.cs
new file mode 100644
index 0000000..b0c57c3
--- /dev/null
+++ b/src/Costasdev.Busurbano.ServiceViewer/Views/Services/ServicesInDay.cshtml.cs
@@ -0,0 +1,39 @@
+using Costasdev.ServiceViewer.Data.Gtfs;
+
+namespace Costasdev.ServiceViewer.Views.Services;
+
+public class ServiceInDayModel
+{
+ public List<ServicesInDayItem> Items { get; set; } = [];
+ public DateOnly Date { get; set; }
+}
+
+public class ServicesInDayItem
+{
+ public string ServiceId { get; set; }
+ public string ServiceName { get; set; }
+ public List<GtfsTrip> Trips { get; set; }
+ public List<TripGroup> TripGroups { get; set; }
+
+ public string ShiftStart { get; set; }
+ public string ShiftEnd { get; set; }
+
+ public ServicesInDayItem(
+ string serviceId,
+ string serviceName,
+ List<GtfsTrip> trips,
+ List<TripGroup> tripGroups,
+ string shiftStart,
+ string shiftEnd
+ ) {
+ ServiceId = serviceId;
+ ServiceName = serviceName;
+ Trips = trips;
+ TripGroups = tripGroups;
+
+ ShiftStart = shiftStart;
+ ShiftEnd = shiftEnd;
+ }
+}
+
+public record TripGroup(GtfsRoute route, int count);