summaryrefslogtreecommitdiff
path: root/event/src/main/java/de
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2024-03-24 21:27:30 +0100
committerGitHub <noreply@github.com>2024-03-24 21:27:30 +0100
commit5c6000155cc8f2c6111301ceecae08bf41e0b735 (patch)
treef2433fb8c8f59e77b7ff25ac4296d82a3f318b07 /event/src/main/java/de
parent4078b3475e5140e6f5f9ef924bc8ff8d9e345113 (diff)
downloadAntennaPod-5c6000155cc8f2c6111301ceecae08bf41e0b735.zip
Let the database do the sorting (#7025)
Diffstat (limited to 'event/src/main/java/de')
-rw-r--r--event/src/main/java/de/danoeh/antennapod/event/DownloadLogEvent.java19
-rw-r--r--event/src/main/java/de/danoeh/antennapod/event/FeedEvent.java25
2 files changed, 44 insertions, 0 deletions
diff --git a/event/src/main/java/de/danoeh/antennapod/event/DownloadLogEvent.java b/event/src/main/java/de/danoeh/antennapod/event/DownloadLogEvent.java
new file mode 100644
index 000000000..32577d13a
--- /dev/null
+++ b/event/src/main/java/de/danoeh/antennapod/event/DownloadLogEvent.java
@@ -0,0 +1,19 @@
+package de.danoeh.antennapod.event;
+
+import androidx.annotation.NonNull;
+
+public class DownloadLogEvent {
+
+ private DownloadLogEvent() {
+ }
+
+ public static DownloadLogEvent listUpdated() {
+ return new DownloadLogEvent();
+ }
+
+ @NonNull
+ @Override
+ public String toString() {
+ return "DownloadLogEvent";
+ }
+}
diff --git a/event/src/main/java/de/danoeh/antennapod/event/FeedEvent.java b/event/src/main/java/de/danoeh/antennapod/event/FeedEvent.java
new file mode 100644
index 000000000..dae2a1ff5
--- /dev/null
+++ b/event/src/main/java/de/danoeh/antennapod/event/FeedEvent.java
@@ -0,0 +1,25 @@
+package de.danoeh.antennapod.event;
+
+import androidx.annotation.NonNull;
+
+public class FeedEvent {
+
+ public enum Action {
+ FILTER_CHANGED,
+ SORT_ORDER_CHANGED
+ }
+
+ private final Action action;
+ public final long feedId;
+
+ public FeedEvent(Action action, long feedId) {
+ this.action = action;
+ this.feedId = feedId;
+ }
+
+ @NonNull
+ @Override
+ public String toString() {
+ return "FeedEvent{action=" + action + ", feedId=" + feedId + '}';
+ }
+}