summaryrefslogtreecommitdiff
path: root/src/org/fox/ttrss/Feed.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/fox/ttrss/Feed.java')
-rw-r--r--src/org/fox/ttrss/Feed.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/org/fox/ttrss/Feed.java b/src/org/fox/ttrss/Feed.java
new file mode 100644
index 00000000..1f18521b
--- /dev/null
+++ b/src/org/fox/ttrss/Feed.java
@@ -0,0 +1,19 @@
+package org.fox.ttrss;
+
+public class Feed implements Comparable<Feed> {
+ String feed_url;
+ String title;
+ int id;
+ int unread;
+ boolean has_icon;
+ int cat_id;
+ int last_updated;
+
+ @Override
+ public int compareTo(Feed feed) {
+ if (feed.unread != this.unread)
+ return feed.unread - this.unread;
+ else
+ return this.title.compareTo(feed.title);
+ }
+} \ No newline at end of file