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
|
@@ -349,9 +349,8 @@ module Spotted
|
|
|
349
349
|
|
|
350
350
|
# @!attribute items
|
|
351
351
|
#
|
|
352
|
-
# @return [Array<Spotted::Models::
|
|
353
|
-
required :items,
|
|
354
|
-
-> { Spotted::Internal::Type::ArrayOf[Spotted::Models::SearchRetrieveResponse::Audiobooks::Item] }
|
|
352
|
+
# @return [Array<Spotted::Models::AudiobookBase>]
|
|
353
|
+
required :items, -> { Spotted::Internal::Type::ArrayOf[Spotted::AudiobookBase] }
|
|
355
354
|
|
|
356
355
|
# @!attribute limit
|
|
357
356
|
# The maximum number of items in the response (as set in the query or by default).
|
|
@@ -389,7 +388,7 @@ module Spotted
|
|
|
389
388
|
#
|
|
390
389
|
# @param href [String] A link to the Web API endpoint returning the full result of the request
|
|
391
390
|
#
|
|
392
|
-
# @param items [Array<Spotted::Models::
|
|
391
|
+
# @param items [Array<Spotted::Models::AudiobookBase>]
|
|
393
392
|
#
|
|
394
393
|
# @param limit [Integer] The maximum number of items in the response (as set in the query or by default).
|
|
395
394
|
#
|
|
@@ -400,183 +399,6 @@ module Spotted
|
|
|
400
399
|
# @param previous [String, nil] URL to the previous page of items. ( `null` if none)
|
|
401
400
|
#
|
|
402
401
|
# @param total [Integer] The total number of items available to return.
|
|
403
|
-
|
|
404
|
-
class Item < Spotted::Internal::Type::BaseModel
|
|
405
|
-
# @!attribute id
|
|
406
|
-
# The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
407
|
-
# audiobook.
|
|
408
|
-
#
|
|
409
|
-
# @return [String]
|
|
410
|
-
required :id, String
|
|
411
|
-
|
|
412
|
-
# @!attribute authors
|
|
413
|
-
# The author(s) for the audiobook.
|
|
414
|
-
#
|
|
415
|
-
# @return [Array<Spotted::Models::AuthorObject>]
|
|
416
|
-
required :authors, -> { Spotted::Internal::Type::ArrayOf[Spotted::AuthorObject] }
|
|
417
|
-
|
|
418
|
-
# @!attribute available_markets
|
|
419
|
-
# A list of the countries in which the audiobook can be played, identified by
|
|
420
|
-
# their [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
|
|
421
|
-
# code.
|
|
422
|
-
#
|
|
423
|
-
# @return [Array<String>]
|
|
424
|
-
required :available_markets, Spotted::Internal::Type::ArrayOf[String]
|
|
425
|
-
|
|
426
|
-
# @!attribute copyrights
|
|
427
|
-
# The copyright statements of the audiobook.
|
|
428
|
-
#
|
|
429
|
-
# @return [Array<Spotted::Models::CopyrightObject>]
|
|
430
|
-
required :copyrights, -> { Spotted::Internal::Type::ArrayOf[Spotted::CopyrightObject] }
|
|
431
|
-
|
|
432
|
-
# @!attribute description
|
|
433
|
-
# A description of the audiobook. HTML tags are stripped away from this field, use
|
|
434
|
-
# `html_description` field in case HTML tags are needed.
|
|
435
|
-
#
|
|
436
|
-
# @return [String]
|
|
437
|
-
required :description, String
|
|
438
|
-
|
|
439
|
-
# @!attribute explicit
|
|
440
|
-
# Whether or not the audiobook has explicit content (true = yes it does; false =
|
|
441
|
-
# no it does not OR unknown).
|
|
442
|
-
#
|
|
443
|
-
# @return [Boolean]
|
|
444
|
-
required :explicit, Spotted::Internal::Type::Boolean
|
|
445
|
-
|
|
446
|
-
# @!attribute external_urls
|
|
447
|
-
# External URLs for this audiobook.
|
|
448
|
-
#
|
|
449
|
-
# @return [Spotted::Models::ExternalURLObject]
|
|
450
|
-
required :external_urls, -> { Spotted::ExternalURLObject }
|
|
451
|
-
|
|
452
|
-
# @!attribute href
|
|
453
|
-
# A link to the Web API endpoint providing full details of the audiobook.
|
|
454
|
-
#
|
|
455
|
-
# @return [String]
|
|
456
|
-
required :href, String
|
|
457
|
-
|
|
458
|
-
# @!attribute html_description
|
|
459
|
-
# A description of the audiobook. This field may contain HTML tags.
|
|
460
|
-
#
|
|
461
|
-
# @return [String]
|
|
462
|
-
required :html_description, String
|
|
463
|
-
|
|
464
|
-
# @!attribute images
|
|
465
|
-
# The cover art for the audiobook in various sizes, widest first.
|
|
466
|
-
#
|
|
467
|
-
# @return [Array<Spotted::Models::ImageObject>]
|
|
468
|
-
required :images, -> { Spotted::Internal::Type::ArrayOf[Spotted::ImageObject] }
|
|
469
|
-
|
|
470
|
-
# @!attribute languages
|
|
471
|
-
# A list of the languages used in the audiobook, identified by their
|
|
472
|
-
# [ISO 639](https://en.wikipedia.org/wiki/ISO_639) code.
|
|
473
|
-
#
|
|
474
|
-
# @return [Array<String>]
|
|
475
|
-
required :languages, Spotted::Internal::Type::ArrayOf[String]
|
|
476
|
-
|
|
477
|
-
# @!attribute media_type
|
|
478
|
-
# The media type of the audiobook.
|
|
479
|
-
#
|
|
480
|
-
# @return [String]
|
|
481
|
-
required :media_type, String
|
|
482
|
-
|
|
483
|
-
# @!attribute name
|
|
484
|
-
# The name of the audiobook.
|
|
485
|
-
#
|
|
486
|
-
# @return [String]
|
|
487
|
-
required :name, String
|
|
488
|
-
|
|
489
|
-
# @!attribute narrators
|
|
490
|
-
# The narrator(s) for the audiobook.
|
|
491
|
-
#
|
|
492
|
-
# @return [Array<Spotted::Models::NarratorObject>]
|
|
493
|
-
required :narrators, -> { Spotted::Internal::Type::ArrayOf[Spotted::NarratorObject] }
|
|
494
|
-
|
|
495
|
-
# @!attribute publisher
|
|
496
|
-
# The publisher of the audiobook.
|
|
497
|
-
#
|
|
498
|
-
# @return [String]
|
|
499
|
-
required :publisher, String
|
|
500
|
-
|
|
501
|
-
# @!attribute total_chapters
|
|
502
|
-
# The number of chapters in this audiobook.
|
|
503
|
-
#
|
|
504
|
-
# @return [Integer]
|
|
505
|
-
required :total_chapters, Integer
|
|
506
|
-
|
|
507
|
-
# @!attribute type
|
|
508
|
-
# The object type.
|
|
509
|
-
#
|
|
510
|
-
# @return [Symbol, Spotted::Models::SearchRetrieveResponse::Audiobooks::Item::Type]
|
|
511
|
-
required :type, enum: -> { Spotted::Models::SearchRetrieveResponse::Audiobooks::Item::Type }
|
|
512
|
-
|
|
513
|
-
# @!attribute uri
|
|
514
|
-
# The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
515
|
-
# audiobook.
|
|
516
|
-
#
|
|
517
|
-
# @return [String]
|
|
518
|
-
required :uri, String
|
|
519
|
-
|
|
520
|
-
# @!attribute edition
|
|
521
|
-
# The edition of the audiobook.
|
|
522
|
-
#
|
|
523
|
-
# @return [String, nil]
|
|
524
|
-
optional :edition, String
|
|
525
|
-
|
|
526
|
-
# @!method initialize(id:, authors:, available_markets:, copyrights:, description:, explicit:, external_urls:, href:, html_description:, images:, languages:, media_type:, name:, narrators:, publisher:, total_chapters:, type:, uri:, edition: nil)
|
|
527
|
-
# Some parameter documentations has been truncated, see
|
|
528
|
-
# {Spotted::Models::SearchRetrieveResponse::Audiobooks::Item} for more details.
|
|
529
|
-
#
|
|
530
|
-
# @param id [String] The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the audio
|
|
531
|
-
#
|
|
532
|
-
# @param authors [Array<Spotted::Models::AuthorObject>] The author(s) for the audiobook.
|
|
533
|
-
#
|
|
534
|
-
# @param available_markets [Array<String>] A list of the countries in which the audiobook can be played, identified by thei
|
|
535
|
-
#
|
|
536
|
-
# @param copyrights [Array<Spotted::Models::CopyrightObject>] The copyright statements of the audiobook.
|
|
537
|
-
#
|
|
538
|
-
# @param description [String] A description of the audiobook. HTML tags are stripped away from this field, use
|
|
539
|
-
#
|
|
540
|
-
# @param explicit [Boolean] Whether or not the audiobook has explicit content (true = yes it does; false = n
|
|
541
|
-
#
|
|
542
|
-
# @param external_urls [Spotted::Models::ExternalURLObject] External URLs for this audiobook.
|
|
543
|
-
#
|
|
544
|
-
# @param href [String] A link to the Web API endpoint providing full details of the audiobook.
|
|
545
|
-
#
|
|
546
|
-
# @param html_description [String] A description of the audiobook. This field may contain HTML tags.
|
|
547
|
-
#
|
|
548
|
-
# @param images [Array<Spotted::Models::ImageObject>] The cover art for the audiobook in various sizes, widest first.
|
|
549
|
-
#
|
|
550
|
-
# @param languages [Array<String>] A list of the languages used in the audiobook, identified by their [ISO 639](htt
|
|
551
|
-
#
|
|
552
|
-
# @param media_type [String] The media type of the audiobook.
|
|
553
|
-
#
|
|
554
|
-
# @param name [String] The name of the audiobook.
|
|
555
|
-
#
|
|
556
|
-
# @param narrators [Array<Spotted::Models::NarratorObject>] The narrator(s) for the audiobook.
|
|
557
|
-
#
|
|
558
|
-
# @param publisher [String] The publisher of the audiobook.
|
|
559
|
-
#
|
|
560
|
-
# @param total_chapters [Integer] The number of chapters in this audiobook.
|
|
561
|
-
#
|
|
562
|
-
# @param type [Symbol, Spotted::Models::SearchRetrieveResponse::Audiobooks::Item::Type] The object type.
|
|
563
|
-
#
|
|
564
|
-
# @param uri [String] The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the audi
|
|
565
|
-
#
|
|
566
|
-
# @param edition [String] The edition of the audiobook.
|
|
567
|
-
|
|
568
|
-
# The object type.
|
|
569
|
-
#
|
|
570
|
-
# @see Spotted::Models::SearchRetrieveResponse::Audiobooks::Item#type
|
|
571
|
-
module Type
|
|
572
|
-
extend Spotted::Internal::Type::Enum
|
|
573
|
-
|
|
574
|
-
AUDIOBOOK = :audiobook
|
|
575
|
-
|
|
576
|
-
# @!method self.values
|
|
577
|
-
# @return [Array<Symbol>]
|
|
578
|
-
end
|
|
579
|
-
end
|
|
580
402
|
end
|
|
581
403
|
|
|
582
404
|
# @see Spotted::Models::SearchRetrieveResponse#episodes
|
|
@@ -651,9 +473,8 @@ module Spotted
|
|
|
651
473
|
|
|
652
474
|
# @!attribute items
|
|
653
475
|
#
|
|
654
|
-
# @return [Array<Spotted::Models::
|
|
655
|
-
required :items,
|
|
656
|
-
-> { Spotted::Internal::Type::ArrayOf[Spotted::Models::SearchRetrieveResponse::Shows::Item] }
|
|
476
|
+
# @return [Array<Spotted::Models::ShowBase>]
|
|
477
|
+
required :items, -> { Spotted::Internal::Type::ArrayOf[Spotted::ShowBase] }
|
|
657
478
|
|
|
658
479
|
# @!attribute limit
|
|
659
480
|
# The maximum number of items in the response (as set in the query or by default).
|
|
@@ -691,7 +512,7 @@ module Spotted
|
|
|
691
512
|
#
|
|
692
513
|
# @param href [String] A link to the Web API endpoint returning the full result of the request
|
|
693
514
|
#
|
|
694
|
-
# @param items [Array<Spotted::Models::
|
|
515
|
+
# @param items [Array<Spotted::Models::ShowBase>]
|
|
695
516
|
#
|
|
696
517
|
# @param limit [Integer] The maximum number of items in the response (as set in the query or by default).
|
|
697
518
|
#
|
|
@@ -702,166 +523,6 @@ module Spotted
|
|
|
702
523
|
# @param previous [String, nil] URL to the previous page of items. ( `null` if none)
|
|
703
524
|
#
|
|
704
525
|
# @param total [Integer] The total number of items available to return.
|
|
705
|
-
|
|
706
|
-
class Item < Spotted::Internal::Type::BaseModel
|
|
707
|
-
# @!attribute id
|
|
708
|
-
# The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the show.
|
|
709
|
-
#
|
|
710
|
-
# @return [String]
|
|
711
|
-
required :id, String
|
|
712
|
-
|
|
713
|
-
# @!attribute available_markets
|
|
714
|
-
# A list of the countries in which the show can be played, identified by their
|
|
715
|
-
# [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code.
|
|
716
|
-
#
|
|
717
|
-
# @return [Array<String>]
|
|
718
|
-
required :available_markets, Spotted::Internal::Type::ArrayOf[String]
|
|
719
|
-
|
|
720
|
-
# @!attribute copyrights
|
|
721
|
-
# The copyright statements of the show.
|
|
722
|
-
#
|
|
723
|
-
# @return [Array<Spotted::Models::CopyrightObject>]
|
|
724
|
-
required :copyrights, -> { Spotted::Internal::Type::ArrayOf[Spotted::CopyrightObject] }
|
|
725
|
-
|
|
726
|
-
# @!attribute description
|
|
727
|
-
# A description of the show. HTML tags are stripped away from this field, use
|
|
728
|
-
# `html_description` field in case HTML tags are needed.
|
|
729
|
-
#
|
|
730
|
-
# @return [String]
|
|
731
|
-
required :description, String
|
|
732
|
-
|
|
733
|
-
# @!attribute explicit
|
|
734
|
-
# Whether or not the show has explicit content (true = yes it does; false = no it
|
|
735
|
-
# does not OR unknown).
|
|
736
|
-
#
|
|
737
|
-
# @return [Boolean]
|
|
738
|
-
required :explicit, Spotted::Internal::Type::Boolean
|
|
739
|
-
|
|
740
|
-
# @!attribute external_urls
|
|
741
|
-
# External URLs for this show.
|
|
742
|
-
#
|
|
743
|
-
# @return [Spotted::Models::ExternalURLObject]
|
|
744
|
-
required :external_urls, -> { Spotted::ExternalURLObject }
|
|
745
|
-
|
|
746
|
-
# @!attribute href
|
|
747
|
-
# A link to the Web API endpoint providing full details of the show.
|
|
748
|
-
#
|
|
749
|
-
# @return [String]
|
|
750
|
-
required :href, String
|
|
751
|
-
|
|
752
|
-
# @!attribute html_description
|
|
753
|
-
# A description of the show. This field may contain HTML tags.
|
|
754
|
-
#
|
|
755
|
-
# @return [String]
|
|
756
|
-
required :html_description, String
|
|
757
|
-
|
|
758
|
-
# @!attribute images
|
|
759
|
-
# The cover art for the show in various sizes, widest first.
|
|
760
|
-
#
|
|
761
|
-
# @return [Array<Spotted::Models::ImageObject>]
|
|
762
|
-
required :images, -> { Spotted::Internal::Type::ArrayOf[Spotted::ImageObject] }
|
|
763
|
-
|
|
764
|
-
# @!attribute is_externally_hosted
|
|
765
|
-
# True if all of the shows episodes are hosted outside of Spotify's CDN. This
|
|
766
|
-
# field might be `null` in some cases.
|
|
767
|
-
#
|
|
768
|
-
# @return [Boolean]
|
|
769
|
-
required :is_externally_hosted, Spotted::Internal::Type::Boolean
|
|
770
|
-
|
|
771
|
-
# @!attribute languages
|
|
772
|
-
# A list of the languages used in the show, identified by their
|
|
773
|
-
# [ISO 639](https://en.wikipedia.org/wiki/ISO_639) code.
|
|
774
|
-
#
|
|
775
|
-
# @return [Array<String>]
|
|
776
|
-
required :languages, Spotted::Internal::Type::ArrayOf[String]
|
|
777
|
-
|
|
778
|
-
# @!attribute media_type
|
|
779
|
-
# The media type of the show.
|
|
780
|
-
#
|
|
781
|
-
# @return [String]
|
|
782
|
-
required :media_type, String
|
|
783
|
-
|
|
784
|
-
# @!attribute name
|
|
785
|
-
# The name of the episode.
|
|
786
|
-
#
|
|
787
|
-
# @return [String]
|
|
788
|
-
required :name, String
|
|
789
|
-
|
|
790
|
-
# @!attribute publisher
|
|
791
|
-
# The publisher of the show.
|
|
792
|
-
#
|
|
793
|
-
# @return [String]
|
|
794
|
-
required :publisher, String
|
|
795
|
-
|
|
796
|
-
# @!attribute total_episodes
|
|
797
|
-
# The total number of episodes in the show.
|
|
798
|
-
#
|
|
799
|
-
# @return [Integer]
|
|
800
|
-
required :total_episodes, Integer
|
|
801
|
-
|
|
802
|
-
# @!attribute type
|
|
803
|
-
# The object type.
|
|
804
|
-
#
|
|
805
|
-
# @return [Symbol, Spotted::Models::SearchRetrieveResponse::Shows::Item::Type]
|
|
806
|
-
required :type, enum: -> { Spotted::Models::SearchRetrieveResponse::Shows::Item::Type }
|
|
807
|
-
|
|
808
|
-
# @!attribute uri
|
|
809
|
-
# The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
810
|
-
# show.
|
|
811
|
-
#
|
|
812
|
-
# @return [String]
|
|
813
|
-
required :uri, String
|
|
814
|
-
|
|
815
|
-
# @!method initialize(id:, available_markets:, copyrights:, description:, explicit:, external_urls:, href:, html_description:, images:, is_externally_hosted:, languages:, media_type:, name:, publisher:, total_episodes:, type:, uri:)
|
|
816
|
-
# Some parameter documentations has been truncated, see
|
|
817
|
-
# {Spotted::Models::SearchRetrieveResponse::Shows::Item} for more details.
|
|
818
|
-
#
|
|
819
|
-
# @param id [String] The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the show.
|
|
820
|
-
#
|
|
821
|
-
# @param available_markets [Array<String>] A list of the countries in which the show can be played, identified by their [IS
|
|
822
|
-
#
|
|
823
|
-
# @param copyrights [Array<Spotted::Models::CopyrightObject>] The copyright statements of the show.
|
|
824
|
-
#
|
|
825
|
-
# @param description [String] A description of the show. HTML tags are stripped away from this field, use `htm
|
|
826
|
-
#
|
|
827
|
-
# @param explicit [Boolean] Whether or not the show has explicit content (true = yes it does; false = no it
|
|
828
|
-
#
|
|
829
|
-
# @param external_urls [Spotted::Models::ExternalURLObject] External URLs for this show.
|
|
830
|
-
#
|
|
831
|
-
# @param href [String] A link to the Web API endpoint providing full details of the show.
|
|
832
|
-
#
|
|
833
|
-
# @param html_description [String] A description of the show. This field may contain HTML tags.
|
|
834
|
-
#
|
|
835
|
-
# @param images [Array<Spotted::Models::ImageObject>] The cover art for the show in various sizes, widest first.
|
|
836
|
-
#
|
|
837
|
-
# @param is_externally_hosted [Boolean] True if all of the shows episodes are hosted outside of Spotify's CDN. This fiel
|
|
838
|
-
#
|
|
839
|
-
# @param languages [Array<String>] A list of the languages used in the show, identified by their [ISO 639](https://
|
|
840
|
-
#
|
|
841
|
-
# @param media_type [String] The media type of the show.
|
|
842
|
-
#
|
|
843
|
-
# @param name [String] The name of the episode.
|
|
844
|
-
#
|
|
845
|
-
# @param publisher [String] The publisher of the show.
|
|
846
|
-
#
|
|
847
|
-
# @param total_episodes [Integer] The total number of episodes in the show.
|
|
848
|
-
#
|
|
849
|
-
# @param type [Symbol, Spotted::Models::SearchRetrieveResponse::Shows::Item::Type] The object type.
|
|
850
|
-
#
|
|
851
|
-
# @param uri [String] The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the show
|
|
852
|
-
|
|
853
|
-
# The object type.
|
|
854
|
-
#
|
|
855
|
-
# @see Spotted::Models::SearchRetrieveResponse::Shows::Item#type
|
|
856
|
-
module Type
|
|
857
|
-
extend Spotted::Internal::Type::Enum
|
|
858
|
-
|
|
859
|
-
SHOW = :show
|
|
860
|
-
|
|
861
|
-
# @!method self.values
|
|
862
|
-
# @return [Array<Symbol>]
|
|
863
|
-
end
|
|
864
|
-
end
|
|
865
526
|
end
|
|
866
527
|
|
|
867
528
|
# @see Spotted::Models::SearchRetrieveResponse#tracks
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Spotted
|
|
4
|
+
module Models
|
|
5
|
+
class ShowBase < Spotted::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute id
|
|
7
|
+
# The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the show.
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute available_markets
|
|
13
|
+
# A list of the countries in which the show can be played, identified by their
|
|
14
|
+
# [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code.
|
|
15
|
+
#
|
|
16
|
+
# @return [Array<String>]
|
|
17
|
+
required :available_markets, Spotted::Internal::Type::ArrayOf[String]
|
|
18
|
+
|
|
19
|
+
# @!attribute copyrights
|
|
20
|
+
# The copyright statements of the show.
|
|
21
|
+
#
|
|
22
|
+
# @return [Array<Spotted::Models::CopyrightObject>]
|
|
23
|
+
required :copyrights, -> { Spotted::Internal::Type::ArrayOf[Spotted::CopyrightObject] }
|
|
24
|
+
|
|
25
|
+
# @!attribute description
|
|
26
|
+
# A description of the show. HTML tags are stripped away from this field, use
|
|
27
|
+
# `html_description` field in case HTML tags are needed.
|
|
28
|
+
#
|
|
29
|
+
# @return [String]
|
|
30
|
+
required :description, String
|
|
31
|
+
|
|
32
|
+
# @!attribute explicit
|
|
33
|
+
# Whether or not the show has explicit content (true = yes it does; false = no it
|
|
34
|
+
# does not OR unknown).
|
|
35
|
+
#
|
|
36
|
+
# @return [Boolean]
|
|
37
|
+
required :explicit, Spotted::Internal::Type::Boolean
|
|
38
|
+
|
|
39
|
+
# @!attribute external_urls
|
|
40
|
+
# External URLs for this show.
|
|
41
|
+
#
|
|
42
|
+
# @return [Spotted::Models::ExternalURLObject]
|
|
43
|
+
required :external_urls, -> { Spotted::ExternalURLObject }
|
|
44
|
+
|
|
45
|
+
# @!attribute href
|
|
46
|
+
# A link to the Web API endpoint providing full details of the show.
|
|
47
|
+
#
|
|
48
|
+
# @return [String]
|
|
49
|
+
required :href, String
|
|
50
|
+
|
|
51
|
+
# @!attribute html_description
|
|
52
|
+
# A description of the show. This field may contain HTML tags.
|
|
53
|
+
#
|
|
54
|
+
# @return [String]
|
|
55
|
+
required :html_description, String
|
|
56
|
+
|
|
57
|
+
# @!attribute images
|
|
58
|
+
# The cover art for the show in various sizes, widest first.
|
|
59
|
+
#
|
|
60
|
+
# @return [Array<Spotted::Models::ImageObject>]
|
|
61
|
+
required :images, -> { Spotted::Internal::Type::ArrayOf[Spotted::ImageObject] }
|
|
62
|
+
|
|
63
|
+
# @!attribute is_externally_hosted
|
|
64
|
+
# True if all of the shows episodes are hosted outside of Spotify's CDN. This
|
|
65
|
+
# field might be `null` in some cases.
|
|
66
|
+
#
|
|
67
|
+
# @return [Boolean]
|
|
68
|
+
required :is_externally_hosted, Spotted::Internal::Type::Boolean
|
|
69
|
+
|
|
70
|
+
# @!attribute languages
|
|
71
|
+
# A list of the languages used in the show, identified by their
|
|
72
|
+
# [ISO 639](https://en.wikipedia.org/wiki/ISO_639) code.
|
|
73
|
+
#
|
|
74
|
+
# @return [Array<String>]
|
|
75
|
+
required :languages, Spotted::Internal::Type::ArrayOf[String]
|
|
76
|
+
|
|
77
|
+
# @!attribute media_type
|
|
78
|
+
# The media type of the show.
|
|
79
|
+
#
|
|
80
|
+
# @return [String]
|
|
81
|
+
required :media_type, String
|
|
82
|
+
|
|
83
|
+
# @!attribute name
|
|
84
|
+
# The name of the episode.
|
|
85
|
+
#
|
|
86
|
+
# @return [String]
|
|
87
|
+
required :name, String
|
|
88
|
+
|
|
89
|
+
# @!attribute publisher
|
|
90
|
+
# The publisher of the show.
|
|
91
|
+
#
|
|
92
|
+
# @return [String]
|
|
93
|
+
required :publisher, String
|
|
94
|
+
|
|
95
|
+
# @!attribute total_episodes
|
|
96
|
+
# The total number of episodes in the show.
|
|
97
|
+
#
|
|
98
|
+
# @return [Integer]
|
|
99
|
+
required :total_episodes, Integer
|
|
100
|
+
|
|
101
|
+
# @!attribute type
|
|
102
|
+
# The object type.
|
|
103
|
+
#
|
|
104
|
+
# @return [Symbol, Spotted::Models::ShowBase::Type]
|
|
105
|
+
required :type, enum: -> { Spotted::ShowBase::Type }
|
|
106
|
+
|
|
107
|
+
# @!attribute uri
|
|
108
|
+
# The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
109
|
+
# show.
|
|
110
|
+
#
|
|
111
|
+
# @return [String]
|
|
112
|
+
required :uri, String
|
|
113
|
+
|
|
114
|
+
# @!method initialize(id:, available_markets:, copyrights:, description:, explicit:, external_urls:, href:, html_description:, images:, is_externally_hosted:, languages:, media_type:, name:, publisher:, total_episodes:, type:, uri:)
|
|
115
|
+
# Some parameter documentations has been truncated, see
|
|
116
|
+
# {Spotted::Models::ShowBase} for more details.
|
|
117
|
+
#
|
|
118
|
+
# @param id [String] The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the show.
|
|
119
|
+
#
|
|
120
|
+
# @param available_markets [Array<String>] A list of the countries in which the show can be played, identified by their [IS
|
|
121
|
+
#
|
|
122
|
+
# @param copyrights [Array<Spotted::Models::CopyrightObject>] The copyright statements of the show.
|
|
123
|
+
#
|
|
124
|
+
# @param description [String] A description of the show. HTML tags are stripped away from this field, use `htm
|
|
125
|
+
#
|
|
126
|
+
# @param explicit [Boolean] Whether or not the show has explicit content (true = yes it does; false = no it
|
|
127
|
+
#
|
|
128
|
+
# @param external_urls [Spotted::Models::ExternalURLObject] External URLs for this show.
|
|
129
|
+
#
|
|
130
|
+
# @param href [String] A link to the Web API endpoint providing full details of the show.
|
|
131
|
+
#
|
|
132
|
+
# @param html_description [String] A description of the show. This field may contain HTML tags.
|
|
133
|
+
#
|
|
134
|
+
# @param images [Array<Spotted::Models::ImageObject>] The cover art for the show in various sizes, widest first.
|
|
135
|
+
#
|
|
136
|
+
# @param is_externally_hosted [Boolean] True if all of the shows episodes are hosted outside of Spotify's CDN. This fiel
|
|
137
|
+
#
|
|
138
|
+
# @param languages [Array<String>] A list of the languages used in the show, identified by their [ISO 639](https://
|
|
139
|
+
#
|
|
140
|
+
# @param media_type [String] The media type of the show.
|
|
141
|
+
#
|
|
142
|
+
# @param name [String] The name of the episode.
|
|
143
|
+
#
|
|
144
|
+
# @param publisher [String] The publisher of the show.
|
|
145
|
+
#
|
|
146
|
+
# @param total_episodes [Integer] The total number of episodes in the show.
|
|
147
|
+
#
|
|
148
|
+
# @param type [Symbol, Spotted::Models::ShowBase::Type] The object type.
|
|
149
|
+
#
|
|
150
|
+
# @param uri [String] The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the show
|
|
151
|
+
|
|
152
|
+
# The object type.
|
|
153
|
+
#
|
|
154
|
+
# @see Spotted::Models::ShowBase#type
|
|
155
|
+
module Type
|
|
156
|
+
extend Spotted::Internal::Type::Enum
|
|
157
|
+
|
|
158
|
+
SHOW = :show
|
|
159
|
+
|
|
160
|
+
# @!method self.values
|
|
161
|
+
# @return [Array<Symbol>]
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
end
|