♻️ Extract FreeGame into its own file
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 11 Apr 2024 07:44:10 +0000 (09:44 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 11 Apr 2024 07:44:10 +0000 (09:44 +0200)
src/main/kotlin/net/pterodactylus/rhynodge/filters/webpages/epicgames/EpicGamesFilter.kt
src/main/kotlin/net/pterodactylus/rhynodge/filters/webpages/epicgames/FreeGame.kt [new file with mode: 0644]

index 36d007c..fbb7da5 100644 (file)
@@ -33,13 +33,6 @@ class EpicGamesFilter : Filter {
 
 }
 
-data class FreeGame(
-       val title: String,
-       val imageUrl: String,
-       val startDate: Instant,
-       val endDate: Instant
-)
-
 class FreeGamesState(val games: Set<FreeGame>) : AbstractState(true) {
 
        override fun plainText(): String {
diff --git a/src/main/kotlin/net/pterodactylus/rhynodge/filters/webpages/epicgames/FreeGame.kt b/src/main/kotlin/net/pterodactylus/rhynodge/filters/webpages/epicgames/FreeGame.kt
new file mode 100644 (file)
index 0000000..e5d4abf
--- /dev/null
@@ -0,0 +1,10 @@
+package net.pterodactylus.rhynodge.filters.webpages.epicgames
+
+import java.time.Instant
+
+data class FreeGame(
+       val title: String,
+       val imageUrl: String,
+       val startDate: Instant,
+       val endDate: Instant
+)