|
| 1 | +package com.es.model.detail |
| 2 | + |
| 3 | +import com.es.model.search.BGGGameItemName |
| 4 | +import com.es.model.BGGPropertyValue |
| 5 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties |
| 6 | +import com.fasterxml.jackson.annotation.JsonProperty |
| 7 | +import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper |
| 8 | +import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty |
| 9 | + |
| 10 | +@JsonIgnoreProperties(ignoreUnknown = true) |
| 11 | +data class BGGGameDetailItem( |
| 12 | + @JacksonXmlProperty(isAttribute = true) |
| 13 | + @JsonProperty("id") |
| 14 | + val id: String, |
| 15 | + |
| 16 | + @JacksonXmlProperty(isAttribute = true) |
| 17 | + @JsonProperty("type") |
| 18 | + val type: String, |
| 19 | + |
| 20 | + @JacksonXmlProperty(localName = "thumbnail") |
| 21 | + @JsonProperty("thumbnail") |
| 22 | + val thumbnail: String? = null, |
| 23 | + |
| 24 | + @JacksonXmlProperty(localName = "image") |
| 25 | + @JsonProperty("image") |
| 26 | + val image: String? = null, |
| 27 | + |
| 28 | + @JacksonXmlElementWrapper(useWrapping = false) |
| 29 | + @JacksonXmlProperty(localName = "name") |
| 30 | + @JsonProperty("names") |
| 31 | + val names: List<BGGGameItemName>? = null, |
| 32 | + |
| 33 | + @JacksonXmlProperty(localName = "description") |
| 34 | + @JsonProperty("description") |
| 35 | + val description: String? = null, |
| 36 | + |
| 37 | + @JacksonXmlElementWrapper(useWrapping = false) |
| 38 | + @JacksonXmlProperty(localName = "yearpublished") |
| 39 | + @JsonProperty("yearpublished") |
| 40 | + val yearPublished: BGGPropertyValue? = null, |
| 41 | + |
| 42 | + @JacksonXmlElementWrapper(useWrapping = false) |
| 43 | + @JacksonXmlProperty(localName = "minplayers") |
| 44 | + @JsonProperty("minplayers") |
| 45 | + val minPlayers: BGGPropertyValue? = null, |
| 46 | + |
| 47 | + @JacksonXmlElementWrapper(useWrapping = false) |
| 48 | + @JacksonXmlProperty(localName = "maxplayers") |
| 49 | + @JsonProperty("maxplayers") |
| 50 | + val maxPlayers: BGGPropertyValue? = null, |
| 51 | + |
| 52 | + @JacksonXmlElementWrapper(useWrapping = false) |
| 53 | + @JacksonXmlProperty(localName = "playingtime") |
| 54 | + @JsonProperty("playingtime") |
| 55 | + val playingTime: BGGPropertyValue? = null, |
| 56 | + |
| 57 | + @JacksonXmlElementWrapper(useWrapping = false) |
| 58 | + @JacksonXmlProperty(localName = "minplaytime") |
| 59 | + @JsonProperty("minplaytime") |
| 60 | + val minPlayTime: BGGPropertyValue? = null, |
| 61 | + |
| 62 | + @JacksonXmlElementWrapper(useWrapping = false) |
| 63 | + @JacksonXmlProperty(localName = "maxplaytime") |
| 64 | + @JsonProperty("maxplaytime") |
| 65 | + val maxPlayTime: BGGPropertyValue? = null, |
| 66 | + |
| 67 | + @JacksonXmlElementWrapper(useWrapping = false) |
| 68 | + @JacksonXmlProperty(localName = "minage") |
| 69 | + @JsonProperty("minage") |
| 70 | + val minAge: BGGPropertyValue? = null, |
| 71 | + |
| 72 | + @JacksonXmlElementWrapper(useWrapping = false) |
| 73 | + @JacksonXmlProperty(localName = "link") |
| 74 | + @JsonProperty("links") |
| 75 | + val links: List<BGGGameDetailLink>? = null, |
| 76 | +) |
0 commit comments