| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package WebService::TypePad::Object::AudioLink; |
|
2
|
1
|
|
|
1
|
|
1126
|
use strict; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
31
|
|
|
3
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
22
|
|
|
4
|
1
|
|
|
1
|
|
6
|
use WebService::TypePad::Util::Coerce; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
22
|
|
|
5
|
1
|
|
|
1
|
|
4
|
use base qw(WebService::TypePad::Object::Base); |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
265
|
|
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub url { |
|
8
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
9
|
0
|
0
|
|
|
|
|
if (@_) { |
|
10
|
0
|
|
|
|
|
|
$self->{data}{url} = WebService::TypePad::Util::Coerce::coerce_string_in($_[0]); |
|
11
|
0
|
|
|
|
|
|
return $_[0]; |
|
12
|
|
|
|
|
|
|
} |
|
13
|
|
|
|
|
|
|
else { |
|
14
|
0
|
|
|
|
|
|
return $self->{data}{url}; |
|
15
|
|
|
|
|
|
|
} |
|
16
|
|
|
|
|
|
|
} |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub duration { |
|
19
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
20
|
0
|
0
|
|
|
|
|
if (@_) { |
|
21
|
0
|
|
|
|
|
|
$self->{data}{duration} = WebService::TypePad::Util::Coerce::coerce_integer_in($_[0]); |
|
22
|
0
|
|
|
|
|
|
return $_[0]; |
|
23
|
|
|
|
|
|
|
} |
|
24
|
|
|
|
|
|
|
else { |
|
25
|
0
|
|
|
|
|
|
return $self->{data}{duration}; |
|
26
|
|
|
|
|
|
|
} |
|
27
|
|
|
|
|
|
|
} |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 NAME |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
WebService::TypePad::Object::AudioLink - Perl representation of TypePad's AudioLink object type |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
use WebService::TypePad::Object::AudioLink; |
|
38
|
|
|
|
|
|
|
my $audio_link = WebService::TypePad::Object::AudioLink->new(); |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
This is a Perl representation of TypePad's AudioLink object type. |
|
43
|
|
|
|
|
|
|
For more information about this type and its parameters, see L. |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 PROPERTIES |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
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. |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head2 $audio_link->duration |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
The duration of the audio stream in seconds. |
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Returns a single C value. |
|
54
|
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head2 $audio_link->url |
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
The URL for an MP3 representation of the audio stream. |
|
58
|
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Returns a single C value. |
|
60
|
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
62
|
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=over 1 |
|
64
|
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=item * L |
|
66
|
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=back |