spotted 0.1.0 → 0.2.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/models/audiobook_base.rb +182 -0
- data/lib/spotted/models/audiobook_list_response.rb +2 -174
- data/lib/spotted/models/audiobook_retrieve_response.rb +2 -174
- data/lib/spotted/models/chapter_list_response.rb +3 -183
- data/lib/spotted/models/chapter_retrieve_response.rb +3 -183
- data/lib/spotted/models/episode_object.rb +3 -166
- data/lib/spotted/models/me/audiobook_list_response.rb +2 -174
- data/lib/spotted/models/me/show_list_response.rb +3 -166
- data/lib/spotted/models/search_retrieve_response.rb +6 -345
- data/lib/spotted/models/show_base.rb +165 -0
- data/lib/spotted/models/show_list_response.rb +3 -163
- data/lib/spotted/models/show_retrieve_response.rb +2 -157
- data/lib/spotted/models.rb +4 -0
- data/lib/spotted/version.rb +1 -1
- data/lib/spotted.rb +2 -0
- data/rbi/spotted/models/audiobook_base.rbi +219 -0
- data/rbi/spotted/models/audiobook_list_response.rbi +4 -212
- data/rbi/spotted/models/audiobook_retrieve_response.rbi +4 -209
- data/rbi/spotted/models/chapter_list_response.rbi +4 -249
- data/rbi/spotted/models/chapter_retrieve_response.rbi +4 -245
- data/rbi/spotted/models/episode_object.rbi +4 -199
- data/rbi/spotted/models/me/audiobook_list_response.rbi +4 -212
- data/rbi/spotted/models/me/show_list_response.rbi +6 -227
- data/rbi/spotted/models/search_retrieve_response.rbi +6 -473
- data/rbi/spotted/models/show_base.rbi +194 -0
- data/rbi/spotted/models/show_list_response.rbi +5 -216
- data/rbi/spotted/models/show_retrieve_response.rbi +4 -182
- data/rbi/spotted/models.rbi +4 -0
- data/sig/spotted/models/audiobook_base.rbs +122 -0
- data/sig/spotted/models/audiobook_list_response.rbs +8 -111
- data/sig/spotted/models/audiobook_retrieve_response.rbs +8 -113
- data/sig/spotted/models/chapter_list_response.rbs +4 -123
- data/sig/spotted/models/chapter_retrieve_response.rbs +4 -123
- data/sig/spotted/models/episode_object.rbs +4 -111
- data/sig/spotted/models/me/audiobook_list_response.rbs +8 -111
- data/sig/spotted/models/me/show_list_response.rbs +5 -121
- data/sig/spotted/models/search_retrieve_response.rbs +8 -234
- data/sig/spotted/models/show_base.rbs +110 -0
- data/sig/spotted/models/show_list_response.rbs +4 -116
- data/sig/spotted/models/show_retrieve_response.rbs +8 -101
- data/sig/spotted/models.rbs +4 -0
- metadata +7 -1
|
@@ -4,7 +4,7 @@ module Spotted
|
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
6
|
audio_preview_url: String?,
|
|
7
|
-
audiobook: Spotted::
|
|
7
|
+
audiobook: Spotted::AudiobookBase,
|
|
8
8
|
chapter_number: Integer,
|
|
9
9
|
description: String,
|
|
10
10
|
duration_ms: Integer,
|
|
@@ -30,7 +30,7 @@ module Spotted
|
|
|
30
30
|
|
|
31
31
|
attr_accessor audio_preview_url: String?
|
|
32
32
|
|
|
33
|
-
attr_accessor audiobook: Spotted::
|
|
33
|
+
attr_accessor audiobook: Spotted::AudiobookBase
|
|
34
34
|
|
|
35
35
|
attr_accessor chapter_number: Integer
|
|
36
36
|
|
|
@@ -81,7 +81,7 @@ module Spotted
|
|
|
81
81
|
def initialize: (
|
|
82
82
|
id: String,
|
|
83
83
|
audio_preview_url: String?,
|
|
84
|
-
audiobook: Spotted::
|
|
84
|
+
audiobook: Spotted::AudiobookBase,
|
|
85
85
|
chapter_number: Integer,
|
|
86
86
|
description: String,
|
|
87
87
|
duration_ms: Integer,
|
|
@@ -105,7 +105,7 @@ module Spotted
|
|
|
105
105
|
def to_hash: -> {
|
|
106
106
|
id: String,
|
|
107
107
|
audio_preview_url: String?,
|
|
108
|
-
audiobook: Spotted::
|
|
108
|
+
audiobook: Spotted::AudiobookBase,
|
|
109
109
|
chapter_number: Integer,
|
|
110
110
|
description: String,
|
|
111
111
|
duration_ms: Integer,
|
|
@@ -126,125 +126,6 @@ module Spotted
|
|
|
126
126
|
resume_point: Spotted::ResumePointObject
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
type audiobook =
|
|
130
|
-
{
|
|
131
|
-
id: String,
|
|
132
|
-
authors: ::Array[Spotted::AuthorObject],
|
|
133
|
-
available_markets: ::Array[String],
|
|
134
|
-
copyrights: ::Array[Spotted::CopyrightObject],
|
|
135
|
-
description: String,
|
|
136
|
-
explicit: bool,
|
|
137
|
-
external_urls: Spotted::ExternalURLObject,
|
|
138
|
-
href: String,
|
|
139
|
-
html_description: String,
|
|
140
|
-
images: ::Array[Spotted::ImageObject],
|
|
141
|
-
languages: ::Array[String],
|
|
142
|
-
media_type: String,
|
|
143
|
-
name: String,
|
|
144
|
-
narrators: ::Array[Spotted::NarratorObject],
|
|
145
|
-
publisher: String,
|
|
146
|
-
total_chapters: Integer,
|
|
147
|
-
type: Spotted::Models::ChapterRetrieveResponse::Audiobook::type_,
|
|
148
|
-
uri: String,
|
|
149
|
-
edition: String
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
class Audiobook < Spotted::Internal::Type::BaseModel
|
|
153
|
-
attr_accessor id: String
|
|
154
|
-
|
|
155
|
-
attr_accessor authors: ::Array[Spotted::AuthorObject]
|
|
156
|
-
|
|
157
|
-
attr_accessor available_markets: ::Array[String]
|
|
158
|
-
|
|
159
|
-
attr_accessor copyrights: ::Array[Spotted::CopyrightObject]
|
|
160
|
-
|
|
161
|
-
attr_accessor description: String
|
|
162
|
-
|
|
163
|
-
attr_accessor explicit: bool
|
|
164
|
-
|
|
165
|
-
attr_accessor external_urls: Spotted::ExternalURLObject
|
|
166
|
-
|
|
167
|
-
attr_accessor href: String
|
|
168
|
-
|
|
169
|
-
attr_accessor html_description: String
|
|
170
|
-
|
|
171
|
-
attr_accessor images: ::Array[Spotted::ImageObject]
|
|
172
|
-
|
|
173
|
-
attr_accessor languages: ::Array[String]
|
|
174
|
-
|
|
175
|
-
attr_accessor media_type: String
|
|
176
|
-
|
|
177
|
-
attr_accessor name: String
|
|
178
|
-
|
|
179
|
-
attr_accessor narrators: ::Array[Spotted::NarratorObject]
|
|
180
|
-
|
|
181
|
-
attr_accessor publisher: String
|
|
182
|
-
|
|
183
|
-
attr_accessor total_chapters: Integer
|
|
184
|
-
|
|
185
|
-
attr_accessor type: Spotted::Models::ChapterRetrieveResponse::Audiobook::type_
|
|
186
|
-
|
|
187
|
-
attr_accessor uri: String
|
|
188
|
-
|
|
189
|
-
attr_reader edition: String?
|
|
190
|
-
|
|
191
|
-
def edition=: (String) -> String
|
|
192
|
-
|
|
193
|
-
def initialize: (
|
|
194
|
-
id: String,
|
|
195
|
-
authors: ::Array[Spotted::AuthorObject],
|
|
196
|
-
available_markets: ::Array[String],
|
|
197
|
-
copyrights: ::Array[Spotted::CopyrightObject],
|
|
198
|
-
description: String,
|
|
199
|
-
explicit: bool,
|
|
200
|
-
external_urls: Spotted::ExternalURLObject,
|
|
201
|
-
href: String,
|
|
202
|
-
html_description: String,
|
|
203
|
-
images: ::Array[Spotted::ImageObject],
|
|
204
|
-
languages: ::Array[String],
|
|
205
|
-
media_type: String,
|
|
206
|
-
name: String,
|
|
207
|
-
narrators: ::Array[Spotted::NarratorObject],
|
|
208
|
-
publisher: String,
|
|
209
|
-
total_chapters: Integer,
|
|
210
|
-
type: Spotted::Models::ChapterRetrieveResponse::Audiobook::type_,
|
|
211
|
-
uri: String,
|
|
212
|
-
?edition: String
|
|
213
|
-
) -> void
|
|
214
|
-
|
|
215
|
-
def to_hash: -> {
|
|
216
|
-
id: String,
|
|
217
|
-
authors: ::Array[Spotted::AuthorObject],
|
|
218
|
-
available_markets: ::Array[String],
|
|
219
|
-
copyrights: ::Array[Spotted::CopyrightObject],
|
|
220
|
-
description: String,
|
|
221
|
-
explicit: bool,
|
|
222
|
-
external_urls: Spotted::ExternalURLObject,
|
|
223
|
-
href: String,
|
|
224
|
-
html_description: String,
|
|
225
|
-
images: ::Array[Spotted::ImageObject],
|
|
226
|
-
languages: ::Array[String],
|
|
227
|
-
media_type: String,
|
|
228
|
-
name: String,
|
|
229
|
-
narrators: ::Array[Spotted::NarratorObject],
|
|
230
|
-
publisher: String,
|
|
231
|
-
total_chapters: Integer,
|
|
232
|
-
type: Spotted::Models::ChapterRetrieveResponse::Audiobook::type_,
|
|
233
|
-
uri: String,
|
|
234
|
-
edition: String
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
type type_ = :audiobook
|
|
238
|
-
|
|
239
|
-
module Type
|
|
240
|
-
extend Spotted::Internal::Type::Enum
|
|
241
|
-
|
|
242
|
-
AUDIOBOOK: :audiobook
|
|
243
|
-
|
|
244
|
-
def self?.values: -> ::Array[Spotted::Models::ChapterRetrieveResponse::Audiobook::type_]
|
|
245
|
-
end
|
|
246
|
-
end
|
|
247
|
-
|
|
248
129
|
type release_date_precision = :year | :month | :day
|
|
249
130
|
|
|
250
131
|
module ReleaseDatePrecision
|
|
@@ -17,7 +17,7 @@ module Spotted
|
|
|
17
17
|
name: String,
|
|
18
18
|
release_date: String,
|
|
19
19
|
release_date_precision: Spotted::Models::EpisodeObject::release_date_precision,
|
|
20
|
-
show: Spotted::
|
|
20
|
+
show: Spotted::ShowBase,
|
|
21
21
|
type: Spotted::Models::EpisodeObject::type_,
|
|
22
22
|
uri: String,
|
|
23
23
|
language: String,
|
|
@@ -56,7 +56,7 @@ module Spotted
|
|
|
56
56
|
|
|
57
57
|
attr_accessor release_date_precision: Spotted::Models::EpisodeObject::release_date_precision
|
|
58
58
|
|
|
59
|
-
attr_accessor show: Spotted::
|
|
59
|
+
attr_accessor show: Spotted::ShowBase
|
|
60
60
|
|
|
61
61
|
attr_accessor type: Spotted::Models::EpisodeObject::type_
|
|
62
62
|
|
|
@@ -94,7 +94,7 @@ module Spotted
|
|
|
94
94
|
name: String,
|
|
95
95
|
release_date: String,
|
|
96
96
|
release_date_precision: Spotted::Models::EpisodeObject::release_date_precision,
|
|
97
|
-
show: Spotted::
|
|
97
|
+
show: Spotted::ShowBase,
|
|
98
98
|
type: Spotted::Models::EpisodeObject::type_,
|
|
99
99
|
uri: String,
|
|
100
100
|
?language: String,
|
|
@@ -118,7 +118,7 @@ module Spotted
|
|
|
118
118
|
name: String,
|
|
119
119
|
release_date: String,
|
|
120
120
|
release_date_precision: Spotted::Models::EpisodeObject::release_date_precision,
|
|
121
|
-
show: Spotted::
|
|
121
|
+
show: Spotted::ShowBase,
|
|
122
122
|
type: Spotted::Models::EpisodeObject::type_,
|
|
123
123
|
uri: String,
|
|
124
124
|
language: String,
|
|
@@ -138,113 +138,6 @@ module Spotted
|
|
|
138
138
|
def self?.values: -> ::Array[Spotted::Models::EpisodeObject::release_date_precision]
|
|
139
139
|
end
|
|
140
140
|
|
|
141
|
-
type show =
|
|
142
|
-
{
|
|
143
|
-
id: String,
|
|
144
|
-
available_markets: ::Array[String],
|
|
145
|
-
copyrights: ::Array[Spotted::CopyrightObject],
|
|
146
|
-
description: String,
|
|
147
|
-
explicit: bool,
|
|
148
|
-
external_urls: Spotted::ExternalURLObject,
|
|
149
|
-
href: String,
|
|
150
|
-
html_description: String,
|
|
151
|
-
images: ::Array[Spotted::ImageObject],
|
|
152
|
-
is_externally_hosted: bool,
|
|
153
|
-
languages: ::Array[String],
|
|
154
|
-
media_type: String,
|
|
155
|
-
name: String,
|
|
156
|
-
publisher: String,
|
|
157
|
-
total_episodes: Integer,
|
|
158
|
-
type: Spotted::Models::EpisodeObject::Show::type_,
|
|
159
|
-
uri: String
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
class Show < Spotted::Internal::Type::BaseModel
|
|
163
|
-
attr_accessor id: String
|
|
164
|
-
|
|
165
|
-
attr_accessor available_markets: ::Array[String]
|
|
166
|
-
|
|
167
|
-
attr_accessor copyrights: ::Array[Spotted::CopyrightObject]
|
|
168
|
-
|
|
169
|
-
attr_accessor description: String
|
|
170
|
-
|
|
171
|
-
attr_accessor explicit: bool
|
|
172
|
-
|
|
173
|
-
attr_accessor external_urls: Spotted::ExternalURLObject
|
|
174
|
-
|
|
175
|
-
attr_accessor href: String
|
|
176
|
-
|
|
177
|
-
attr_accessor html_description: String
|
|
178
|
-
|
|
179
|
-
attr_accessor images: ::Array[Spotted::ImageObject]
|
|
180
|
-
|
|
181
|
-
attr_accessor is_externally_hosted: bool
|
|
182
|
-
|
|
183
|
-
attr_accessor languages: ::Array[String]
|
|
184
|
-
|
|
185
|
-
attr_accessor media_type: String
|
|
186
|
-
|
|
187
|
-
attr_accessor name: String
|
|
188
|
-
|
|
189
|
-
attr_accessor publisher: String
|
|
190
|
-
|
|
191
|
-
attr_accessor total_episodes: Integer
|
|
192
|
-
|
|
193
|
-
attr_accessor type: Spotted::Models::EpisodeObject::Show::type_
|
|
194
|
-
|
|
195
|
-
attr_accessor uri: String
|
|
196
|
-
|
|
197
|
-
def initialize: (
|
|
198
|
-
id: String,
|
|
199
|
-
available_markets: ::Array[String],
|
|
200
|
-
copyrights: ::Array[Spotted::CopyrightObject],
|
|
201
|
-
description: String,
|
|
202
|
-
explicit: bool,
|
|
203
|
-
external_urls: Spotted::ExternalURLObject,
|
|
204
|
-
href: String,
|
|
205
|
-
html_description: String,
|
|
206
|
-
images: ::Array[Spotted::ImageObject],
|
|
207
|
-
is_externally_hosted: bool,
|
|
208
|
-
languages: ::Array[String],
|
|
209
|
-
media_type: String,
|
|
210
|
-
name: String,
|
|
211
|
-
publisher: String,
|
|
212
|
-
total_episodes: Integer,
|
|
213
|
-
type: Spotted::Models::EpisodeObject::Show::type_,
|
|
214
|
-
uri: String
|
|
215
|
-
) -> void
|
|
216
|
-
|
|
217
|
-
def to_hash: -> {
|
|
218
|
-
id: String,
|
|
219
|
-
available_markets: ::Array[String],
|
|
220
|
-
copyrights: ::Array[Spotted::CopyrightObject],
|
|
221
|
-
description: String,
|
|
222
|
-
explicit: bool,
|
|
223
|
-
external_urls: Spotted::ExternalURLObject,
|
|
224
|
-
href: String,
|
|
225
|
-
html_description: String,
|
|
226
|
-
images: ::Array[Spotted::ImageObject],
|
|
227
|
-
is_externally_hosted: bool,
|
|
228
|
-
languages: ::Array[String],
|
|
229
|
-
media_type: String,
|
|
230
|
-
name: String,
|
|
231
|
-
publisher: String,
|
|
232
|
-
total_episodes: Integer,
|
|
233
|
-
type: Spotted::Models::EpisodeObject::Show::type_,
|
|
234
|
-
uri: String
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
type type_ = :show
|
|
238
|
-
|
|
239
|
-
module Type
|
|
240
|
-
extend Spotted::Internal::Type::Enum
|
|
241
|
-
|
|
242
|
-
SHOW: :show
|
|
243
|
-
|
|
244
|
-
def self?.values: -> ::Array[Spotted::Models::EpisodeObject::Show::type_]
|
|
245
|
-
end
|
|
246
|
-
end
|
|
247
|
-
|
|
248
141
|
type type_ = :episode
|
|
249
142
|
|
|
250
143
|
module Type
|
|
@@ -30,115 +30,22 @@ module Spotted
|
|
|
30
30
|
|
|
31
31
|
type audiobook =
|
|
32
32
|
{
|
|
33
|
-
|
|
34
|
-
authors: ::Array[Spotted::AuthorObject],
|
|
35
|
-
available_markets: ::Array[String],
|
|
36
|
-
chapters: Spotted::Models::Me::AudiobookListResponse::Audiobook::Chapters,
|
|
37
|
-
copyrights: ::Array[Spotted::CopyrightObject],
|
|
38
|
-
description: String,
|
|
39
|
-
explicit: bool,
|
|
40
|
-
external_urls: Spotted::ExternalURLObject,
|
|
41
|
-
href: String,
|
|
42
|
-
html_description: String,
|
|
43
|
-
images: ::Array[Spotted::ImageObject],
|
|
44
|
-
languages: ::Array[String],
|
|
45
|
-
media_type: String,
|
|
46
|
-
name: String,
|
|
47
|
-
narrators: ::Array[Spotted::NarratorObject],
|
|
48
|
-
publisher: String,
|
|
49
|
-
total_chapters: Integer,
|
|
50
|
-
type: Spotted::Models::Me::AudiobookListResponse::Audiobook::type_,
|
|
51
|
-
uri: String,
|
|
52
|
-
edition: String
|
|
33
|
+
chapters: Spotted::Models::Me::AudiobookListResponse::Audiobook::Chapters
|
|
53
34
|
}
|
|
54
35
|
|
|
55
|
-
class Audiobook < Spotted::
|
|
56
|
-
|
|
36
|
+
class Audiobook < Spotted::Models::AudiobookBase
|
|
37
|
+
def chapters: -> Spotted::Models::Me::AudiobookListResponse::Audiobook::Chapters
|
|
57
38
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
attr_accessor chapters: Spotted::Models::Me::AudiobookListResponse::Audiobook::Chapters
|
|
63
|
-
|
|
64
|
-
attr_accessor copyrights: ::Array[Spotted::CopyrightObject]
|
|
65
|
-
|
|
66
|
-
attr_accessor description: String
|
|
67
|
-
|
|
68
|
-
attr_accessor explicit: bool
|
|
69
|
-
|
|
70
|
-
attr_accessor external_urls: Spotted::ExternalURLObject
|
|
71
|
-
|
|
72
|
-
attr_accessor href: String
|
|
73
|
-
|
|
74
|
-
attr_accessor html_description: String
|
|
75
|
-
|
|
76
|
-
attr_accessor images: ::Array[Spotted::ImageObject]
|
|
77
|
-
|
|
78
|
-
attr_accessor languages: ::Array[String]
|
|
79
|
-
|
|
80
|
-
attr_accessor media_type: String
|
|
81
|
-
|
|
82
|
-
attr_accessor name: String
|
|
83
|
-
|
|
84
|
-
attr_accessor narrators: ::Array[Spotted::NarratorObject]
|
|
85
|
-
|
|
86
|
-
attr_accessor publisher: String
|
|
87
|
-
|
|
88
|
-
attr_accessor total_chapters: Integer
|
|
89
|
-
|
|
90
|
-
attr_accessor type: Spotted::Models::Me::AudiobookListResponse::Audiobook::type_
|
|
91
|
-
|
|
92
|
-
attr_accessor uri: String
|
|
93
|
-
|
|
94
|
-
attr_reader edition: String?
|
|
95
|
-
|
|
96
|
-
def edition=: (String) -> String
|
|
39
|
+
def chapters=: (
|
|
40
|
+
Spotted::Models::Me::AudiobookListResponse::Audiobook::Chapters _
|
|
41
|
+
) -> Spotted::Models::Me::AudiobookListResponse::Audiobook::Chapters
|
|
97
42
|
|
|
98
43
|
def initialize: (
|
|
99
|
-
|
|
100
|
-
authors: ::Array[Spotted::AuthorObject],
|
|
101
|
-
available_markets: ::Array[String],
|
|
102
|
-
chapters: Spotted::Models::Me::AudiobookListResponse::Audiobook::Chapters,
|
|
103
|
-
copyrights: ::Array[Spotted::CopyrightObject],
|
|
104
|
-
description: String,
|
|
105
|
-
explicit: bool,
|
|
106
|
-
external_urls: Spotted::ExternalURLObject,
|
|
107
|
-
href: String,
|
|
108
|
-
html_description: String,
|
|
109
|
-
images: ::Array[Spotted::ImageObject],
|
|
110
|
-
languages: ::Array[String],
|
|
111
|
-
media_type: String,
|
|
112
|
-
name: String,
|
|
113
|
-
narrators: ::Array[Spotted::NarratorObject],
|
|
114
|
-
publisher: String,
|
|
115
|
-
total_chapters: Integer,
|
|
116
|
-
type: Spotted::Models::Me::AudiobookListResponse::Audiobook::type_,
|
|
117
|
-
uri: String,
|
|
118
|
-
?edition: String
|
|
44
|
+
chapters: Spotted::Models::Me::AudiobookListResponse::Audiobook::Chapters
|
|
119
45
|
) -> void
|
|
120
46
|
|
|
121
47
|
def to_hash: -> {
|
|
122
|
-
|
|
123
|
-
authors: ::Array[Spotted::AuthorObject],
|
|
124
|
-
available_markets: ::Array[String],
|
|
125
|
-
chapters: Spotted::Models::Me::AudiobookListResponse::Audiobook::Chapters,
|
|
126
|
-
copyrights: ::Array[Spotted::CopyrightObject],
|
|
127
|
-
description: String,
|
|
128
|
-
explicit: bool,
|
|
129
|
-
external_urls: Spotted::ExternalURLObject,
|
|
130
|
-
href: String,
|
|
131
|
-
html_description: String,
|
|
132
|
-
images: ::Array[Spotted::ImageObject],
|
|
133
|
-
languages: ::Array[String],
|
|
134
|
-
media_type: String,
|
|
135
|
-
name: String,
|
|
136
|
-
narrators: ::Array[Spotted::NarratorObject],
|
|
137
|
-
publisher: String,
|
|
138
|
-
total_chapters: Integer,
|
|
139
|
-
type: Spotted::Models::Me::AudiobookListResponse::Audiobook::type_,
|
|
140
|
-
uri: String,
|
|
141
|
-
edition: String
|
|
48
|
+
chapters: Spotted::Models::Me::AudiobookListResponse::Audiobook::Chapters
|
|
142
49
|
}
|
|
143
50
|
|
|
144
51
|
type chapters =
|
|
@@ -187,16 +94,6 @@ module Spotted
|
|
|
187
94
|
total: Integer
|
|
188
95
|
}
|
|
189
96
|
end
|
|
190
|
-
|
|
191
|
-
type type_ = :audiobook
|
|
192
|
-
|
|
193
|
-
module Type
|
|
194
|
-
extend Spotted::Internal::Type::Enum
|
|
195
|
-
|
|
196
|
-
AUDIOBOOK: :audiobook
|
|
197
|
-
|
|
198
|
-
def self?.values: -> ::Array[Spotted::Models::Me::AudiobookListResponse::Audiobook::type_]
|
|
199
|
-
end
|
|
200
97
|
end
|
|
201
98
|
end
|
|
202
99
|
end
|
|
@@ -1,136 +1,20 @@
|
|
|
1
1
|
module Spotted
|
|
2
2
|
module Models
|
|
3
3
|
module Me
|
|
4
|
-
type show_list_response =
|
|
5
|
-
{ added_at: Time, show: Spotted::Models::Me::ShowListResponse::Show }
|
|
4
|
+
type show_list_response = { added_at: Time, show: Spotted::ShowBase }
|
|
6
5
|
|
|
7
6
|
class ShowListResponse < Spotted::Internal::Type::BaseModel
|
|
8
7
|
attr_reader added_at: Time?
|
|
9
8
|
|
|
10
9
|
def added_at=: (Time) -> Time
|
|
11
10
|
|
|
12
|
-
attr_reader show: Spotted::
|
|
11
|
+
attr_reader show: Spotted::ShowBase?
|
|
13
12
|
|
|
14
|
-
def show=: (
|
|
15
|
-
Spotted::Models::Me::ShowListResponse::Show
|
|
16
|
-
) -> Spotted::Models::Me::ShowListResponse::Show
|
|
13
|
+
def show=: (Spotted::ShowBase) -> Spotted::ShowBase
|
|
17
14
|
|
|
18
|
-
def initialize: (
|
|
19
|
-
?added_at: Time,
|
|
20
|
-
?show: Spotted::Models::Me::ShowListResponse::Show
|
|
21
|
-
) -> void
|
|
15
|
+
def initialize: (?added_at: Time, ?show: Spotted::ShowBase) -> void
|
|
22
16
|
|
|
23
|
-
def to_hash: -> {
|
|
24
|
-
added_at: Time,
|
|
25
|
-
show: Spotted::Models::Me::ShowListResponse::Show
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
type show =
|
|
29
|
-
{
|
|
30
|
-
id: String,
|
|
31
|
-
available_markets: ::Array[String],
|
|
32
|
-
copyrights: ::Array[Spotted::CopyrightObject],
|
|
33
|
-
description: String,
|
|
34
|
-
explicit: bool,
|
|
35
|
-
external_urls: Spotted::ExternalURLObject,
|
|
36
|
-
href: String,
|
|
37
|
-
html_description: String,
|
|
38
|
-
images: ::Array[Spotted::ImageObject],
|
|
39
|
-
is_externally_hosted: bool,
|
|
40
|
-
languages: ::Array[String],
|
|
41
|
-
media_type: String,
|
|
42
|
-
name: String,
|
|
43
|
-
publisher: String,
|
|
44
|
-
total_episodes: Integer,
|
|
45
|
-
type: Spotted::Models::Me::ShowListResponse::Show::type_,
|
|
46
|
-
uri: String
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
class Show < Spotted::Internal::Type::BaseModel
|
|
50
|
-
attr_accessor id: String
|
|
51
|
-
|
|
52
|
-
attr_accessor available_markets: ::Array[String]
|
|
53
|
-
|
|
54
|
-
attr_accessor copyrights: ::Array[Spotted::CopyrightObject]
|
|
55
|
-
|
|
56
|
-
attr_accessor description: String
|
|
57
|
-
|
|
58
|
-
attr_accessor explicit: bool
|
|
59
|
-
|
|
60
|
-
attr_accessor external_urls: Spotted::ExternalURLObject
|
|
61
|
-
|
|
62
|
-
attr_accessor href: String
|
|
63
|
-
|
|
64
|
-
attr_accessor html_description: String
|
|
65
|
-
|
|
66
|
-
attr_accessor images: ::Array[Spotted::ImageObject]
|
|
67
|
-
|
|
68
|
-
attr_accessor is_externally_hosted: bool
|
|
69
|
-
|
|
70
|
-
attr_accessor languages: ::Array[String]
|
|
71
|
-
|
|
72
|
-
attr_accessor media_type: String
|
|
73
|
-
|
|
74
|
-
attr_accessor name: String
|
|
75
|
-
|
|
76
|
-
attr_accessor publisher: String
|
|
77
|
-
|
|
78
|
-
attr_accessor total_episodes: Integer
|
|
79
|
-
|
|
80
|
-
attr_accessor type: Spotted::Models::Me::ShowListResponse::Show::type_
|
|
81
|
-
|
|
82
|
-
attr_accessor uri: String
|
|
83
|
-
|
|
84
|
-
def initialize: (
|
|
85
|
-
id: String,
|
|
86
|
-
available_markets: ::Array[String],
|
|
87
|
-
copyrights: ::Array[Spotted::CopyrightObject],
|
|
88
|
-
description: String,
|
|
89
|
-
explicit: bool,
|
|
90
|
-
external_urls: Spotted::ExternalURLObject,
|
|
91
|
-
href: String,
|
|
92
|
-
html_description: String,
|
|
93
|
-
images: ::Array[Spotted::ImageObject],
|
|
94
|
-
is_externally_hosted: bool,
|
|
95
|
-
languages: ::Array[String],
|
|
96
|
-
media_type: String,
|
|
97
|
-
name: String,
|
|
98
|
-
publisher: String,
|
|
99
|
-
total_episodes: Integer,
|
|
100
|
-
type: Spotted::Models::Me::ShowListResponse::Show::type_,
|
|
101
|
-
uri: String
|
|
102
|
-
) -> void
|
|
103
|
-
|
|
104
|
-
def to_hash: -> {
|
|
105
|
-
id: String,
|
|
106
|
-
available_markets: ::Array[String],
|
|
107
|
-
copyrights: ::Array[Spotted::CopyrightObject],
|
|
108
|
-
description: String,
|
|
109
|
-
explicit: bool,
|
|
110
|
-
external_urls: Spotted::ExternalURLObject,
|
|
111
|
-
href: String,
|
|
112
|
-
html_description: String,
|
|
113
|
-
images: ::Array[Spotted::ImageObject],
|
|
114
|
-
is_externally_hosted: bool,
|
|
115
|
-
languages: ::Array[String],
|
|
116
|
-
media_type: String,
|
|
117
|
-
name: String,
|
|
118
|
-
publisher: String,
|
|
119
|
-
total_episodes: Integer,
|
|
120
|
-
type: Spotted::Models::Me::ShowListResponse::Show::type_,
|
|
121
|
-
uri: String
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
type type_ = :show
|
|
125
|
-
|
|
126
|
-
module Type
|
|
127
|
-
extend Spotted::Internal::Type::Enum
|
|
128
|
-
|
|
129
|
-
SHOW: :show
|
|
130
|
-
|
|
131
|
-
def self?.values: -> ::Array[Spotted::Models::Me::ShowListResponse::Show::type_]
|
|
132
|
-
end
|
|
133
|
-
end
|
|
17
|
+
def to_hash: -> { added_at: Time, show: Spotted::ShowBase }
|
|
134
18
|
end
|
|
135
19
|
end
|
|
136
20
|
end
|