lib/Net/Async/Spotify/Object/Generated/CurrentlyPlayingContext.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/CurrentlyPlaying.pm ↑ Summary lib/Net/Async/Spotify/Object/Generated/Cursor.pm »
1 package Net::Async::Spotify::Object::Generated::CurrentlyPlayingContext;
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::CurrentlyPlayingContext - Package representing Spotify CurrentlyPlayingContext 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 CurrentlyPlayingContext Object attributes:
27  
28 =over 4
29  
30 =item actions
31  
32 Type:DisallowsObject
33 Description:Allows to update the user interface based on which playback actions are available within the current context.
34  
35 =item context
36  
37 Type:ContextObject
38 Description:A Context Object. Can be null.
39  
40 =item currently_playing_type
41  
42 Type:String
43 Description:The object type of the currently playing item. Can be one of track, episode, ad or unknown.
44  
45 =item device
46  
47 Type:DeviceObject
48 Description:The device that is currently active.
49  
50 =item is_playing
51  
52 Type:Boolean
53 Description:If something is currently playing, return true.
54  
55 =item item
56  
57 Type:TrackObject | EpisodeObject
58 Description:The currently playing track or episode. Can be null.
59  
60 =item progress_ms
61  
62 Type:Integer
63 Description:Progress into the currently playing track or episode. Can be null.
64  
65 =item repeat_state
66  
67 Type:String
68 Description:off, track, context
69  
70 =item shuffle_state
71  
72 Type:String
73 Description:If shuffle is on or off.
74  
75 =item timestamp
76  
77 Type:Integer
78 Description:Unix Millisecond Timestamp when data was fetched.
79  
80 =back
81  
82 =cut
83  
84 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
85 0 my ($class, %args) = @_;
86  
87 0 my $fields = {
88 actions => 'DisallowsObject',
89 context => 'ContextObject',
90 currently_playing_type => 'String',
91 device => 'DeviceObject',
92 is_playing => 'Boolean',
93 item => 'TrackObject | EpisodeObject',
94 progress_ms => 'Integer',
95 repeat_state => 'String',
96 shuffle_state => 'String',
97 timestamp => 'Integer',
98 };
99  
100 0 my $obj = next::method($class, $fields, %args);
101  
102 0 return $obj;
103 }
104  
105 32 1;
« lib/Net/Async/Spotify/Object/Generated/CurrentlyPlaying.pm ↑ Summary lib/Net/Async/Spotify/Object/Generated/Cursor.pm »