21 lines
557 B
Kotlin
21 lines
557 B
Kotlin
package it.danieleverducci.subitobeers.entities
|
|
|
|
import com.google.gson.annotations.SerializedName
|
|
import org.json.JSONException
|
|
import org.json.JSONObject
|
|
import java.time.LocalDate
|
|
import java.time.format.DateTimeFormatter
|
|
import java.util.*
|
|
|
|
class Beer// Parse date
|
|
@Throws(JSONException::class) constructor() {
|
|
val id: Int = 0
|
|
val name: String = ""
|
|
val tagline: String = ""
|
|
val description: String = ""
|
|
@SerializedName("image_url")
|
|
val imageUrl: String = ""
|
|
@SerializedName("first_brewed")
|
|
val firstBrewed: String = ""
|
|
|
|
} |