projects
/
rhynodge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
265cfde
)
♻️ Extract FreeGame into its own file
author
David ‘Bombe’ Roden
<bombe@pterodactylus.net>
Thu, 11 Apr 2024 07:44:10 +0000
(09:44 +0200)
committer
David ‘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
patch
|
blob
|
history
src/main/kotlin/net/pterodactylus/rhynodge/filters/webpages/epicgames/FreeGame.kt
[new file with mode: 0644]
patch
|
blob
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
36d007c
..
fbb7da5
100644
(file)
--- a/
src/main/kotlin/net/pterodactylus/rhynodge/filters/webpages/epicgames/EpicGamesFilter.kt
+++ b/
src/main/kotlin/net/pterodactylus/rhynodge/filters/webpages/epicgames/EpicGamesFilter.kt
@@
-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
+++ b/
src/main/kotlin/net/pterodactylus/rhynodge/filters/webpages/epicgames/FreeGame.kt
@@ -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
+)