From f976b25c1edf0bc4871cb66b1c20e8b3b5669a6d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 8 Sep 2011 20:05:00 +0400 Subject: rework authentication base feedlist adapter on sqlite --- src/org/fox/ttrss/Feed.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/org/fox/ttrss/Feed.java (limited to 'src/org/fox/ttrss/Feed.java') 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 { + 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 -- cgit v1.2.3-54-g00ecf