spotted 0.24.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/spotted/internal/type/base_model.rb +1 -0
- data/lib/spotted/models/album_bulk_retrieve_response.rb +26 -2
- data/lib/spotted/models/album_restriction_object.rb +13 -1
- data/lib/spotted/models/album_retrieve_response.rb +26 -2
- data/lib/spotted/models/artist_list_albums_response.rb +13 -1
- data/lib/spotted/models/artist_object.rb +13 -1
- data/lib/spotted/models/audio_analysis_retrieve_response.rb +39 -3
- data/lib/spotted/models/audio_feature_bulk_retrieve_response.rb +13 -1
- data/lib/spotted/models/audio_feature_retrieve_response.rb +13 -1
- data/lib/spotted/models/audiobook_base.rb +13 -1
- data/lib/spotted/models/audiobook_bulk_retrieve_response.rb +13 -1
- data/lib/spotted/models/audiobook_retrieve_response.rb +13 -1
- data/lib/spotted/models/author_object.rb +13 -1
- data/lib/spotted/models/browse/category_get_playlists_response.rb +13 -1
- data/lib/spotted/models/browse/category_list_response.rb +26 -2
- data/lib/spotted/models/browse/category_retrieve_response.rb +13 -1
- data/lib/spotted/models/browse_get_featured_playlists_response.rb +13 -1
- data/lib/spotted/models/browse_get_new_releases_response.rb +26 -2
- data/lib/spotted/models/chapter_bulk_retrieve_response.rb +13 -1
- data/lib/spotted/models/chapter_restriction_object.rb +13 -1
- data/lib/spotted/models/chapter_retrieve_response.rb +13 -1
- data/lib/spotted/models/copyright_object.rb +13 -1
- data/lib/spotted/models/episode_object.rb +13 -1
- data/lib/spotted/models/episode_restriction_object.rb +13 -1
- data/lib/spotted/models/external_id_object.rb +13 -1
- data/lib/spotted/models/external_url_object.rb +13 -1
- data/lib/spotted/models/followers_object.rb +13 -1
- data/lib/spotted/models/image_object.rb +13 -1
- data/lib/spotted/models/linked_track_object.rb +13 -1
- data/lib/spotted/models/me/album_list_response.rb +39 -3
- data/lib/spotted/models/me/audiobook_list_response.rb +26 -2
- data/lib/spotted/models/me/context_object.rb +13 -1
- data/lib/spotted/models/me/device_object.rb +13 -1
- data/lib/spotted/models/me/episode_list_response.rb +13 -1
- data/lib/spotted/models/me/following_bulk_retrieve_response.rb +30 -2
- data/lib/spotted/models/me/player/queue_get_response.rb +16 -1
- data/lib/spotted/models/me/player_get_currently_playing_response.rb +30 -2
- data/lib/spotted/models/me/player_get_state_response.rb +29 -2
- data/lib/spotted/models/me/player_list_recently_played_response.rb +16 -1
- data/lib/spotted/models/me/show_list_response.rb +13 -1
- data/lib/spotted/models/me/track_list_response.rb +13 -1
- data/lib/spotted/models/me_retrieve_response.rb +26 -2
- data/lib/spotted/models/narrator_object.rb +13 -1
- data/lib/spotted/models/paging_playlist_object.rb +13 -1
- data/lib/spotted/models/playlist_retrieve_response.rb +18 -5
- data/lib/spotted/models/playlist_track_object.rb +13 -1
- data/lib/spotted/models/playlist_tracks_ref_object.rb +13 -1
- data/lib/spotted/models/playlist_user_object.rb +13 -1
- data/lib/spotted/models/recommendation_get_response.rb +26 -2
- data/lib/spotted/models/resume_point_object.rb +13 -1
- data/lib/spotted/models/search_query_response.rb +91 -7
- data/lib/spotted/models/show_base.rb +13 -1
- data/lib/spotted/models/show_retrieve_response.rb +13 -1
- data/lib/spotted/models/simplified_artist_object.rb +13 -1
- data/lib/spotted/models/simplified_chapter_object.rb +13 -1
- data/lib/spotted/models/simplified_episode_object.rb +13 -1
- data/lib/spotted/models/simplified_playlist_object.rb +5 -4
- data/lib/spotted/models/simplified_track_object.rb +13 -1
- data/lib/spotted/models/time_interval_object.rb +16 -1
- data/lib/spotted/models/track_object.rb +26 -2
- data/lib/spotted/models/track_restriction_object.rb +13 -1
- data/lib/spotted/models/user_retrieve_profile_response.rb +13 -1
- data/lib/spotted/models/users/playlist_create_response.rb +18 -5
- data/lib/spotted/version.rb +1 -1
- data/rbi/spotted/models/album_bulk_retrieve_response.rbi +41 -3
- data/rbi/spotted/models/album_restriction_object.rbi +22 -1
- data/rbi/spotted/models/album_retrieve_response.rbi +41 -3
- data/rbi/spotted/models/artist_list_albums_response.rbi +19 -0
- data/rbi/spotted/models/artist_object.rbi +19 -0
- data/rbi/spotted/models/audio_analysis_retrieve_response.rbi +57 -0
- data/rbi/spotted/models/audio_feature_bulk_retrieve_response.rbi +19 -0
- data/rbi/spotted/models/audio_feature_retrieve_response.rbi +19 -0
- data/rbi/spotted/models/audiobook_base.rbi +20 -1
- data/rbi/spotted/models/audiobook_bulk_retrieve_response.rbi +22 -3
- data/rbi/spotted/models/audiobook_retrieve_response.rbi +22 -3
- data/rbi/spotted/models/author_object.rbi +22 -3
- data/rbi/spotted/models/browse/category_get_playlists_response.rbi +25 -3
- data/rbi/spotted/models/browse/category_list_response.rbi +44 -6
- data/rbi/spotted/models/browse/category_retrieve_response.rbi +22 -3
- data/rbi/spotted/models/browse_get_featured_playlists_response.rbi +25 -3
- data/rbi/spotted/models/browse_get_new_releases_response.rbi +41 -3
- data/rbi/spotted/models/chapter_bulk_retrieve_response.rbi +19 -0
- data/rbi/spotted/models/chapter_restriction_object.rbi +21 -2
- data/rbi/spotted/models/chapter_retrieve_response.rbi +19 -0
- data/rbi/spotted/models/copyright_object.rbi +25 -2
- data/rbi/spotted/models/episode_object.rbi +19 -0
- data/rbi/spotted/models/episode_restriction_object.rbi +21 -2
- data/rbi/spotted/models/external_id_object.rbi +28 -2
- data/rbi/spotted/models/external_url_object.rbi +21 -2
- data/rbi/spotted/models/followers_object.rbi +27 -4
- data/rbi/spotted/models/image_object.rbi +26 -3
- data/rbi/spotted/models/linked_track_object.rbi +19 -0
- data/rbi/spotted/models/me/album_list_response.rbi +63 -6
- data/rbi/spotted/models/me/audiobook_list_response.rbi +44 -6
- data/rbi/spotted/models/me/context_object.rbi +19 -0
- data/rbi/spotted/models/me/device_object.rbi +19 -0
- data/rbi/spotted/models/me/episode_list_response.rbi +27 -3
- data/rbi/spotted/models/me/following_bulk_retrieve_response.rbi +47 -3
- data/rbi/spotted/models/me/player/queue_get_response.rbi +19 -0
- data/rbi/spotted/models/me/player_get_currently_playing_response.rbi +38 -0
- data/rbi/spotted/models/me/player_get_state_response.rbi +38 -0
- data/rbi/spotted/models/me/player_list_recently_played_response.rbi +19 -0
- data/rbi/spotted/models/me/show_list_response.rbi +27 -4
- data/rbi/spotted/models/me/track_list_response.rbi +29 -4
- data/rbi/spotted/models/me_retrieve_response.rbi +47 -5
- data/rbi/spotted/models/narrator_object.rbi +22 -3
- data/rbi/spotted/models/paging_playlist_object.rbi +22 -3
- data/rbi/spotted/models/playlist_retrieve_response.rbi +30 -9
- data/rbi/spotted/models/playlist_track_object.rbi +19 -0
- data/rbi/spotted/models/playlist_tracks_ref_object.rbi +27 -2
- data/rbi/spotted/models/playlist_user_object.rbi +19 -0
- data/rbi/spotted/models/recommendation_get_response.rbi +41 -3
- data/rbi/spotted/models/resume_point_object.rbi +27 -4
- data/rbi/spotted/models/search_query_response.rbi +151 -18
- data/rbi/spotted/models/show_base.rbi +20 -1
- data/rbi/spotted/models/show_retrieve_response.rbi +22 -3
- data/rbi/spotted/models/simplified_artist_object.rbi +19 -0
- data/rbi/spotted/models/simplified_chapter_object.rbi +19 -0
- data/rbi/spotted/models/simplified_episode_object.rbi +19 -0
- data/rbi/spotted/models/simplified_playlist_object.rbi +8 -6
- data/rbi/spotted/models/simplified_track_object.rbi +19 -0
- data/rbi/spotted/models/time_interval_object.rbi +31 -4
- data/rbi/spotted/models/track_object.rbi +38 -0
- data/rbi/spotted/models/track_restriction_object.rbi +21 -2
- data/rbi/spotted/models/user_retrieve_profile_response.rbi +19 -0
- data/rbi/spotted/models/users/playlist_create_response.rbi +30 -9
- data/sig/spotted/models/album_bulk_retrieve_response.rbs +17 -3
- data/sig/spotted/models/album_restriction_object.rbs +10 -1
- data/sig/spotted/models/album_retrieve_response.rbs +17 -3
- data/sig/spotted/models/artist_list_albums_response.rbs +7 -0
- data/sig/spotted/models/artist_object.rbs +7 -0
- data/sig/spotted/models/audio_analysis_retrieve_response.rbs +21 -0
- data/sig/spotted/models/audio_feature_bulk_retrieve_response.rbs +7 -0
- data/sig/spotted/models/audio_feature_retrieve_response.rbs +7 -0
- data/sig/spotted/models/audiobook_base.rbs +9 -2
- data/sig/spotted/models/audiobook_bulk_retrieve_response.rbs +10 -3
- data/sig/spotted/models/audiobook_retrieve_response.rbs +10 -3
- data/sig/spotted/models/author_object.rbs +7 -3
- data/sig/spotted/models/browse/category_get_playlists_response.rbs +13 -3
- data/sig/spotted/models/browse/category_list_response.rbs +20 -6
- data/sig/spotted/models/browse/category_retrieve_response.rbs +10 -3
- data/sig/spotted/models/browse_get_featured_playlists_response.rbs +13 -3
- data/sig/spotted/models/browse_get_new_releases_response.rbs +17 -3
- data/sig/spotted/models/chapter_bulk_retrieve_response.rbs +7 -0
- data/sig/spotted/models/chapter_restriction_object.rbs +7 -3
- data/sig/spotted/models/chapter_retrieve_response.rbs +7 -0
- data/sig/spotted/models/copyright_object.rbs +7 -3
- data/sig/spotted/models/episode_object.rbs +7 -0
- data/sig/spotted/models/episode_restriction_object.rbs +7 -3
- data/sig/spotted/models/external_id_object.rbs +19 -4
- data/sig/spotted/models/external_url_object.rbs +7 -3
- data/sig/spotted/models/followers_object.rbs +11 -3
- data/sig/spotted/models/image_object.rbs +18 -3
- data/sig/spotted/models/linked_track_object.rbs +7 -0
- data/sig/spotted/models/me/album_list_response.rbs +30 -6
- data/sig/spotted/models/me/audiobook_list_response.rbs +20 -6
- data/sig/spotted/models/me/context_object.rbs +7 -0
- data/sig/spotted/models/me/device_object.rbs +7 -0
- data/sig/spotted/models/me/episode_list_response.rbs +12 -3
- data/sig/spotted/models/me/following_bulk_retrieve_response.rbs +18 -3
- data/sig/spotted/models/me/player/queue_get_response.rbs +7 -0
- data/sig/spotted/models/me/player_get_currently_playing_response.rbs +14 -0
- data/sig/spotted/models/me/player_get_state_response.rbs +14 -0
- data/sig/spotted/models/me/player_list_recently_played_response.rbs +7 -0
- data/sig/spotted/models/me/show_list_response.rbs +16 -3
- data/sig/spotted/models/me/track_list_response.rbs +16 -3
- data/sig/spotted/models/me_retrieve_response.rbs +23 -3
- data/sig/spotted/models/narrator_object.rbs +7 -3
- data/sig/spotted/models/paging_playlist_object.rbs +10 -3
- data/sig/spotted/models/playlist_retrieve_response.rbs +10 -3
- data/sig/spotted/models/playlist_track_object.rbs +7 -0
- data/sig/spotted/models/playlist_tracks_ref_object.rbs +8 -3
- data/sig/spotted/models/playlist_user_object.rbs +7 -0
- data/sig/spotted/models/recommendation_get_response.rbs +17 -3
- data/sig/spotted/models/resume_point_object.rbs +11 -2
- data/sig/spotted/models/search_query_response.rbs +67 -18
- data/sig/spotted/models/show_base.rbs +9 -2
- data/sig/spotted/models/show_retrieve_response.rbs +10 -3
- data/sig/spotted/models/simplified_artist_object.rbs +7 -0
- data/sig/spotted/models/simplified_chapter_object.rbs +7 -0
- data/sig/spotted/models/simplified_episode_object.rbs +7 -0
- data/sig/spotted/models/simplified_track_object.rbs +7 -0
- data/sig/spotted/models/time_interval_object.rbs +12 -2
- data/sig/spotted/models/track_object.rbs +14 -0
- data/sig/spotted/models/track_restriction_object.rbs +7 -3
- data/sig/spotted/models/user_retrieve_profile_response.rbs +7 -0
- data/sig/spotted/models/users/playlist_create_response.rbs +10 -3
- metadata +2 -2
|
@@ -39,11 +39,23 @@ module Spotted
|
|
|
39
39
|
end
|
|
40
40
|
attr_writer :audiobook
|
|
41
41
|
|
|
42
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
43
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
44
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
45
|
+
# public/private status, see
|
|
46
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
47
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
48
|
+
attr_reader :published
|
|
49
|
+
|
|
50
|
+
sig { params(published: T::Boolean).void }
|
|
51
|
+
attr_writer :published
|
|
52
|
+
|
|
42
53
|
sig do
|
|
43
54
|
params(
|
|
44
55
|
added_at: Time,
|
|
45
56
|
audiobook:
|
|
46
|
-
Spotted::Models::Me::AudiobookListResponse::Audiobook::OrHash
|
|
57
|
+
Spotted::Models::Me::AudiobookListResponse::Audiobook::OrHash,
|
|
58
|
+
published: T::Boolean
|
|
47
59
|
).returns(T.attached_class)
|
|
48
60
|
end
|
|
49
61
|
def self.new(
|
|
@@ -54,7 +66,13 @@ module Spotted
|
|
|
54
66
|
# release_date in an album object.
|
|
55
67
|
added_at: nil,
|
|
56
68
|
# Information about the audiobook.
|
|
57
|
-
audiobook: nil
|
|
69
|
+
audiobook: nil,
|
|
70
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
71
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
72
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
73
|
+
# public/private status, see
|
|
74
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
75
|
+
published: nil
|
|
58
76
|
)
|
|
59
77
|
end
|
|
60
78
|
|
|
@@ -62,7 +80,8 @@ module Spotted
|
|
|
62
80
|
override.returns(
|
|
63
81
|
{
|
|
64
82
|
added_at: Time,
|
|
65
|
-
audiobook: Spotted::Models::Me::AudiobookListResponse::Audiobook
|
|
83
|
+
audiobook: Spotted::Models::Me::AudiobookListResponse::Audiobook,
|
|
84
|
+
published: T::Boolean
|
|
66
85
|
}
|
|
67
86
|
)
|
|
68
87
|
end
|
|
@@ -163,6 +182,17 @@ module Spotted
|
|
|
163
182
|
end
|
|
164
183
|
attr_writer :items
|
|
165
184
|
|
|
185
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
186
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
187
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
188
|
+
# public/private status, see
|
|
189
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
190
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
191
|
+
attr_reader :published
|
|
192
|
+
|
|
193
|
+
sig { params(published: T::Boolean).void }
|
|
194
|
+
attr_writer :published
|
|
195
|
+
|
|
166
196
|
# The chapters of the audiobook.
|
|
167
197
|
sig do
|
|
168
198
|
params(
|
|
@@ -172,7 +202,8 @@ module Spotted
|
|
|
172
202
|
offset: Integer,
|
|
173
203
|
previous: T.nilable(String),
|
|
174
204
|
total: Integer,
|
|
175
|
-
items: T::Array[Spotted::SimplifiedChapterObject::OrHash]
|
|
205
|
+
items: T::Array[Spotted::SimplifiedChapterObject::OrHash],
|
|
206
|
+
published: T::Boolean
|
|
176
207
|
).returns(T.attached_class)
|
|
177
208
|
end
|
|
178
209
|
def self.new(
|
|
@@ -188,7 +219,13 @@ module Spotted
|
|
|
188
219
|
previous:,
|
|
189
220
|
# The total number of items available to return.
|
|
190
221
|
total:,
|
|
191
|
-
items: nil
|
|
222
|
+
items: nil,
|
|
223
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
224
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
225
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
226
|
+
# public/private status, see
|
|
227
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
228
|
+
published: nil
|
|
192
229
|
)
|
|
193
230
|
end
|
|
194
231
|
|
|
@@ -201,7 +238,8 @@ module Spotted
|
|
|
201
238
|
offset: Integer,
|
|
202
239
|
previous: T.nilable(String),
|
|
203
240
|
total: Integer,
|
|
204
|
-
items: T::Array[Spotted::SimplifiedChapterObject]
|
|
241
|
+
items: T::Array[Spotted::SimplifiedChapterObject],
|
|
242
|
+
published: T::Boolean
|
|
205
243
|
}
|
|
206
244
|
)
|
|
207
245
|
end
|
|
@@ -23,6 +23,17 @@ module Spotted
|
|
|
23
23
|
sig { params(href: String).void }
|
|
24
24
|
attr_writer :href
|
|
25
25
|
|
|
26
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
27
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
28
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
29
|
+
# public/private status, see
|
|
30
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
31
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
32
|
+
attr_reader :published
|
|
33
|
+
|
|
34
|
+
sig { params(published: T::Boolean).void }
|
|
35
|
+
attr_writer :published
|
|
36
|
+
|
|
26
37
|
# The object type, e.g. "artist", "playlist", "album", "show".
|
|
27
38
|
sig { returns(T.nilable(String)) }
|
|
28
39
|
attr_reader :type
|
|
@@ -42,6 +53,7 @@ module Spotted
|
|
|
42
53
|
params(
|
|
43
54
|
external_urls: Spotted::ExternalURLObject::OrHash,
|
|
44
55
|
href: String,
|
|
56
|
+
published: T::Boolean,
|
|
45
57
|
type: String,
|
|
46
58
|
uri: String
|
|
47
59
|
).returns(T.attached_class)
|
|
@@ -51,6 +63,12 @@ module Spotted
|
|
|
51
63
|
external_urls: nil,
|
|
52
64
|
# A link to the Web API endpoint providing full details of the track.
|
|
53
65
|
href: nil,
|
|
66
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
67
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
68
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
69
|
+
# public/private status, see
|
|
70
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
71
|
+
published: nil,
|
|
54
72
|
# The object type, e.g. "artist", "playlist", "album", "show".
|
|
55
73
|
type: nil,
|
|
56
74
|
# The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
@@ -64,6 +82,7 @@ module Spotted
|
|
|
64
82
|
{
|
|
65
83
|
external_urls: Spotted::ExternalURLObject,
|
|
66
84
|
href: String,
|
|
85
|
+
published: T::Boolean,
|
|
67
86
|
type: String,
|
|
68
87
|
uri: String
|
|
69
88
|
}
|
|
@@ -46,6 +46,17 @@ module Spotted
|
|
|
46
46
|
sig { params(name: String).void }
|
|
47
47
|
attr_writer :name
|
|
48
48
|
|
|
49
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
50
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
51
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
52
|
+
# public/private status, see
|
|
53
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
54
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
55
|
+
attr_reader :published
|
|
56
|
+
|
|
57
|
+
sig { params(published: T::Boolean).void }
|
|
58
|
+
attr_writer :published
|
|
59
|
+
|
|
49
60
|
# If this device can be used to set the volume.
|
|
50
61
|
sig { returns(T.nilable(T::Boolean)) }
|
|
51
62
|
attr_reader :supports_volume
|
|
@@ -71,6 +82,7 @@ module Spotted
|
|
|
71
82
|
is_private_session: T::Boolean,
|
|
72
83
|
is_restricted: T::Boolean,
|
|
73
84
|
name: String,
|
|
85
|
+
published: T::Boolean,
|
|
74
86
|
supports_volume: T::Boolean,
|
|
75
87
|
type: String,
|
|
76
88
|
volume_percent: T.nilable(Integer)
|
|
@@ -92,6 +104,12 @@ module Spotted
|
|
|
92
104
|
# configure (e.g. \"Loudest speaker\") and some devices have a generic name
|
|
93
105
|
# associated with the manufacturer or device model.
|
|
94
106
|
name: nil,
|
|
107
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
108
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
109
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
110
|
+
# public/private status, see
|
|
111
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
112
|
+
published: nil,
|
|
95
113
|
# If this device can be used to set the volume.
|
|
96
114
|
supports_volume: nil,
|
|
97
115
|
# Device type, such as "computer", "smartphone" or "speaker".
|
|
@@ -109,6 +127,7 @@ module Spotted
|
|
|
109
127
|
is_private_session: T::Boolean,
|
|
110
128
|
is_restricted: T::Boolean,
|
|
111
129
|
name: String,
|
|
130
|
+
published: T::Boolean,
|
|
112
131
|
supports_volume: T::Boolean,
|
|
113
132
|
type: String,
|
|
114
133
|
volume_percent: T.nilable(Integer)
|
|
@@ -28,10 +28,22 @@ module Spotted
|
|
|
28
28
|
sig { params(episode: Spotted::EpisodeObject::OrHash).void }
|
|
29
29
|
attr_writer :episode
|
|
30
30
|
|
|
31
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
32
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
33
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
34
|
+
# public/private status, see
|
|
35
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
36
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
37
|
+
attr_reader :published
|
|
38
|
+
|
|
39
|
+
sig { params(published: T::Boolean).void }
|
|
40
|
+
attr_writer :published
|
|
41
|
+
|
|
31
42
|
sig do
|
|
32
43
|
params(
|
|
33
44
|
added_at: Time,
|
|
34
|
-
episode: Spotted::EpisodeObject::OrHash
|
|
45
|
+
episode: Spotted::EpisodeObject::OrHash,
|
|
46
|
+
published: T::Boolean
|
|
35
47
|
).returns(T.attached_class)
|
|
36
48
|
end
|
|
37
49
|
def self.new(
|
|
@@ -40,12 +52,24 @@ module Spotted
|
|
|
40
52
|
# YYYY-MM-DDTHH:MM:SSZ.
|
|
41
53
|
added_at: nil,
|
|
42
54
|
# Information about the episode.
|
|
43
|
-
episode: nil
|
|
55
|
+
episode: nil,
|
|
56
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
57
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
58
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
59
|
+
# public/private status, see
|
|
60
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
61
|
+
published: nil
|
|
44
62
|
)
|
|
45
63
|
end
|
|
46
64
|
|
|
47
65
|
sig do
|
|
48
|
-
override.returns(
|
|
66
|
+
override.returns(
|
|
67
|
+
{
|
|
68
|
+
added_at: Time,
|
|
69
|
+
episode: Spotted::EpisodeObject,
|
|
70
|
+
published: T::Boolean
|
|
71
|
+
}
|
|
72
|
+
)
|
|
49
73
|
end
|
|
50
74
|
def to_hash
|
|
51
75
|
end
|
|
@@ -99,6 +99,17 @@ module Spotted
|
|
|
99
99
|
sig { params(next_: String).void }
|
|
100
100
|
attr_writer :next_
|
|
101
101
|
|
|
102
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
103
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
104
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
105
|
+
# public/private status, see
|
|
106
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
107
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
108
|
+
attr_reader :published
|
|
109
|
+
|
|
110
|
+
sig { params(published: T::Boolean).void }
|
|
111
|
+
attr_writer :published
|
|
112
|
+
|
|
102
113
|
# The total number of items available to return.
|
|
103
114
|
sig { returns(T.nilable(Integer)) }
|
|
104
115
|
attr_reader :total
|
|
@@ -114,6 +125,7 @@ module Spotted
|
|
|
114
125
|
items: T::Array[Spotted::ArtistObject::OrHash],
|
|
115
126
|
limit: Integer,
|
|
116
127
|
next_: String,
|
|
128
|
+
published: T::Boolean,
|
|
117
129
|
total: Integer
|
|
118
130
|
).returns(T.attached_class)
|
|
119
131
|
end
|
|
@@ -127,6 +139,12 @@ module Spotted
|
|
|
127
139
|
limit: nil,
|
|
128
140
|
# URL to the next page of items. ( `null` if none)
|
|
129
141
|
next_: nil,
|
|
142
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
143
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
144
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
145
|
+
# public/private status, see
|
|
146
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
147
|
+
published: nil,
|
|
130
148
|
# The total number of items available to return.
|
|
131
149
|
total: nil
|
|
132
150
|
)
|
|
@@ -141,6 +159,7 @@ module Spotted
|
|
|
141
159
|
items: T::Array[Spotted::ArtistObject],
|
|
142
160
|
limit: Integer,
|
|
143
161
|
next_: String,
|
|
162
|
+
published: T::Boolean,
|
|
144
163
|
total: Integer
|
|
145
164
|
}
|
|
146
165
|
)
|
|
@@ -171,19 +190,44 @@ module Spotted
|
|
|
171
190
|
sig { params(before: String).void }
|
|
172
191
|
attr_writer :before
|
|
173
192
|
|
|
193
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
194
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
195
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
196
|
+
# public/private status, see
|
|
197
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
198
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
199
|
+
attr_reader :published
|
|
200
|
+
|
|
201
|
+
sig { params(published: T::Boolean).void }
|
|
202
|
+
attr_writer :published
|
|
203
|
+
|
|
174
204
|
# The cursors used to find the next set of items.
|
|
175
205
|
sig do
|
|
176
|
-
params(
|
|
206
|
+
params(
|
|
207
|
+
after: String,
|
|
208
|
+
before: String,
|
|
209
|
+
published: T::Boolean
|
|
210
|
+
).returns(T.attached_class)
|
|
177
211
|
end
|
|
178
212
|
def self.new(
|
|
179
213
|
# The cursor to use as key to find the next page of items.
|
|
180
214
|
after: nil,
|
|
181
215
|
# The cursor to use as key to find the previous page of items.
|
|
182
|
-
before: nil
|
|
216
|
+
before: nil,
|
|
217
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
218
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
219
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
220
|
+
# public/private status, see
|
|
221
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
222
|
+
published: nil
|
|
183
223
|
)
|
|
184
224
|
end
|
|
185
225
|
|
|
186
|
-
sig
|
|
226
|
+
sig do
|
|
227
|
+
override.returns(
|
|
228
|
+
{ after: String, before: String, published: T::Boolean }
|
|
229
|
+
)
|
|
230
|
+
end
|
|
187
231
|
def to_hash
|
|
188
232
|
end
|
|
189
233
|
end
|
|
@@ -34,6 +34,17 @@ module Spotted
|
|
|
34
34
|
end
|
|
35
35
|
attr_writer :currently_playing
|
|
36
36
|
|
|
37
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
38
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
39
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
40
|
+
# public/private status, see
|
|
41
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
42
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
43
|
+
attr_reader :published
|
|
44
|
+
|
|
45
|
+
sig { params(published: T::Boolean).void }
|
|
46
|
+
attr_writer :published
|
|
47
|
+
|
|
37
48
|
# The tracks or episodes in the queue. Can be empty.
|
|
38
49
|
sig do
|
|
39
50
|
returns(
|
|
@@ -66,6 +77,7 @@ module Spotted
|
|
|
66
77
|
Spotted::TrackObject::OrHash,
|
|
67
78
|
Spotted::EpisodeObject::OrHash
|
|
68
79
|
),
|
|
80
|
+
published: T::Boolean,
|
|
69
81
|
queue:
|
|
70
82
|
T::Array[
|
|
71
83
|
T.any(
|
|
@@ -78,6 +90,12 @@ module Spotted
|
|
|
78
90
|
def self.new(
|
|
79
91
|
# The currently playing track or episode. Can be `null`.
|
|
80
92
|
currently_playing: nil,
|
|
93
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
94
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
95
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
96
|
+
# public/private status, see
|
|
97
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
98
|
+
published: nil,
|
|
81
99
|
# The tracks or episodes in the queue. Can be empty.
|
|
82
100
|
queue: nil
|
|
83
101
|
)
|
|
@@ -88,6 +106,7 @@ module Spotted
|
|
|
88
106
|
{
|
|
89
107
|
currently_playing:
|
|
90
108
|
Spotted::Models::Me::Player::QueueGetResponse::CurrentlyPlaying::Variants,
|
|
109
|
+
published: T::Boolean,
|
|
91
110
|
queue:
|
|
92
111
|
T::Array[
|
|
93
112
|
Spotted::Models::Me::Player::QueueGetResponse::Queue::Variants
|
|
@@ -81,6 +81,17 @@ module Spotted
|
|
|
81
81
|
sig { params(progress_ms: Integer).void }
|
|
82
82
|
attr_writer :progress_ms
|
|
83
83
|
|
|
84
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
85
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
86
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
87
|
+
# public/private status, see
|
|
88
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
89
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
90
|
+
attr_reader :published
|
|
91
|
+
|
|
92
|
+
sig { params(published: T::Boolean).void }
|
|
93
|
+
attr_writer :published
|
|
94
|
+
|
|
84
95
|
# Unix Millisecond Timestamp when data was fetched
|
|
85
96
|
sig { returns(T.nilable(Integer)) }
|
|
86
97
|
attr_reader :timestamp
|
|
@@ -101,6 +112,7 @@ module Spotted
|
|
|
101
112
|
Spotted::EpisodeObject::OrHash
|
|
102
113
|
),
|
|
103
114
|
progress_ms: Integer,
|
|
115
|
+
published: T::Boolean,
|
|
104
116
|
timestamp: Integer
|
|
105
117
|
).returns(T.attached_class)
|
|
106
118
|
end
|
|
@@ -119,6 +131,12 @@ module Spotted
|
|
|
119
131
|
item: nil,
|
|
120
132
|
# Progress into the currently playing track or episode. Can be `null`.
|
|
121
133
|
progress_ms: nil,
|
|
134
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
135
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
136
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
137
|
+
# public/private status, see
|
|
138
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
139
|
+
published: nil,
|
|
122
140
|
# Unix Millisecond Timestamp when data was fetched
|
|
123
141
|
timestamp: nil
|
|
124
142
|
)
|
|
@@ -135,6 +153,7 @@ module Spotted
|
|
|
135
153
|
item:
|
|
136
154
|
Spotted::Models::Me::PlayerGetCurrentlyPlayingResponse::Item::Variants,
|
|
137
155
|
progress_ms: Integer,
|
|
156
|
+
published: T::Boolean,
|
|
138
157
|
timestamp: Integer
|
|
139
158
|
}
|
|
140
159
|
)
|
|
@@ -165,6 +184,17 @@ module Spotted
|
|
|
165
184
|
sig { params(pausing: T::Boolean).void }
|
|
166
185
|
attr_writer :pausing
|
|
167
186
|
|
|
187
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
188
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
189
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
190
|
+
# public/private status, see
|
|
191
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
192
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
193
|
+
attr_reader :published
|
|
194
|
+
|
|
195
|
+
sig { params(published: T::Boolean).void }
|
|
196
|
+
attr_writer :published
|
|
197
|
+
|
|
168
198
|
# Resuming. Optional field.
|
|
169
199
|
sig { returns(T.nilable(T::Boolean)) }
|
|
170
200
|
attr_reader :resuming
|
|
@@ -227,6 +257,7 @@ module Spotted
|
|
|
227
257
|
params(
|
|
228
258
|
interrupting_playback: T::Boolean,
|
|
229
259
|
pausing: T::Boolean,
|
|
260
|
+
published: T::Boolean,
|
|
230
261
|
resuming: T::Boolean,
|
|
231
262
|
seeking: T::Boolean,
|
|
232
263
|
skipping_next: T::Boolean,
|
|
@@ -242,6 +273,12 @@ module Spotted
|
|
|
242
273
|
interrupting_playback: nil,
|
|
243
274
|
# Pausing. Optional field.
|
|
244
275
|
pausing: nil,
|
|
276
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
277
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
278
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
279
|
+
# public/private status, see
|
|
280
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
281
|
+
published: nil,
|
|
245
282
|
# Resuming. Optional field.
|
|
246
283
|
resuming: nil,
|
|
247
284
|
# Seeking playback location. Optional field.
|
|
@@ -266,6 +303,7 @@ module Spotted
|
|
|
266
303
|
{
|
|
267
304
|
interrupting_playback: T::Boolean,
|
|
268
305
|
pausing: T::Boolean,
|
|
306
|
+
published: T::Boolean,
|
|
269
307
|
resuming: T::Boolean,
|
|
270
308
|
seeking: T::Boolean,
|
|
271
309
|
skipping_next: T::Boolean,
|
|
@@ -86,6 +86,17 @@ module Spotted
|
|
|
86
86
|
sig { params(progress_ms: Integer).void }
|
|
87
87
|
attr_writer :progress_ms
|
|
88
88
|
|
|
89
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
90
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
91
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
92
|
+
# public/private status, see
|
|
93
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
94
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
95
|
+
attr_reader :published
|
|
96
|
+
|
|
97
|
+
sig { params(published: T::Boolean).void }
|
|
98
|
+
attr_writer :published
|
|
99
|
+
|
|
89
100
|
# off, track, context
|
|
90
101
|
sig { returns(T.nilable(String)) }
|
|
91
102
|
attr_reader :repeat_state
|
|
@@ -122,6 +133,7 @@ module Spotted
|
|
|
122
133
|
Spotted::EpisodeObject::OrHash
|
|
123
134
|
),
|
|
124
135
|
progress_ms: Integer,
|
|
136
|
+
published: T::Boolean,
|
|
125
137
|
repeat_state: String,
|
|
126
138
|
shuffle_state: T::Boolean,
|
|
127
139
|
timestamp: Integer
|
|
@@ -144,6 +156,12 @@ module Spotted
|
|
|
144
156
|
item: nil,
|
|
145
157
|
# Progress into the currently playing track or episode. Can be `null`.
|
|
146
158
|
progress_ms: nil,
|
|
159
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
160
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
161
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
162
|
+
# public/private status, see
|
|
163
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
164
|
+
published: nil,
|
|
147
165
|
# off, track, context
|
|
148
166
|
repeat_state: nil,
|
|
149
167
|
# If shuffle is on or off.
|
|
@@ -164,6 +182,7 @@ module Spotted
|
|
|
164
182
|
is_playing: T::Boolean,
|
|
165
183
|
item: Spotted::Models::Me::PlayerGetStateResponse::Item::Variants,
|
|
166
184
|
progress_ms: Integer,
|
|
185
|
+
published: T::Boolean,
|
|
167
186
|
repeat_state: String,
|
|
168
187
|
shuffle_state: T::Boolean,
|
|
169
188
|
timestamp: Integer
|
|
@@ -196,6 +215,17 @@ module Spotted
|
|
|
196
215
|
sig { params(pausing: T::Boolean).void }
|
|
197
216
|
attr_writer :pausing
|
|
198
217
|
|
|
218
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
219
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
220
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
221
|
+
# public/private status, see
|
|
222
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
223
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
224
|
+
attr_reader :published
|
|
225
|
+
|
|
226
|
+
sig { params(published: T::Boolean).void }
|
|
227
|
+
attr_writer :published
|
|
228
|
+
|
|
199
229
|
# Resuming. Optional field.
|
|
200
230
|
sig { returns(T.nilable(T::Boolean)) }
|
|
201
231
|
attr_reader :resuming
|
|
@@ -258,6 +288,7 @@ module Spotted
|
|
|
258
288
|
params(
|
|
259
289
|
interrupting_playback: T::Boolean,
|
|
260
290
|
pausing: T::Boolean,
|
|
291
|
+
published: T::Boolean,
|
|
261
292
|
resuming: T::Boolean,
|
|
262
293
|
seeking: T::Boolean,
|
|
263
294
|
skipping_next: T::Boolean,
|
|
@@ -273,6 +304,12 @@ module Spotted
|
|
|
273
304
|
interrupting_playback: nil,
|
|
274
305
|
# Pausing. Optional field.
|
|
275
306
|
pausing: nil,
|
|
307
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
308
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
309
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
310
|
+
# public/private status, see
|
|
311
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
312
|
+
published: nil,
|
|
276
313
|
# Resuming. Optional field.
|
|
277
314
|
resuming: nil,
|
|
278
315
|
# Seeking playback location. Optional field.
|
|
@@ -297,6 +334,7 @@ module Spotted
|
|
|
297
334
|
{
|
|
298
335
|
interrupting_playback: T::Boolean,
|
|
299
336
|
pausing: T::Boolean,
|
|
337
|
+
published: T::Boolean,
|
|
300
338
|
resuming: T::Boolean,
|
|
301
339
|
seeking: T::Boolean,
|
|
302
340
|
skipping_next: T::Boolean,
|
|
@@ -26,6 +26,17 @@ module Spotted
|
|
|
26
26
|
sig { params(played_at: Time).void }
|
|
27
27
|
attr_writer :played_at
|
|
28
28
|
|
|
29
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
30
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
31
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
32
|
+
# public/private status, see
|
|
33
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
34
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
35
|
+
attr_reader :published
|
|
36
|
+
|
|
37
|
+
sig { params(published: T::Boolean).void }
|
|
38
|
+
attr_writer :published
|
|
39
|
+
|
|
29
40
|
# The track the user listened to.
|
|
30
41
|
sig { returns(T.nilable(Spotted::TrackObject)) }
|
|
31
42
|
attr_reader :track
|
|
@@ -37,6 +48,7 @@ module Spotted
|
|
|
37
48
|
params(
|
|
38
49
|
context: Spotted::Me::ContextObject::OrHash,
|
|
39
50
|
played_at: Time,
|
|
51
|
+
published: T::Boolean,
|
|
40
52
|
track: Spotted::TrackObject::OrHash
|
|
41
53
|
).returns(T.attached_class)
|
|
42
54
|
end
|
|
@@ -45,6 +57,12 @@ module Spotted
|
|
|
45
57
|
context: nil,
|
|
46
58
|
# The date and time the track was played.
|
|
47
59
|
played_at: nil,
|
|
60
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
61
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
62
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
63
|
+
# public/private status, see
|
|
64
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
65
|
+
published: nil,
|
|
48
66
|
# The track the user listened to.
|
|
49
67
|
track: nil
|
|
50
68
|
)
|
|
@@ -55,6 +73,7 @@ module Spotted
|
|
|
55
73
|
{
|
|
56
74
|
context: Spotted::Me::ContextObject,
|
|
57
75
|
played_at: Time,
|
|
76
|
+
published: T::Boolean,
|
|
58
77
|
track: Spotted::TrackObject
|
|
59
78
|
}
|
|
60
79
|
)
|
|
@@ -23,6 +23,17 @@ module Spotted
|
|
|
23
23
|
sig { params(added_at: Time).void }
|
|
24
24
|
attr_writer :added_at
|
|
25
25
|
|
|
26
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
27
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
28
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
29
|
+
# public/private status, see
|
|
30
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
31
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
32
|
+
attr_reader :published
|
|
33
|
+
|
|
34
|
+
sig { params(published: T::Boolean).void }
|
|
35
|
+
attr_writer :published
|
|
36
|
+
|
|
26
37
|
# Information about the show.
|
|
27
38
|
sig { returns(T.nilable(Spotted::ShowBase)) }
|
|
28
39
|
attr_reader :show
|
|
@@ -31,9 +42,11 @@ module Spotted
|
|
|
31
42
|
attr_writer :show
|
|
32
43
|
|
|
33
44
|
sig do
|
|
34
|
-
params(
|
|
35
|
-
|
|
36
|
-
|
|
45
|
+
params(
|
|
46
|
+
added_at: Time,
|
|
47
|
+
published: T::Boolean,
|
|
48
|
+
show: Spotted::ShowBase::OrHash
|
|
49
|
+
).returns(T.attached_class)
|
|
37
50
|
end
|
|
38
51
|
def self.new(
|
|
39
52
|
# The date and time the show was saved. Timestamps are returned in ISO 8601 format
|
|
@@ -42,12 +55,22 @@ module Spotted
|
|
|
42
55
|
# additional field indicates the precision; see for example, release_date in an
|
|
43
56
|
# album object.
|
|
44
57
|
added_at: nil,
|
|
58
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
59
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
60
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
61
|
+
# public/private status, see
|
|
62
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
63
|
+
published: nil,
|
|
45
64
|
# Information about the show.
|
|
46
65
|
show: nil
|
|
47
66
|
)
|
|
48
67
|
end
|
|
49
68
|
|
|
50
|
-
sig
|
|
69
|
+
sig do
|
|
70
|
+
override.returns(
|
|
71
|
+
{ added_at: Time, published: T::Boolean, show: Spotted::ShowBase }
|
|
72
|
+
)
|
|
73
|
+
end
|
|
51
74
|
def to_hash
|
|
52
75
|
end
|
|
53
76
|
end
|