diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2023-11-11 08:31:09 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2023-11-11 08:31:09 +0100 |
commit | 8bbe6661f563f43f51e0cff2f8ec326a7149175b (patch) | |
tree | d79b161f91e46a3639bd96ac3686d89431ce9e19 | |
parent | 58fe3b8be3c434610354e9954e630da3146cc01a (diff) |
HAFAS: pass message type to Message objects
-rw-r--r-- | lib/Travel/Routing/DE/HAFAS.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Travel/Routing/DE/HAFAS.pm b/lib/Travel/Routing/DE/HAFAS.pm index 43ba966..a0fcc51 100644 --- a/lib/Travel/Routing/DE/HAFAS.pm +++ b/lib/Travel/Routing/DE/HAFAS.pm @@ -557,6 +557,7 @@ sub add_message { my $short = $json->{txtS}; my $text = $json->{txtN}; + my $type = $json->{type}; my $code = $json->{code}; my $prio = $json->{prio}; @@ -581,6 +582,7 @@ sub add_message { my $message = Travel::Status::DE::HAFAS::Message->new( short => $short, text => $text, + type => $type, code => $code, prio => $prio, is_him => $is_him, |