« lib/Net/Async/Spotify/Object/Generated/SimplifiedEpisode.pm
↑ Summary
lib/Net/Async/Spotify/Object/Generated/SimplifiedShow.pm »
| 1 | package Net::Async::Spotify::Object::Generated::SimplifiedPlaylist; | ||
| 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::SimplifiedPlaylist - Package representing Spotify SimplifiedPlaylist 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 SimplifiedPlaylist Object attributes: | ||
| 27 | |||
| 28 | =over 4 | ||
| 29 | |||
| 30 | =item collaborative | ||
| 31 | |||
| 32 | Type:Boolean | ||
| 33 | Description:true if the owner allows other users to modify the playlist. | ||
| 34 | |||
| 35 | =item description | ||
| 36 | |||
| 37 | Type:String | ||
| 38 | Description:The playlist description. Only returned for modified, verified playlists, otherwise null. | ||
| 39 | |||
| 40 | =item external_urls | ||
| 41 | |||
| 42 | Type:ExternalUrlObject | ||
| 43 | Description:Known external URLs for this playlist. | ||
| 44 | |||
| 45 | =item href | ||
| 46 | |||
| 47 | Type:String | ||
| 48 | Description:A link to the Web API endpoint providing full details of the playlist. | ||
| 49 | |||
| 50 | =item id | ||
| 51 | |||
| 52 | Type:String | ||
| 53 | Description:The Spotify ID for the playlist. | ||
| 54 | |||
| 55 | =item images | ||
| 56 | |||
| 57 | Type:Array[ImageObject] | ||
| 58 | Description:Images for the playlist. The array may be empty or contain up to three images. The images are returned by size in descending order. See Working with Playlists. Note: If returned, the source URL for the image (url) is temporary and will expire in less than a day. | ||
| 59 | |||
| 60 | =item name | ||
| 61 | |||
| 62 | Type:String | ||
| 63 | Description:The name of the playlist. | ||
| 64 | |||
| 65 | =item owner | ||
| 66 | |||
| 67 | Type:PublicUserObject | ||
| 68 | Description:The user who owns the playlist | ||
| 69 | |||
| 70 | =item public | ||
| 71 | |||
| 72 | Type:Boolean | ||
| 73 | Description:The playlist’s public/private status: true the playlist is public, false the playlist is private, null the playlist status is not relevant. For more about public/private status, see Working with Playlists | ||
| 74 | |||
| 75 | =item snapshot_id | ||
| 76 | |||
| 77 | Type:String | ||
| 78 | Description:The version identifier for the current playlist. Can be supplied in other requests to target a specific playlist version | ||
| 79 | |||
| 80 | =item tracks | ||
| 81 | |||
| 82 | Type:PlaylistTracksRefObject | ||
| 83 | Description:A collection containing a link ( href ) to the Web API endpoint where full details of the playlist’s tracks can be retrieved, along with the total number of tracks in the playlist. Note, a track object may be null. This can happen if a track is no longer available. | ||
| 84 | |||
| 85 | =item type | ||
| 86 | |||
| 87 | Type:String | ||
| 88 | Description:The object type: “playlist” | ||
| 89 | |||
| 90 | =item uri | ||
| 91 | |||
| 92 | Type:String | ||
| 93 | Description:The Spotify URI for the playlist. | ||
| 94 | |||
| 95 | =back | ||
| 96 | |||
| 97 | =cut | ||
| 98 | |||
| 99 | 0 | ▶ | sub new { |
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 100 | 0 | my ($class, %args) = @_; | |
| 101 | |||
| 102 | 0 | my $fields = { | |
| 103 | collaborative => 'Boolean', | ||
| 104 | description => 'String', | ||
| 105 | external_urls => 'ExternalUrlObject', | ||
| 106 | href => 'String', | ||
| 107 | id => 'String', | ||
| 108 | images => 'Array[ImageObject]', | ||
| 109 | name => 'String', | ||
| 110 | owner => 'PublicUserObject', | ||
| 111 | public => 'Boolean', | ||
| 112 | snapshot_id => 'String', | ||
| 113 | tracks => 'PlaylistTracksRefObject', | ||
| 114 | type => 'String', | ||
| 115 | uri => 'String', | ||
| 116 | }; | ||
| 117 | |||
| 118 | 0 | my $obj = next::method($class, $fields, %args); | |
| 119 | |||
| 120 | 0 | return $obj; | |
| 121 | } | ||
| 122 | |||
| 123 | 32 | 1; | |