blob: 8ce2f900e68934ab67af328591beb4663c20e7b9 (
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
40
41
42
43
44
45
46
47
48
49
50
|
namespace Enmarcha.Backend.Types.Transit;
public class RouteDto
{
public required string Id { get; set; }
public string? ShortName { get; set; }
public string? LongName { get; set; }
public string? Color { get; set; }
public string? TextColor { get; set; }
public int? SortOrder { get; set; }
public string? AgencyName { get; set; }
public string? AgencyId { get; set; }
public int TripCount { get; set; }
}
public class RouteDetailsDto
{
public string? ShortName { get; set; }
public string? LongName { get; set; }
public string? Color { get; set; }
public string? TextColor { get; set; }
public string? AgencyName { get; set; }
public string? AgencyId { get; set; }
public List<PatternDto> Patterns { get; set; } = [];
}
public class PatternDto
{
public required string Id { get; set; }
public string? Name { get; set; }
public string? Headsign { get; set; }
public int DirectionId { get; set; }
public string? Code { get; set; }
public string? SemanticHash { get; set; }
public int TripCount { get; set; }
public List<List<double>>? Geometry { get; set; }
public List<PatternStopDto> Stops { get; set; } = [];
}
public class PatternStopDto
{
public required string Id { get; set; }
public string? Code { get; set; }
public required string Name { get; set; }
public double Lat { get; set; }
public double Lon { get; set; }
public List<int> ScheduledDepartures { get; set; } = [];
public string? PickupType { get; set; }
public string? DropOffType { get; set; }
}
|