lib/Net/Async/Spotify/Object/Generated/SimplifiedEpisode.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/SimplifiedArtist.pm ↑ Summary lib/Net/Async/Spotify/Object/Generated/SimplifiedPlaylist.pm »
1 package Net::Async::Spotify::Object::Generated::SimplifiedEpisode;
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::SimplifiedEpisode - Package representing Spotify SimplifiedEpisode 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 SimplifiedEpisode 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 type
122  
123 Type:String
124 Description:The object type: “episode”.
125  
126 =item uri
127  
128 Type:String
129 Description:The Spotify URI for the episode.
130  
131 =back
132  
133 =cut
134  
135 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
136 0 my ($class, %args) = @_;
137  
138 0 my $fields = {
139 audio_preview_url => 'String',
140 description => 'String',
141 duration_ms => 'Integer',
142 explicit => 'Boolean',
143 external_urls => 'ExternalUrlObject',
144 href => 'String',
145 html_description => 'String',
146 id => 'String',
147 images => 'Array[ImageObject]',
148 is_externally_hosted => 'Boolean',
149 is_playable => 'Boolean',
150 language => 'String',
151 languages => 'Array[String]',
152 name => 'String',
153 release_date => 'String',
154 release_date_precision => 'String',
155 restrictions => 'EpisodeRestrictionObject',
156 resume_point => 'ResumePointObject',
157 type => 'String',
158 uri => 'String',
159 };
160  
161 0 my $obj = next::method($class, $fields, %args);
162  
163 0 return $obj;
164 }
165  
166 32 1;
« lib/Net/Async/Spotify/Object/Generated/SimplifiedArtist.pm ↑ Summary lib/Net/Async/Spotify/Object/Generated/SimplifiedPlaylist.pm »