metadata.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. // THIS CORNFILE IS GENERATED. DO NOT EDIT! 🌽
  2. #ifndef _METADATAH
  3. #define _METADATAH
  4. #include <optional>
  5. #include <vector>
  6. enum class AudioFormat {
  7. OGG_VORBIS_96 = 0,
  8. OGG_VORBIS_160 = 1,
  9. OGG_VORBIS_320 = 2,
  10. MP3_256 = 3,
  11. MP3_320 = 4,
  12. MP3_160 = 5,
  13. MP3_96 = 6,
  14. MP3_160_ENC = 7,
  15. AAC_24 = 8,
  16. AAC_48 = 9,
  17. };
  18. class AudioFile {
  19. public:
  20. std::optional<std::vector<uint8_t>> file_id;
  21. std::optional<AudioFormat> format;
  22. static constexpr ReflectTypeID _TYPE_ID = ReflectTypeID::ClassAudioFile;
  23. };
  24. class Restriction {
  25. public:
  26. std::optional<std::string> countries_allowed;
  27. std::optional<std::string> countries_forbidden;
  28. static constexpr ReflectTypeID _TYPE_ID = ReflectTypeID::ClassRestriction;
  29. };
  30. class Image {
  31. public:
  32. std::optional<std::vector<uint8_t>> file_id;
  33. static constexpr ReflectTypeID _TYPE_ID = ReflectTypeID::ClassImage;
  34. };
  35. class ImageGroup {
  36. public:
  37. std::vector<Image> image;
  38. static constexpr ReflectTypeID _TYPE_ID = ReflectTypeID::ClassImageGroup;
  39. };
  40. class Album {
  41. public:
  42. std::optional<std::vector<uint8_t>> gid;
  43. std::optional<std::string> name;
  44. std::optional<ImageGroup> cover_group;
  45. static constexpr ReflectTypeID _TYPE_ID = ReflectTypeID::ClassAlbum;
  46. };
  47. class Artist {
  48. public:
  49. std::optional<std::vector<uint8_t>> gid;
  50. std::optional<std::string> name;
  51. static constexpr ReflectTypeID _TYPE_ID = ReflectTypeID::ClassArtist;
  52. };
  53. class Track {
  54. public:
  55. std::optional<std::vector<uint8_t>> gid;
  56. std::optional<std::string> name;
  57. std::optional<Album> album;
  58. std::vector<Artist> artist;
  59. std::optional<int32_t> duration;
  60. std::vector<Restriction> restriction;
  61. std::vector<AudioFile> file;
  62. std::vector<Track> alternative;
  63. static constexpr ReflectTypeID _TYPE_ID = ReflectTypeID::ClassTrack;
  64. };
  65. class Episode {
  66. public:
  67. std::optional<std::vector<uint8_t>> gid;
  68. std::optional<std::string> name;
  69. std::optional<int32_t> duration;
  70. std::vector<AudioFile> audio;
  71. static constexpr ReflectTypeID _TYPE_ID = ReflectTypeID::ClassEpisode;
  72. };
  73. #endif