« lib/Net/Async/Spotify/API/Player.pm
↑ Summary
lib/Net/Async/Spotify/Object/Generated/AlbumRestriction.pm »
| 1 | package Net::Async::Spotify::Object::Generated::Album; | ||
| 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::Album - Package representing Spotify Album 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 Album Object attributes: | ||
| 27 | |||
| 28 | =over 4 | ||
| 29 | |||
| 30 | =item album_type | ||
| 31 | |||
| 32 | Type:String | ||
| 33 | Description:The type of the album: album, single, or compilation. | ||
| 34 | |||
| 35 | =item artists | ||
| 36 | |||
| 37 | Type:Array[ArtistObject] | ||
| 38 | Description:The artists of the album. Each artist object includes a link in href to more detailed information about the artist. | ||
| 39 | |||
| 40 | =item available_markets | ||
| 41 | |||
| 42 | Type:Array[String] | ||
| 43 | Description:The markets in which the album is available: ISO 3166-1 alpha-2 country codes. Note that an album is considered available in a market when at least 1 of its tracks is available in that market. | ||
| 44 | |||
| 45 | =item copyrights | ||
| 46 | |||
| 47 | Type:Array[CopyrightObject] | ||
| 48 | Description:The copyright statements of the album. | ||
| 49 | |||
| 50 | =item external_ids | ||
| 51 | |||
| 52 | Type:ExternalIdObject | ||
| 53 | Description:Known external IDs for the album. | ||
| 54 | |||
| 55 | =item external_urls | ||
| 56 | |||
| 57 | Type:ExternalUrlObject | ||
| 58 | Description:Known external URLs for this album. | ||
| 59 | |||
| 60 | =item genres | ||
| 61 | |||
| 62 | Type:Array[String] | ||
| 63 | Description:A list of the genres used to classify the album. For example: “Prog Rock” , “Post-Grunge”. (If not yet classified, the array is empty.) | ||
| 64 | |||
| 65 | =item href | ||
| 66 | |||
| 67 | Type:String | ||
| 68 | Description:A link to the Web API endpoint providing full details of the album. | ||
| 69 | |||
| 70 | =item id | ||
| 71 | |||
| 72 | Type:String | ||
| 73 | Description:The Spotify ID for the album. | ||
| 74 | |||
| 75 | =item images | ||
| 76 | |||
| 77 | Type:Array[ImageObject] | ||
| 78 | Description:The cover art for the album in various sizes, widest first. | ||
| 79 | |||
| 80 | =item label | ||
| 81 | |||
| 82 | Type:String | ||
| 83 | Description:The label for the album. | ||
| 84 | |||
| 85 | =item name | ||
| 86 | |||
| 87 | Type:String | ||
| 88 | Description:The name of the album. In case of an album takedown, the value may be an empty string. | ||
| 89 | |||
| 90 | =item popularity | ||
| 91 | |||
| 92 | Type:Integer | ||
| 93 | Description:The popularity of the album. The value will be between 0 and 100, with 100 being the most popular. The popularity is calculated from the popularity of the album’s individual tracks. | ||
| 94 | |||
| 95 | =item release_date | ||
| 96 | |||
| 97 | Type:String | ||
| 98 | Description:The date the album was first released, for example “1981-12-15”. Depending on the precision, it might be shown as “1981” or “1981-12”. | ||
| 99 | |||
| 100 | =item release_date_precision | ||
| 101 | |||
| 102 | Type:String | ||
| 103 | Description:The precision with which release_date value is known: “year” , “month” , or “day”. | ||
| 104 | |||
| 105 | =item restrictions | ||
| 106 | |||
| 107 | Type:AlbumRestrictionObject | ||
| 108 | Description:Included in the response when a content restriction is applied. | ||
| 109 | See Restriction Object for more details. | ||
| 110 | |||
| 111 | =item total_tracks | ||
| 112 | |||
| 113 | Type:Integer | ||
| 114 | Description:The total number of tracks in the album. | ||
| 115 | |||
| 116 | =item tracks | ||
| 117 | |||
| 118 | Type:Array[SimplifiedTrackObject] | ||
| 119 | Description:The tracks of the album. | ||
| 120 | |||
| 121 | =item type | ||
| 122 | |||
| 123 | Type:String | ||
| 124 | Description:The object type: “album” | ||
| 125 | |||
| 126 | =item uri | ||
| 127 | |||
| 128 | Type:String | ||
| 129 | Description:The Spotify URI for the album. | ||
| 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 | album_type => 'String', | ||
| 140 | artists => 'Array[ArtistObject]', | ||
| 141 | available_markets => 'Array[String]', | ||
| 142 | copyrights => 'Array[CopyrightObject]', | ||
| 143 | external_ids => 'ExternalIdObject', | ||
| 144 | external_urls => 'ExternalUrlObject', | ||
| 145 | genres => 'Array[String]', | ||
| 146 | href => 'String', | ||
| 147 | id => 'String', | ||
| 148 | images => 'Array[ImageObject]', | ||
| 149 | label => 'String', | ||
| 150 | name => 'String', | ||
| 151 | popularity => 'Integer', | ||
| 152 | release_date => 'String', | ||
| 153 | release_date_precision => 'String', | ||
| 154 | restrictions => 'AlbumRestrictionObject', | ||
| 155 | total_tracks => 'Integer', | ||
| 156 | tracks => 'Array[SimplifiedTrackObject]', | ||
| 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; | |