line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WWW::FCM::HTTP::Response::Result; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
19
|
use strict; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
85
|
|
4
|
3
|
|
|
3
|
|
17
|
use warnings; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
558
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub new { |
7
|
6
|
|
|
6
|
0
|
22
|
my ($class, $result) = @_; |
8
|
6
|
|
|
|
|
21
|
bless $result, $class; |
9
|
|
|
|
|
|
|
} |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub is_success { |
12
|
6
|
100
|
|
6
|
0
|
3606
|
shift->error ? 0 : 1; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub has_canonical_id { |
16
|
6
|
100
|
|
6
|
0
|
17
|
shift->registration_id ? 1 : 0; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub message_id { |
20
|
6
|
|
|
6
|
0
|
26
|
shift->{message_id}; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub error { |
24
|
12
|
|
|
12
|
0
|
4818
|
shift->{error}; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub registration_id { |
28
|
12
|
|
|
12
|
0
|
4855
|
shift->{registration_id}; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub sent_reg_id { |
32
|
6
|
|
|
6
|
0
|
27
|
shift->{_sent_reg_id}; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |