From: David ‘Bombe’ Roden Date: Thu, 11 Apr 2024 07:44:36 +0000 (+0200) Subject: ♻️ Extract FreeGamesState into its own file X-Git-Tag: v2^2~4 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a189d8ef75e86a2120372916c95422e77b40538e;p=rhynodge.git ♻️ Extract FreeGamesState into its own file --- diff --git a/src/main/kotlin/net/pterodactylus/rhynodge/filters/webpages/epicgames/EpicGamesFilter.kt b/src/main/kotlin/net/pterodactylus/rhynodge/filters/webpages/epicgames/EpicGamesFilter.kt index fbb7da5..e159dff 100644 --- a/src/main/kotlin/net/pterodactylus/rhynodge/filters/webpages/epicgames/EpicGamesFilter.kt +++ b/src/main/kotlin/net/pterodactylus/rhynodge/filters/webpages/epicgames/EpicGamesFilter.kt @@ -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) : 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 index 0000000..580f0b4 --- /dev/null +++ b/src/main/kotlin/net/pterodactylus/rhynodge/filters/webpages/epicgames/FreeGamesState.kt @@ -0,0 +1,13 @@ +package net.pterodactylus.rhynodge.filters.webpages.epicgames + +import net.pterodactylus.rhynodge.states.AbstractState + +class FreeGamesState(val games: Set, private val triggered: Boolean = false) : AbstractState(true) { + + override fun plainText(): String { + TODO("Not yet implemented") + } + + override fun triggered() = triggered + +}