Skip to content
Snippets Groups Projects
Unverified Commit 3d150252 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

HAFAS/Message: expose message type (useful for filters)

parent 5807b0b7
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
......@@ -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 ) = @_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment