diff options
| author | networkException <git@nwex.de> | 2025-06-09 13:36:20 +0200 |
|---|---|---|
| committer | Birte Friesel <derf@chaosdorf.de> | 2025-06-17 18:02:41 +0200 |
| commit | bbfbaa63bd7c3da1146cd248719e32eb90fc6ba2 (patch) | |
| tree | b4a7d909bfdf0015b2189cb758c0a9ed1abc9a1e /lib | |
| parent | c1558384205424dbd23067aa8a1a718c814c5c07 (diff) | |
Trip: Add route_text_color accessor
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Travel/Status/MOTIS/Trip.pm | 14 | ||||
| -rw-r--r-- | lib/Travel/Status/MOTIS/TripAtStopover.pm | 14 |
2 files changed, 16 insertions, 12 deletions
diff --git a/lib/Travel/Status/MOTIS/Trip.pm b/lib/Travel/Status/MOTIS/Trip.pm index 42e75b8..a01f2e6 100644 --- a/lib/Travel/Status/MOTIS/Trip.pm +++ b/lib/Travel/Status/MOTIS/Trip.pm @@ -20,6 +20,7 @@ Travel::Status::MOTIS::Trip->mk_ro_accessors( agency route_name route_color + route_text_color headsign is_realtime @@ -41,12 +42,13 @@ sub new { my $json = $opt{json}{legs}[0]; my $ref = { - id => $json->{tripId}, - mode => $json->{mode}, - agency => $json->{agencyName}, - route_name => $json->{routeShortName}, - route_color => $json->{routeColor}, - headsign => $json->{headsign}, + id => $json->{tripId}, + mode => $json->{mode}, + agency => $json->{agencyName}, + route_name => $json->{routeShortName}, + route_color => $json->{routeColor}, + route_text_color => $json->{routeTextColor}, + headsign => $json->{headsign}, is_cancelled => $json->{cancelled}, is_realtime => $json->{realTime}, diff --git a/lib/Travel/Status/MOTIS/TripAtStopover.pm b/lib/Travel/Status/MOTIS/TripAtStopover.pm index 2d58f98..13fc85e 100644 --- a/lib/Travel/Status/MOTIS/TripAtStopover.pm +++ b/lib/Travel/Status/MOTIS/TripAtStopover.pm @@ -17,6 +17,7 @@ Travel::Status::MOTIS::TripAtStopover->mk_ro_accessors( agency route_name route_color + route_text_color headsign is_cancelled @@ -32,12 +33,13 @@ sub new { my $json = $opt{json}; my $ref = { - id => $json->{tripId}, - mode => $json->{mode}, - agency => $json->{agencyName}, - route_name => $json->{routeShortName}, - route_color => $json->{routeColor}, - headsign => $json->{headsign}, + id => $json->{tripId}, + mode => $json->{mode}, + agency => $json->{agencyName}, + route_name => $json->{routeShortName}, + route_color => $json->{routeColor}, + route_text_color => $json->{routeTextColor}, + headsign => $json->{headsign}, is_cancelled => $json->{cancelled}, is_realtime => $json->{realTime}, |
