line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::StackExchange2::V2; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
17
|
use 5.006; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
37
|
|
5
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
36
|
|
6
|
1
|
|
|
1
|
|
5
|
use warnings FATAL => 'all'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
110
|
|
7
|
1
|
|
|
1
|
|
3163
|
use Data::Dumper; |
|
1
|
|
|
|
|
15974
|
|
|
1
|
|
|
|
|
84
|
|
8
|
1
|
|
|
1
|
|
826
|
use Net::StackExchange2::V2::Answers; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
41
|
|
9
|
1
|
|
|
1
|
|
1409
|
use Net::StackExchange2::V2::AccessTokens; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
36
|
|
10
|
1
|
|
|
1
|
|
884
|
use Net::StackExchange2::V2::Badges; |
|
1
|
|
|
|
|
77
|
|
|
1
|
|
|
|
|
39
|
|
11
|
1
|
|
|
1
|
|
1727
|
use Net::StackExchange2::V2::Comments; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
73
|
|
12
|
1
|
|
|
1
|
|
1541
|
use Net::StackExchange2::V2::Errors; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
13
|
1
|
|
|
1
|
|
4564
|
use Net::StackExchange2::V2::Events; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
48
|
|
14
|
1
|
|
|
1
|
|
1953
|
use Net::StackExchange2::V2::Info; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
15
|
1
|
|
|
1
|
|
1095
|
use Net::StackExchange2::V2::Posts; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
16
|
1
|
|
|
1
|
|
1115
|
use Net::StackExchange2::V2::Privileges; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
78
|
|
17
|
1
|
|
|
1
|
|
3891
|
use Net::StackExchange2::V2::Questions; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
40
|
|
18
|
1
|
|
|
1
|
|
1161
|
use Net::StackExchange2::V2::Revisions; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
199
|
|
19
|
1
|
|
|
1
|
|
842
|
use Net::StackExchange2::V2::Search; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
31
|
|
20
|
1
|
|
|
1
|
|
961
|
use Net::StackExchange2::V2::Sites; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
384
|
|
21
|
1
|
|
|
1
|
|
1331
|
use Net::StackExchange2::V2::SuggestedEdits; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
35
|
|
22
|
1
|
|
|
1
|
|
826
|
use Net::StackExchange2::V2::Tags; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
32
|
|
23
|
1
|
|
|
1
|
|
4550
|
use Net::StackExchange2::V2::Users; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
43
|
|
24
|
1
|
|
|
1
|
|
798
|
use Net::StackExchange2::V2::Filters; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
29
|
|
25
|
1
|
|
|
1
|
|
596
|
use Net::StackExchange2::V2::Inbox; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
33
|
|
26
|
1
|
|
|
1
|
|
863
|
use Net::StackExchange2::V2::Notifications; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
864
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
our $VERSION = "0.05"; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub new { |
31
|
0
|
|
|
0
|
0
|
|
my ($class, $params) = @_; |
32
|
0
|
|
|
|
|
|
my $self = undef; |
33
|
0
|
0
|
|
|
|
|
if($params) { |
34
|
0
|
|
|
|
|
|
$self = $params; |
35
|
|
|
|
|
|
|
} else { |
36
|
0
|
|
|
|
|
|
$self = {}; |
37
|
|
|
|
|
|
|
} |
38
|
0
|
|
|
|
|
|
bless $self, $class; |
39
|
0
|
|
|
|
|
|
return $self; |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
sub answers { |
42
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
43
|
0
|
|
|
|
|
|
return Net::StackExchange2::V2::Answers->new({ %$self }); |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
sub access_tokens { |
46
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
47
|
0
|
|
|
|
|
|
return Net::StackExchange2::V2::AccessTokens->new({ %$self }); |
48
|
|
|
|
|
|
|
} |
49
|
|
|
|
|
|
|
sub badges { |
50
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
51
|
0
|
|
|
|
|
|
return Net::StackExchange2::V2::Badges->new({ %$self }); |
52
|
|
|
|
|
|
|
} |
53
|
|
|
|
|
|
|
sub comments { |
54
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
55
|
0
|
|
|
|
|
|
return Net::StackExchange2::V2::Comments->new({ %$self }); |
56
|
|
|
|
|
|
|
} |
57
|
|
|
|
|
|
|
sub info { |
58
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
59
|
0
|
|
|
|
|
|
print "info...\n"; |
60
|
0
|
|
|
|
|
|
print Dumper($self); |
61
|
0
|
|
|
|
|
|
return Net::StackExchange2::V2::Info->new({ %$self }); |
62
|
|
|
|
|
|
|
} |
63
|
|
|
|
|
|
|
sub posts { |
64
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
65
|
0
|
|
|
|
|
|
return Net::StackExchange2::V2::Posts->new({ %$self}); |
66
|
|
|
|
|
|
|
} |
67
|
|
|
|
|
|
|
sub privileges { |
68
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
69
|
0
|
|
|
|
|
|
return Net::StackExchange2::V2::Privileges->new({ %$self }); |
70
|
|
|
|
|
|
|
} |
71
|
|
|
|
|
|
|
sub questions { |
72
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
73
|
0
|
|
|
|
|
|
return Net::StackExchange2::V2::Questions->new( { %$self }); |
74
|
|
|
|
|
|
|
} |
75
|
|
|
|
|
|
|
sub revisions { |
76
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
77
|
0
|
|
|
|
|
|
return Net::StackExchange2::V2::Revisions->new({ %$self }); |
78
|
|
|
|
|
|
|
} |
79
|
|
|
|
|
|
|
sub search { |
80
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
81
|
0
|
|
|
|
|
|
return Net::StackExchange2::V2::Search->new({ %$self }); |
82
|
|
|
|
|
|
|
} |
83
|
|
|
|
|
|
|
sub sites { |
84
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
85
|
0
|
|
|
|
|
|
return Net::StackExchange2::V2::Sites->new({ %$self }); |
86
|
|
|
|
|
|
|
} |
87
|
|
|
|
|
|
|
sub errors { |
88
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
89
|
0
|
|
|
|
|
|
return Net::StackExchange2::V2::Errors->new({ %$self }); |
90
|
|
|
|
|
|
|
} |
91
|
|
|
|
|
|
|
sub suggested_edits { |
92
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
93
|
0
|
|
|
|
|
|
return Net::StackExchange2::V2::SuggestedEdits->new({ %$self }); |
94
|
|
|
|
|
|
|
} |
95
|
|
|
|
|
|
|
sub tags { |
96
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
97
|
0
|
|
|
|
|
|
return Net::StackExchange2::V2::Tags->new({ %$self }); |
98
|
|
|
|
|
|
|
} |
99
|
|
|
|
|
|
|
sub users { |
100
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
101
|
0
|
|
|
|
|
|
return Net::StackExchange2::V2::Users->new({ %$self }); |
102
|
|
|
|
|
|
|
} |
103
|
|
|
|
|
|
|
sub events { |
104
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
105
|
0
|
|
|
|
|
|
return Net::StackExchange2::V2::Events->new({ %$self }); |
106
|
|
|
|
|
|
|
} |
107
|
|
|
|
|
|
|
sub filters { |
108
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
109
|
0
|
|
|
|
|
|
return Net::StackExchange2::V2::Filters->new({ %$self }); |
110
|
|
|
|
|
|
|
} |
111
|
|
|
|
|
|
|
sub inbox { |
112
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
113
|
0
|
|
|
|
|
|
return Net::StackExchange2::V2::Inbox->new({ %$self }); |
114
|
|
|
|
|
|
|
} |
115
|
|
|
|
|
|
|
sub notifications { |
116
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
117
|
0
|
|
|
|
|
|
return Net::StackExchange2::V2::Notifications->new({ %$self }); |
118
|
|
|
|
|
|
|
} |
119
|
|
|
|
|
|
|
1; #End of StackExchange2::V2 |
120
|
|
|
|
|
|
|
__END__ |