Advertisement
EdGr87

Untitled

Mar 8th, 2023
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 2.29 KB | None | 0 0
  1. import com.fasterxml.jackson.annotation.JsonProperty
  2.  
  3. data class Root(
  4.     val feed: Feed,
  5. )
  6.  
  7. data class Feed(
  8.     val author: Author,
  9.     val entry: List<Entry>,
  10.     val updated: Updated,
  11.     val rights: Rights2,
  12.     val title: Title2,
  13.     val icon: Icon,
  14.     val link: List<Link2>,
  15.     val id: Id2,
  16. )
  17.  
  18. data class Author(
  19.     val name: Name,
  20.     val uri: Uri,
  21. )
  22.  
  23. data class Name(
  24.     val label: String,
  25. )
  26.  
  27. data class Uri(
  28.     val label: String,
  29. )
  30.  
  31. data class Entry(
  32.     @JsonProperty("im:name")
  33.     val imName: ImName,
  34.     @JsonProperty("im:image")
  35.     val imImage: List<ImImage>,
  36.     val summary: Summary,
  37.     @JsonProperty("im:price")
  38.     val imPrice: ImPrice,
  39.     @JsonProperty("im:contentType")
  40.     val imContentType: ImContentType,
  41.     val rights: Rights?,
  42.     val title: Title,
  43.     val link: Link,
  44.     val id: Id,
  45.     @JsonProperty("im:artist")
  46.     val imArtist: ImArtist,
  47.     val category: Category,
  48.     @JsonProperty("im:releaseDate")
  49.     val imReleaseDate: ImReleaseDate,
  50. )
  51.  
  52. data class ImName(
  53.     val label: String,
  54. )
  55.  
  56. data class ImImage(
  57.     val label: String,
  58.     val attributes: Attributes,
  59. )
  60.  
  61. data class Attributes(
  62.     val height: String,
  63. )
  64.  
  65. data class Summary(
  66.     val label: String,
  67. )
  68.  
  69. data class ImPrice(
  70.     val label: String,
  71.     val attributes: Attributes2,
  72. )
  73.  
  74. data class Attributes2(
  75.     val amount: String,
  76.     val currency: String,
  77. )
  78.  
  79. data class ImContentType(
  80.     val attributes: Attributes3,
  81. )
  82.  
  83. data class Attributes3(
  84.     val term: String,
  85.     val label: String,
  86. )
  87.  
  88. data class Rights(
  89.     val label: String,
  90. )
  91.  
  92. data class Title(
  93.     val label: String,
  94. )
  95.  
  96. data class Link(
  97.     val attributes: Attributes4,
  98. )
  99.  
  100. data class Attributes4(
  101.     val rel: String,
  102.     val type: String,
  103.     val href: String,
  104. )
  105.  
  106. data class Id(
  107.     val label: String,
  108.     val attributes: Attributes5,
  109. )
  110.  
  111. data class Attributes5(
  112.     @JsonProperty("im:id")
  113.     val imId: String,
  114. )
  115.  
  116. data class ImArtist(
  117.     val label: String,
  118.     val attributes: Attributes6?,
  119. )
  120.  
  121. data class Attributes6(
  122.     val href: String,
  123. )
  124.  
  125. data class Category(
  126.     val attributes: Attributes7,
  127. )
  128.  
  129. data class Attributes7(
  130.     @JsonProperty("im:id")
  131.     val imId: String,
  132.     val term: String,
  133.     val scheme: String,
  134.     val label: String,
  135. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement