line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WWW::Foursquare::Updates; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
12
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
107
|
|
4
|
2
|
|
|
2
|
|
14
|
use warnings; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
561
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub new { |
7
|
0
|
|
|
0
|
0
|
|
my ($class, $request, $update_id) = @_; |
8
|
|
|
|
|
|
|
|
9
|
0
|
|
|
|
|
|
my $self = {}; |
10
|
0
|
|
|
|
|
|
bless $self, $class; |
11
|
0
|
|
|
|
|
|
$self->{request} = $request; |
12
|
0
|
|
|
|
|
|
$self->{update_id} = $update_id; |
13
|
|
|
|
|
|
|
|
14
|
0
|
|
|
|
|
|
return $self; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub info { |
18
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
|
|
|
my $path = sprintf "updates/%s", $self->{update_id}; |
21
|
0
|
|
|
|
|
|
return $self->{request}->GET($path, \%params); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
# general |
25
|
|
|
|
|
|
|
sub notifications { |
26
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
|
|
|
my $path = "updates/notifications"; |
29
|
0
|
|
|
|
|
|
return $self->{request}->GET($path, \%params); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
# ascpects |
33
|
|
|
|
|
|
|
sub marknotificationsread { |
34
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
35
|
|
|
|
|
|
|
|
36
|
0
|
|
|
|
|
|
my $path = "updates/marknotificationsread"; |
37
|
0
|
|
|
|
|
|
return $self->{request}->POST($path, \%params); |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
1; |