line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::LiveJournal::EventList; |
2
|
|
|
|
|
|
|
|
3
|
12
|
|
|
12
|
|
87
|
use strict; |
|
12
|
|
|
|
|
28
|
|
|
12
|
|
|
|
|
392
|
|
4
|
12
|
|
|
12
|
|
70
|
use warnings; |
|
12
|
|
|
|
|
27
|
|
|
12
|
|
|
|
|
291
|
|
5
|
12
|
|
|
12
|
|
66
|
use WebService::LiveJournal::List; |
|
12
|
|
|
|
|
25
|
|
|
12
|
|
|
|
|
266
|
|
6
|
12
|
|
|
12
|
|
61
|
use WebService::LiveJournal::Event; |
|
12
|
|
|
|
|
47
|
|
|
12
|
|
|
|
|
2970
|
|
7
|
|
|
|
|
|
|
our @ISA = qw/ WebService::LiveJournal::List /; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# ABSTRACT: (Deprecated) List of LiveJournal events |
10
|
|
|
|
|
|
|
our $VERSION = '0.09'; # VERSION |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub init |
14
|
|
|
|
|
|
|
{ |
15
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
16
|
0
|
|
|
|
|
|
my %arg = @_; |
17
|
|
|
|
|
|
|
|
18
|
0
|
0
|
|
|
|
|
if(defined $arg{response}) |
19
|
|
|
|
|
|
|
{ |
20
|
0
|
|
|
|
|
|
my $events = $arg{response}->value->{events}; |
21
|
0
|
0
|
|
|
|
|
if(defined $events) |
22
|
|
|
|
|
|
|
{ |
23
|
0
|
|
|
|
|
|
foreach my $e (@{ $events }) |
|
0
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
{ |
25
|
0
|
|
|
|
|
|
$self->push(new WebService::LiveJournal::Event(client => $arg{client}, %{ $e })); |
|
0
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
|
|
|
return $self; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub as_string |
34
|
|
|
|
|
|
|
{ |
35
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
36
|
0
|
|
|
|
|
|
my $str = '[eventlist '; |
37
|
0
|
|
|
|
|
|
foreach my $friend (@{ $self }) |
|
0
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
{ |
39
|
0
|
|
|
|
|
|
$str .= $friend->as_string; |
40
|
|
|
|
|
|
|
} |
41
|
0
|
|
|
|
|
|
$str .= ']'; |
42
|
0
|
|
|
|
|
|
$str; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1; |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
__END__ |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=pod |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=encoding UTF-8 |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 NAME |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
WebService::LiveJournal::EventList - (Deprecated) List of LiveJournal events |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 VERSION |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
version 0.09 |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 SYNOPSIS |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
use WebService::LiveJournal::Client; |
64
|
|
|
|
|
|
|
my $client = WebService::LiveJournal::Client->new( |
65
|
|
|
|
|
|
|
username => $user, |
66
|
|
|
|
|
|
|
password => $pass, |
67
|
|
|
|
|
|
|
); |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
# $list is an instance of WS::LJ::EventList |
70
|
|
|
|
|
|
|
my $list = $client->getevents('lastn', howmany => 50); |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
foreach my $event (@$list) |
73
|
|
|
|
|
|
|
{ |
74
|
|
|
|
|
|
|
# event is an instance of WS::LJ::Event |
75
|
|
|
|
|
|
|
... |
76
|
|
|
|
|
|
|
} |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head1 DESCRIPTION |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
B<NOTE>: This distribution is deprecated. It uses the outmoded XML-RPC protocol. |
81
|
|
|
|
|
|
|
LiveJournal has also been compromised. I recommend using DreamWidth instead |
82
|
|
|
|
|
|
|
(L<https://www.dreamwidth.org/>) which is in keeping with the original philosophy |
83
|
|
|
|
|
|
|
LiveJournal regarding advertising. |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
This class represents a list of LiveJournal events. It can be used |
86
|
|
|
|
|
|
|
as a array reference. |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=head1 SEE ALSO |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
L<WebService::LiveJournal>, |
91
|
|
|
|
|
|
|
L<WebService::LiveJournal::Event>, |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head1 AUTHOR |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
Graham Ollis <plicease@cpan.org> |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
This software is copyright (c) 2013 by Graham Ollis. |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
102
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=cut |