From 08397a47af403d64a012a7961e7444254ccaa9a2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 19 Jun 2012 14:18:00 +0400 Subject: categorize source files --- src/org/fox/ttrss/Feed.java | 76 --------------------------------------------- 1 file changed, 76 deletions(-) delete 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 deleted file mode 100644 index 1f0af4cc..00000000 --- a/src/org/fox/ttrss/Feed.java +++ /dev/null @@ -1,76 +0,0 @@ -package org.fox.ttrss; - -import android.os.Parcel; -import android.os.Parcelable; - -public class Feed implements Comparable, Parcelable { - String feed_url; - String title; - int id; - int unread; - boolean has_icon; - int cat_id; - int last_updated; - int order_id; - boolean is_cat; - - public Feed(int id, String title, boolean is_cat) { - this.id = id; - this.title = title; - this.is_cat = is_cat; - } - - public Feed(Parcel in) { - readFromParcel(in); - } - - @Override - public int compareTo(Feed feed) { - if (feed.unread != this.unread) - return feed.unread - this.unread; - else - return this.title.compareTo(feed.title); - } - - @Override - public int describeContents() { - return 0; - } - - @Override - public void writeToParcel(Parcel out, int flags) { - out.writeString(feed_url); - out.writeString(title); - out.writeInt(id); - out.writeInt(unread); - out.writeInt(has_icon ? 1 : 0); - out.writeInt(cat_id); - out.writeInt(last_updated); - out.writeInt(is_cat ? 1 : 0); - out.writeInt(order_id); - } - - public void readFromParcel(Parcel in) { - feed_url = in.readString(); - title = in.readString(); - id = in.readInt(); - unread = in.readInt(); - has_icon = in.readInt() == 1; - cat_id = in.readInt(); - last_updated = in.readInt(); - is_cat = in.readInt() == 1; - order_id = in.readInt(); - } - - @SuppressWarnings("rawtypes") - public static final Parcelable.Creator CREATOR = - new Parcelable.Creator() { - public Feed createFromParcel(Parcel in) { - return new Feed(in); - } - - public Feed[] newArray(int size) { - return new Feed[size]; - } - }; -} \ No newline at end of file -- cgit v1.2.3-54-g00ecf