diff options
-rw-r--r-- | lib/Travel/Status/DE/HAFAS.pm | 2 | ||||
-rw-r--r-- | lib/Travel/Status/DE/HAFAS/Message.pm | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/HAFAS.pm b/lib/Travel/Status/DE/HAFAS.pm index 3020ae2..e67eb3b 100644 --- a/lib/Travel/Status/DE/HAFAS.pm +++ b/lib/Travel/Status/DE/HAFAS.pm @@ -619,6 +619,7 @@ sub add_message { my $short = $json->{txtS}; my $text = $json->{txtN}; + my $type = $json->{type}; my $code = $json->{code}; my $prio = $json->{prio}; @@ -643,6 +644,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, diff --git a/lib/Travel/Status/DE/HAFAS/Message.pm b/lib/Travel/Status/DE/HAFAS/Message.pm index 72d8e77..df49c5a 100644 --- a/lib/Travel/Status/DE/HAFAS/Message.pm +++ b/lib/Travel/Status/DE/HAFAS/Message.pm @@ -9,7 +9,7 @@ use parent 'Class::Accessor'; our $VERSION = '4.18'; Travel::Status::DE::HAFAS::Message->mk_ro_accessors( - qw(short text code prio is_him ref_count)); + qw(short type text code prio is_him ref_count)); sub new { my ( $obj, %conf ) = @_; |