line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Travel::Routing::DE::EFA::Route::Message; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
14
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
59
|
|
4
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
67
|
|
5
|
2
|
|
|
2
|
|
58
|
use 5.010; |
|
2
|
|
|
|
|
6
|
|
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
11
|
use parent 'Class::Accessor'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
26
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '2.21'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
Travel::Routing::DE::EFA::Route::Message->mk_ro_accessors( |
12
|
|
|
|
|
|
|
qw(is_detailed summary subject subtitle raw_content)); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub new { |
15
|
5
|
|
|
5
|
1
|
17
|
my ( $obj, %conf ) = @_; |
16
|
|
|
|
|
|
|
|
17
|
5
|
|
|
|
|
16
|
my $ref = \%conf; |
18
|
|
|
|
|
|
|
|
19
|
5
|
50
|
|
|
|
27
|
if ( not defined $ref->{subject} ) { |
20
|
5
|
|
|
|
|
11
|
$ref->{subject} = $ref->{summary}; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
5
|
50
|
|
|
|
12
|
if ( defined $ref->{raw_content} ) { |
24
|
0
|
|
|
|
|
0
|
$ref->{is_detailed} = 1; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
else { |
27
|
5
|
|
|
|
|
11
|
$ref->{is_detailed} = 0; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
5
|
|
|
|
|
58
|
return bless( $ref, $obj ); |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub TO_JSON { |
34
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
35
|
|
|
|
|
|
|
|
36
|
0
|
|
|
|
|
|
return { %{$self} }; |
|
0
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
__END__ |