From 5c6000155cc8f2c6111301ceecae08bf41e0b735 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Sun, 24 Mar 2024 21:27:30 +0100 Subject: Let the database do the sorting (#7025) --- .../danoeh/antennapod/event/DownloadLogEvent.java | 19 ++++++++++++++++ .../java/de/danoeh/antennapod/event/FeedEvent.java | 25 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 event/src/main/java/de/danoeh/antennapod/event/DownloadLogEvent.java create mode 100644 event/src/main/java/de/danoeh/antennapod/event/FeedEvent.java (limited to 'event/src/main/java') 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 + '}'; + } +} -- cgit v1.2.3