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

index fbb7da5..e159dff 100644 (file)
@@ -3,7 +3,6 @@ package net.pterodactylus.rhynodge.filters.webpages.epicgames
 import com.fasterxml.jackson.databind.JsonNode
 import net.pterodactylus.rhynodge.Filter
 import net.pterodactylus.rhynodge.State
-import net.pterodactylus.rhynodge.states.AbstractState
 import net.pterodactylus.rhynodge.states.JsonState
 import java.time.Instant
 
@@ -32,11 +31,3 @@ class EpicGamesFilter : Filter {
                .first()
 
 }
-
-class FreeGamesState(val games: Set<FreeGame>) : AbstractState(true) {
-
-       override fun plainText(): String {
-               TODO("Not yet implemented")
-       }
-
-}
diff --git a/src/main/kotlin/net/pterodactylus/rhynodge/filters/webpages/epicgames/FreeGamesState.kt b/src/main/kotlin/net/pterodactylus/rhynodge/filters/webpages/epicgames/FreeGamesState.kt
new file mode 100644 (file)
index 0000000..580f0b4
--- /dev/null
@@ -0,0 +1,13 @@
+package net.pterodactylus.rhynodge.filters.webpages.epicgames
+
+import net.pterodactylus.rhynodge.states.AbstractState
+
+class FreeGamesState(val games: Set<FreeGame>, private val triggered: Boolean = false) : AbstractState(true) {
+
+       override fun plainText(): String {
+               TODO("Not yet implemented")
+       }
+
+       override fun triggered() = triggered
+
+}