From 61e57c8f09c9cf7a5513eaab398e9b05534b89ef Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 11 Apr 2024 11:46:03 +0200 Subject: [PATCH] =?utf8?q?=E2=9C=A8=20Add=20watcher=20for=20free=20games?= =?utf8?q?=20in=20the=20Epic=20Games=20store?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../net/pterodactylus/rhynodge/watchers/EpicGamesWatcher.kt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/main/kotlin/net/pterodactylus/rhynodge/watchers/EpicGamesWatcher.kt diff --git a/src/main/kotlin/net/pterodactylus/rhynodge/watchers/EpicGamesWatcher.kt b/src/main/kotlin/net/pterodactylus/rhynodge/watchers/EpicGamesWatcher.kt new file mode 100644 index 0000000..e6ed542 --- /dev/null +++ b/src/main/kotlin/net/pterodactylus/rhynodge/watchers/EpicGamesWatcher.kt @@ -0,0 +1,12 @@ +package net.pterodactylus.rhynodge.watchers + +import net.pterodactylus.rhynodge.filters.JsonFilter +import net.pterodactylus.rhynodge.filters.webpages.epicgames.EpicGamesFilter +import net.pterodactylus.rhynodge.filters.webpages.epicgames.EpicGamesMerger +import net.pterodactylus.rhynodge.queries.HttpQuery + +class EpicGamesWatcher : DefaultWatcher(query, filters, merger) + +private val query = HttpQuery("https://store-site-backend-static-ipv4.ak.epicgames.com/freeGamesPromotions?locale=en-US&country=DE&allowCountries=DE") +private val filters = listOf(JsonFilter(), EpicGamesFilter()) +private val merger = EpicGamesMerger() -- 2.7.4