| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package WebService::TypePad::Object::Favorite; |
|
2
|
1
|
|
|
1
|
|
1261
|
use strict; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
30
|
|
|
3
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
22
|
|
|
4
|
1
|
|
|
1
|
|
4
|
use WebService::TypePad::Util::Coerce; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
20
|
|
|
5
|
1
|
|
|
1
|
|
5
|
use base qw(WebService::TypePad::Object::Base); |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
455
|
|
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub id { |
|
8
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
9
|
0
|
0
|
|
|
|
|
if (@_) { |
|
10
|
0
|
|
|
|
|
|
$self->{data}{id} = WebService::TypePad::Util::Coerce::coerce_string_in($_[0]); |
|
11
|
0
|
|
|
|
|
|
return $_[0]; |
|
12
|
|
|
|
|
|
|
} |
|
13
|
|
|
|
|
|
|
else { |
|
14
|
0
|
|
|
|
|
|
return $self->{data}{id}; |
|
15
|
|
|
|
|
|
|
} |
|
16
|
|
|
|
|
|
|
} |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub url_id { |
|
19
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
20
|
0
|
0
|
|
|
|
|
if (@_) { |
|
21
|
0
|
|
|
|
|
|
$self->{data}{urlId} = WebService::TypePad::Util::Coerce::coerce_string_in($_[0]); |
|
22
|
0
|
|
|
|
|
|
return $_[0]; |
|
23
|
|
|
|
|
|
|
} |
|
24
|
|
|
|
|
|
|
else { |
|
25
|
0
|
|
|
|
|
|
return $self->{data}{urlId}; |
|
26
|
|
|
|
|
|
|
} |
|
27
|
|
|
|
|
|
|
} |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub author { |
|
30
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
31
|
0
|
0
|
|
|
|
|
if (@_) { |
|
32
|
0
|
|
|
|
|
|
$self->{data}{author} = WebService::TypePad::Util::Coerce::coerce_User_in($_[0]); |
|
33
|
0
|
|
|
|
|
|
return $_[0]; |
|
34
|
|
|
|
|
|
|
} |
|
35
|
|
|
|
|
|
|
else { |
|
36
|
0
|
|
|
|
|
|
return WebService::TypePad::Util::Coerce::coerce_User_out($self->{data}{author}); |
|
37
|
|
|
|
|
|
|
} |
|
38
|
|
|
|
|
|
|
} |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub in_reply_to { |
|
41
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
42
|
0
|
0
|
|
|
|
|
if (@_) { |
|
43
|
0
|
|
|
|
|
|
$self->{data}{inReplyTo} = WebService::TypePad::Util::Coerce::coerce_AssetRef_in($_[0]); |
|
44
|
0
|
|
|
|
|
|
return $_[0]; |
|
45
|
|
|
|
|
|
|
} |
|
46
|
|
|
|
|
|
|
else { |
|
47
|
0
|
|
|
|
|
|
return WebService::TypePad::Util::Coerce::coerce_AssetRef_out($self->{data}{inReplyTo}); |
|
48
|
|
|
|
|
|
|
} |
|
49
|
|
|
|
|
|
|
} |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
sub published { |
|
52
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
53
|
0
|
0
|
|
|
|
|
if (@_) { |
|
54
|
0
|
|
|
|
|
|
$self->{data}{published} = WebService::TypePad::Util::Coerce::coerce_string_in($_[0]); |
|
55
|
0
|
|
|
|
|
|
return $_[0]; |
|
56
|
|
|
|
|
|
|
} |
|
57
|
|
|
|
|
|
|
else { |
|
58
|
0
|
|
|
|
|
|
return $self->{data}{published}; |
|
59
|
|
|
|
|
|
|
} |
|
60
|
|
|
|
|
|
|
} |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
1; |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 NAME |
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
WebService::TypePad::Object::Favorite - Perl representation of TypePad's Favorite object type |
|
67
|
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
use WebService::TypePad::Object::Favorite; |
|
71
|
|
|
|
|
|
|
my $favorite = WebService::TypePad::Object::Favorite->new(); |
|
72
|
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
74
|
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
This is a Perl representation of TypePad's Favorite object type. |
|
76
|
|
|
|
|
|
|
For more information about this type and its parameters, see L. |
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head1 PROPERTIES |
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
Each of these properties has an accessor method which will retrieve the property's value when called with no arguments or set the property's value when called with one argument. |
|
81
|
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head2 $favorite->author |
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
The owner of this favorite. This is the user that marked the asset as a favorite, not the owner of the target asset. |
|
85
|
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
Returns a single L object. |
|
87
|
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=head2 $favorite->id |
|
89
|
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
A URI that serves as a globally-unique id for the favorite. This can be used to recognise where the same favorite is returned in response to different requests, and as a mapping key for an application's local data store. |
|
91
|
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
Returns a single C value. |
|
93
|
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=head2 $favorite->in_reply_to |
|
95
|
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
A reference to the asset that has been marked as a favorite. |
|
97
|
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
Returns a single L object. |
|
99
|
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=head2 $favorite->published |
|
101
|
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
The time that the favorite was created, as an RFC3339 timestamp. |
|
103
|
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
Returns a single C value. |
|
105
|
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=head2 $favorite->url_id |
|
107
|
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
A string containing the canonical identifier that can be used as the "id" for this favorite in URLs. However, this should not be used as a database key to avoid collisions when an application is switched to a different backend server such as the development server; use the "id" property instead. |
|
109
|
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
Returns a single C value. |
|
111
|
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
113
|
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=over 1 |
|
115
|
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=item * L |
|
117
|
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
=item * L |
|
119
|
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
=back |