summaryrefslogtreecommitdiff
path: root/lib/Travel/Routing/DE
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-11-11 08:31:09 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2023-11-11 08:31:09 +0100
commit8bbe6661f563f43f51e0cff2f8ec326a7149175b (patch)
treed79b161f91e46a3639bd96ac3686d89431ce9e19 /lib/Travel/Routing/DE
parent58fe3b8be3c434610354e9954e630da3146cc01a (diff)
HAFAS: pass message type to Message objects
Diffstat (limited to 'lib/Travel/Routing/DE')
-rw-r--r--lib/Travel/Routing/DE/HAFAS.pm2
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,