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
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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,
+1 −1
Original line number Diff line number Diff line
@@ -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 ) = @_;