summaryrefslogtreecommitdiff
path: root/model/src/main
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2024-03-25 21:45:43 +0100
committerGitHub <noreply@github.com>2024-03-25 21:45:43 +0100
commit69b24699a36bc9c4ffc6200fbcf8069f7a94c1ab (patch)
tree5bfb94e00ff3d296412bc2624fbb43fc455d1471 /model/src/main
parent15eab50223e7789c15e40f956ee1ba166209b11d (diff)
downloadAntennaPod-69b24699a36bc9c4ffc6200fbcf8069f7a94c1ab.zip
Move DBReader to :storage:database (#7027)
Diffstat (limited to 'model/src/main')
-rw-r--r--model/src/main/java/de/danoeh/antennapod/model/feed/FeedOrder.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/model/src/main/java/de/danoeh/antennapod/model/feed/FeedOrder.java b/model/src/main/java/de/danoeh/antennapod/model/feed/FeedOrder.java
new file mode 100644
index 000000000..1ff4c9bf6
--- /dev/null
+++ b/model/src/main/java/de/danoeh/antennapod/model/feed/FeedOrder.java
@@ -0,0 +1,23 @@
+package de.danoeh.antennapod.model.feed;
+
+public enum FeedOrder {
+ COUNTER(0),
+ ALPHABETICAL(1),
+ MOST_PLAYED(3),
+ MOST_RECENT_EPISODE(2);
+
+ public final int id;
+
+ FeedOrder(int id) {
+ this.id = id;
+ }
+
+ public static FeedOrder fromOrdinal(int id) {
+ for (FeedOrder counter : values()) {
+ if (counter.id == id) {
+ return counter;
+ }
+ }
+ return MOST_RECENT_EPISODE;
+ }
+}