lib/Net/Async/Spotify/Object/Generated/Episode.pm

filter: Statementstmt 78.9% 15 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 76.0% 19 / 25 CC 1 SCAR 1.8
CC
1
Cov
79%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« lib/Net/Async/Spotify/Object/Generated/Disallows.pm ↑ Summary lib/Net/Async/Spotify/Object/Generated/EpisodeRestriction.pm »
1 package Net::Async::Spotify::Object::Generated::Episode;
2  
3 32 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 32 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 32 our $VERSION = '0.002'; # VERSION
7 32 our $AUTHORITY = 'cpan:VNEALV'; # AUTHORITY
8  
9 32 ▶use mro;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 32 ▶use parent qw(Net::Async::Spotify::Object::Base);
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 =encoding utf8
13  
14 =head1 NAME
15  
16 Net::Async::Spotify::Object::Generated::Episode - Package representing Spotify Episode Object
17  
18 =head1 DESCRIPTION
19  
20 Autogenerated module.
21 Based on https://developer.spotify.com/documentation/web-api/reference/#objects-index
22 Check C<crawl-api-doc.pl> for more information.
23  
24 =head1 PARAMETERS
25  
26 Those are Spotify Episode Object attributes:
27  
28 =over 4
29  
30 =item audio_preview_url
31  
32 Type:String
33 Description:A URL to a 30 second preview (MP3 format) of the episode. null if not available.
34  
35 =item description
36  
37 Type:String
38 Description:A description of the episode. HTML tags are stripped away from this field, use html_description field in case HTML tags are needed.
39  
40 =item duration_ms
41  
42 Type:Integer
43 Description:The episode length in milliseconds.
44  
45 =item explicit
46  
47 Type:Boolean
48 Description:Whether or not the episode has explicit content (true = yes it does; false = no it does not OR unknown).
49  
50 =item external_urls
51  
52 Type:ExternalUrlObject
53 Description:External URLs for this episode.
54  
55 =item href
56  
57 Type:String
58 Description:A link to the Web API endpoint providing full details of the episode.
59  
60 =item html_description
61  
62 Type:String
63 Description:A description of the episode. This field may contain HTML tags.
64  
65 =item id
66  
67 Type:String
68 Description:The Spotify ID for the episode.
69  
70 =item images
71  
72 Type:Array[ImageObject]
73 Description:The cover art for the episode in various sizes, widest first.
74  
75 =item is_externally_hosted
76  
77 Type:Boolean
78 Description:True if the episode is hosted outside of Spotify’s CDN.
79  
80 =item is_playable
81  
82 Type:Boolean
83 Description:True if the episode is playable in the given market. Otherwise false.
84  
85 =item language
86  
87 Type:String
88 Description:Note: This field is deprecated and might be removed in the future. Please use the languages field instead. The language used in the episode, identified by a ISO 639 code.
89  
90 =item languages
91  
92 Type:Array[String]
93 Description:A list of the languages used in the episode, identified by their ISO 639 code.
94  
95 =item name
96  
97 Type:String
98 Description:The name of the episode.
99  
100 =item release_date
101  
102 Type:String
103 Description:The date the episode was first released, for example "1981-12-15". Depending on the precision, it might be shown as "1981" or "1981-12".
104  
105 =item release_date_precision
106  
107 Type:String
108 Description:The precision with which release_date value is known: "year", "month", or "day".
109  
110 =item restrictions
111  
112 Type:EpisodeRestrictionObject
113 Description:Included in the response when a content restriction is applied.
114 See Restriction Object for more details.
115  
116 =item resume_point
117  
118 Type:ResumePointObject
119 Description:The user’s most recent position in the episode. Set if the supplied access token is a user token and has the scope user-read-playback-position.
120  
121 =item show
122  
123 Type:SimplifiedShowObject
124 Description:The show on which the episode belongs.
125  
126 =item type
127  
128 Type:String
129 Description:The object type: “episode”.
130  
131 =item uri
132  
133 Type:String
134 Description:The Spotify URI for the episode.
135  
136 =back
137  
138 =cut
139  
140 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
141 0 my ($class, %args) = @_;
142  
143 0 my $fields = {
144 audio_preview_url => 'String',
145 description => 'String',
146 duration_ms => 'Integer',
147 explicit => 'Boolean',
148 external_urls => 'ExternalUrlObject',
149 href => 'String',
150 html_description => 'String',
151 id => 'String',
152 images => 'Array[ImageObject]',
153 is_externally_hosted => 'Boolean',
154 is_playable => 'Boolean',
155 language => 'String',
156 languages => 'Array[String]',
157 name => 'String',
158 release_date => 'String',
159 release_date_precision => 'String',
160 restrictions => 'EpisodeRestrictionObject',
161 resume_point => 'ResumePointObject',
162 show => 'SimplifiedShowObject',
163 type => 'String',
164 uri => 'String',
165 };
166  
167 0 my $obj = next::method($class, $fields, %args);
168  
169 0 return $obj;
170 }
171  
172 32 1;
« lib/Net/Async/Spotify/Object/Generated/Disallows.pm ↑ Summary lib/Net/Async/Spotify/Object/Generated/EpisodeRestriction.pm »