summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/IRIS/Result.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-04-18 20:28:49 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-04-18 20:28:49 +0200
commitef40feb961f363029d98524b62a38a977823bb2b (patch)
tree645534359fe155d0991bba458b8f6f491064ce5b /lib/Travel/Status/DE/IRIS/Result.pm
parent70033e0073c04903e228f0535bf68d55106779e0 (diff)
Start work on wings support
Diffstat (limited to 'lib/Travel/Status/DE/IRIS/Result.pm')
-rw-r--r--lib/Travel/Status/DE/IRIS/Result.pm32
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/IRIS/Result.pm b/lib/Travel/Status/DE/IRIS/Result.pm
index d4e3821..e49750f 100644
--- a/lib/Travel/Status/DE/IRIS/Result.pm
+++ b/lib/Travel/Status/DE/IRIS/Result.pm
@@ -323,6 +323,20 @@ sub set_tl {
return $self;
}
+sub add_arrival_wingref {
+ my ( $self, $ref ) = @_;
+
+ weaken($ref);
+ push( @{ $self->{arrival_wings} }, $ref );
+}
+
+sub add_departure_wingref {
+ my ( $self, $ref ) = @_;
+
+ weaken($ref);
+ push( @{ $self->{departure_wings} }, $ref );
+}
+
# List::Compare does not keep the order of its arguments (even with unsorted).
# So we need to re-sort all stops to maintain their original order.
sub sorted_sublist {
@@ -434,6 +448,24 @@ sub delay_messages {
return @ret;
}
+sub arrival_wings {
+ my ($self) = @_;
+
+ if ( $self->{arrival_wings} ) {
+ return @{ $self->{arrival_wings} };
+ }
+ return;
+}
+
+sub departure_wings {
+ my ($self) = @_;
+
+ if ( $self->{departure_wings} ) {
+ return @{ $self->{departure_wings} };
+ }
+ return;
+}
+
sub dump_message_codes {
my ($self) = @_;