aboutsummaryrefslogtreecommitdiff
path: root/src/Enmarcha.Experimental.ServiceViewer/Views/Services/ServicesInDay.cshtml.cs
blob: 6b55e6431a838030e3e272173bd1fd86574b29f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using Enmarcha.Experimental.ServiceViewer.Data.Gtfs;

namespace Enmarcha.Experimental.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);