« lib/Net/Async/Spotify/Object/Generated/SimplifiedShow.pm
↑ Summary
lib/Net/Async/Spotify/Object/Generated/Track.pm »
| 1 | package Net::Async::Spotify::Object::Generated::SimplifiedTrack; | ||
| 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::SimplifiedTrack - Package representing Spotify SimplifiedTrack 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 SimplifiedTrack Object attributes: | ||
| 27 | |||
| 28 | =over 4 | ||
| 29 | |||
| 30 | =item artists | ||
| 31 | |||
| 32 | Type:Array[SimplifiedArtistObject] | ||
| 33 | Description:The artists who performed the track. Each artist object includes a link in href to more detailed information about the artist. | ||
| 34 | |||
| 35 | =item available_markets | ||
| 36 | |||
| 37 | Type:Array[String] | ||
| 38 | Description:A list of the countries in which the track can be played, identified by their ISO 3166-1 alpha-2 code. | ||
| 39 | |||
| 40 | =item disc_number | ||
| 41 | |||
| 42 | Type:Integer | ||
| 43 | Description:The disc number (usually 1 unless the album consists of more than one disc). | ||
| 44 | |||
| 45 | =item duration_ms | ||
| 46 | |||
| 47 | Type:Integer | ||
| 48 | Description:The track length in milliseconds. | ||
| 49 | |||
| 50 | =item explicit | ||
| 51 | |||
| 52 | Type:Boolean | ||
| 53 | Description:Whether or not the track has explicit lyrics ( true = yes it does; false = no it does not OR unknown). | ||
| 54 | |||
| 55 | =item external_urls | ||
| 56 | |||
| 57 | Type:ExternalUrlObject | ||
| 58 | Description:External URLs for this track. | ||
| 59 | |||
| 60 | =item href | ||
| 61 | |||
| 62 | Type:String | ||
| 63 | Description:A link to the Web API endpoint providing full details of the track. | ||
| 64 | |||
| 65 | =item id | ||
| 66 | |||
| 67 | Type:String | ||
| 68 | Description:The Spotify ID for the track. | ||
| 69 | |||
| 70 | =item is_local | ||
| 71 | |||
| 72 | Type:Boolean | ||
| 73 | Description:Whether or not the track is from a local file. | ||
| 74 | |||
| 75 | =item is_playable | ||
| 76 | |||
| 77 | Type:Boolean | ||
| 78 | Description:Part of the response when Track Relinking is applied. If true , the track is playable in the given market. Otherwise false. | ||
| 79 | |||
| 80 | =item linked_from | ||
| 81 | |||
| 82 | Type:LinkedTrackObject | ||
| 83 | Description:Part of the response when Track Relinking is applied and is only part of the response if the track linking, in fact, exists. The requested track has been replaced with a different track. The track in the linked_from object contains information about the originally requested track. | ||
| 84 | |||
| 85 | =item name | ||
| 86 | |||
| 87 | Type:String | ||
| 88 | Description:The name of the track. | ||
| 89 | |||
| 90 | =item preview_url | ||
| 91 | |||
| 92 | Type:String | ||
| 93 | Description:A URL to a 30 second preview (MP3 format) of the track. | ||
| 94 | |||
| 95 | =item restrictions | ||
| 96 | |||
| 97 | Type:TrackRestrictionObject | ||
| 98 | Description:Included in the response when a content restriction is applied. | ||
| 99 | See Restriction Object for more details. | ||
| 100 | |||
| 101 | =item track_number | ||
| 102 | |||
| 103 | Type:Integer | ||
| 104 | Description:The number of the track. If an album has several discs, the track number is the number on the specified disc. | ||
| 105 | |||
| 106 | =item type | ||
| 107 | |||
| 108 | Type:String | ||
| 109 | Description:The object type: “track”. | ||
| 110 | |||
| 111 | =item uri | ||
| 112 | |||
| 113 | Type:String | ||
| 114 | Description:The Spotify URI for the track. | ||
| 115 | |||
| 116 | =back | ||
| 117 | |||
| 118 | =cut | ||
| 119 | |||
| 120 | 0 | ▶ | sub new { |
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 121 | 0 | my ($class, %args) = @_; | |
| 122 | |||
| 123 | 0 | my $fields = { | |
| 124 | artists => 'Array[SimplifiedArtistObject]', | ||
| 125 | available_markets => 'Array[String]', | ||
| 126 | disc_number => 'Integer', | ||
| 127 | duration_ms => 'Integer', | ||
| 128 | explicit => 'Boolean', | ||
| 129 | external_urls => 'ExternalUrlObject', | ||
| 130 | href => 'String', | ||
| 131 | id => 'String', | ||
| 132 | is_local => 'Boolean', | ||
| 133 | is_playable => 'Boolean', | ||
| 134 | linked_from => 'LinkedTrackObject', | ||
| 135 | name => 'String', | ||
| 136 | preview_url => 'String', | ||
| 137 | restrictions => 'TrackRestrictionObject', | ||
| 138 | track_number => 'Integer', | ||
| 139 | type => 'String', | ||
| 140 | uri => 'String', | ||
| 141 | }; | ||
| 142 | |||
| 143 | 0 | my $obj = next::method($class, $fields, %args); | |
| 144 | |||
| 145 | 0 | return $obj; | |
| 146 | } | ||
| 147 | |||
| 148 | 32 | 1; | |