diff options
Diffstat (limited to 'src/org/fox/ttrss/Feed.java')
| -rw-r--r-- | src/org/fox/ttrss/Feed.java | 19 |
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 |