blob: b0c57c3add0ab56133ee3facb620e5776b56fa41 (
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 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);
|