♻️ Convert Performace to Kotlin data class
[rhynodge.git] / src / main / kotlin / net / pterodactylus / rhynodge / filters / webpages / savoy / Performance.kt
diff --git a/src/main/kotlin/net/pterodactylus/rhynodge/filters/webpages/savoy/Performance.kt b/src/main/kotlin/net/pterodactylus/rhynodge/filters/webpages/savoy/Performance.kt
new file mode 100644 (file)
index 0000000..66ddacf
--- /dev/null
@@ -0,0 +1,14 @@
+package net.pterodactylus.rhynodge.filters.webpages.savoy
+
+import com.fasterxml.jackson.annotation.JsonProperty
+import java.time.LocalDateTime
+import java.util.Objects
+
+/**
+ * Information about a performance and a link to buy a ticket.
+ */
+data class Performance @JvmOverloads constructor(
+       @field:JsonProperty val time: LocalDateTime = LocalDateTime.now(),
+       @field:JsonProperty val type: String = "",
+       @field:JsonProperty val link: String = ""
+)