line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
3
|
|
|
3
|
|
1202
|
use v5.16; |
|
3
|
|
|
|
|
10
|
|
|
3
|
|
|
|
|
116
|
|
2
|
3
|
|
|
3
|
|
17
|
use warnings; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
114
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Net::Minecraft::LoginResult { |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: Result info for a Minecraft Login. |
7
|
|
|
|
|
|
|
|
8
|
3
|
|
|
3
|
|
856
|
use Moo; |
|
3
|
|
|
|
|
16775
|
|
|
3
|
|
|
|
|
22
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
with 'Net::Minecraft::Role::LoginResult'; |
11
|
|
|
|
|
|
|
|
12
|
3
|
|
|
3
|
|
3253
|
use Params::Validate qw( validate SCALAR ); |
|
3
|
|
|
|
|
7858
|
|
|
3
|
|
|
|
|
827
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
0
|
1
|
0
|
sub is_success { return 1 } |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
has current_version => ( is => rwp =>, required => 1 ); |
19
|
|
|
|
|
|
|
has download_ticket => ( is => rwp =>, required => 1 ); |
20
|
|
|
|
|
|
|
has user => ( is => rwp =>, required => 1 ); |
21
|
|
|
|
|
|
|
has session_id => ( is => rwp =>, required => 1 ); |
22
|
|
|
|
|
|
|
has unique_id => ( is => rwp =>, required => 1 ); |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub parse { |
26
|
2
|
|
|
2
|
1
|
4
|
my ( $class, $content ) = @_; |
27
|
2
|
|
|
|
|
5
|
state $field_order = [qw( current_version download_ticket user session_id unique_id )]; |
28
|
2
|
|
|
|
|
12
|
my (@parts) = split /:/, $content; |
29
|
2
|
|
|
|
|
4
|
return $class->new( map { ( $field_order->[$_], $parts[$_] ) } 0 .. $#{$field_order} ); |
|
10
|
|
|
|
|
38
|
|
|
2
|
|
|
|
|
4
|
|
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
}; |
33
|
|
|
|
|
|
|
BEGIN { |
34
|
3
|
|
|
3
|
|
142
|
$Net::Minecraft::LoginResult::AUTHORITY = 'cpan:KENTNL'; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
{ |
37
|
|
|
|
|
|
|
$Net::Minecraft::LoginResult::VERSION = '0.002000'; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
__END__ |