line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::LiveJournal::FriendList; |
2
|
|
|
|
|
|
|
|
3
|
12
|
|
|
12
|
|
97
|
use strict; |
|
12
|
|
|
|
|
32
|
|
|
12
|
|
|
|
|
405
|
|
4
|
12
|
|
|
12
|
|
78
|
use warnings; |
|
12
|
|
|
|
|
33
|
|
|
12
|
|
|
|
|
336
|
|
5
|
12
|
|
|
12
|
|
5378
|
use WebService::LiveJournal::List; |
|
12
|
|
|
|
|
36
|
|
|
12
|
|
|
|
|
383
|
|
6
|
12
|
|
|
12
|
|
5473
|
use WebService::LiveJournal::Friend; |
|
12
|
|
|
|
|
39
|
|
|
12
|
|
|
|
|
3782
|
|
7
|
|
|
|
|
|
|
our @ISA = qw/ WebService::LiveJournal::List /; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# ABSTRACT: (Deprecated) List of LiveJournal friends |
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 $friends = $arg{response}->value->{friends}; |
21
|
0
|
|
|
|
|
|
my $friendofs = $arg{response}->value->{friendofs}; |
22
|
0
|
0
|
|
|
|
|
if(defined $friends) |
23
|
|
|
|
|
|
|
{ |
24
|
0
|
|
|
|
|
|
foreach my $f (@{ $friends }) |
|
0
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
{ |
26
|
0
|
|
|
|
|
|
$self->push(new WebService::LiveJournal::Friend(%{ $f })); |
|
0
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
} |
29
|
0
|
0
|
|
|
|
|
if(defined $friendofs) |
30
|
|
|
|
|
|
|
{ |
31
|
0
|
|
|
|
|
|
foreach my $f (@{ $friendofs }) |
|
0
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
{ |
33
|
0
|
|
|
|
|
|
$self->push(new WebService::LiveJournal::Friend(%{ $f })); |
|
0
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
0
|
0
|
|
|
|
|
if(defined $arg{response_list}) |
39
|
|
|
|
|
|
|
{ |
40
|
0
|
|
|
|
|
|
foreach my $f (@{ $arg{response_list} }) |
|
0
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
{ |
42
|
0
|
|
|
|
|
|
$self->push(new WebService::LiveJournal::Friend(%{ $f })); |
|
0
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
0
|
|
|
|
|
|
return $self; |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
sub as_string |
50
|
|
|
|
|
|
|
{ |
51
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
52
|
0
|
|
|
|
|
|
my $str = '[friendlist '; |
53
|
0
|
|
|
|
|
|
foreach my $friend (@{ $self }) |
|
0
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
{ |
55
|
0
|
|
|
|
|
|
$str .= $friend->as_string; |
56
|
|
|
|
|
|
|
} |
57
|
0
|
|
|
|
|
|
$str .= ']'; |
58
|
0
|
|
|
|
|
|
$str; |
59
|
|
|
|
|
|
|
} |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
1; |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
__END__ |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=pod |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=encoding UTF-8 |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 NAME |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
WebService::LiveJournal::FriendList - (Deprecated) List of LiveJournal friends |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head1 VERSION |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
version 0.09 |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head1 DESCRIPTION |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
B<NOTE>: This distribution is deprecated. It uses the outmoded XML-RPC protocol. |
80
|
|
|
|
|
|
|
LiveJournal has also been compromised. I recommend using DreamWidth instead |
81
|
|
|
|
|
|
|
(L<https://www.dreamwidth.org/>) which is in keeping with the original philosophy |
82
|
|
|
|
|
|
|
LiveJournal regarding advertising. |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
List of friends returned from L<WebService::LiveJournal>. |
85
|
|
|
|
|
|
|
See L<WebService::LiveJournal::Friend> for how to use |
86
|
|
|
|
|
|
|
this class. |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=head1 SEE ALSO |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
L<WebService::LiveJournal>, |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=head1 AUTHOR |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
Graham Ollis <plicease@cpan.org> |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
This software is copyright (c) 2013 by Graham Ollis. |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
101
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=cut |