diff options
| author | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2011-11-29 13:02:16 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2011-11-29 13:02:16 +0300 |
| commit | 980b5696e34b7025cd62d829fa9032bc864c2ab6 (patch) | |
| tree | 989d4b5ffdade9817397dea1f719e67bfcfaa862 /src/org/fox/ttrss/Feed.java | |
| parent | 97ecce1d42ef87f3786aa7f51e29dd1c05d34c41 (diff) | |
implement browsing categories like feeds
Diffstat (limited to 'src/org/fox/ttrss/Feed.java')
| -rw-r--r-- | src/org/fox/ttrss/Feed.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/org/fox/ttrss/Feed.java b/src/org/fox/ttrss/Feed.java index de1e8602..0582d406 100644 --- a/src/org/fox/ttrss/Feed.java +++ b/src/org/fox/ttrss/Feed.java @@ -11,6 +11,13 @@ public class Feed implements Comparable<Feed>, Parcelable { boolean has_icon;
int cat_id;
int last_updated;
+ 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);
@@ -37,7 +44,8 @@ public class Feed implements Comparable<Feed>, Parcelable { out.writeInt(unread);
out.writeInt(has_icon ? 1 : 0);
out.writeInt(cat_id);
- out.writeInt(last_updated);
+ out.writeInt(last_updated);
+ out.writeInt(is_cat ? 1 : 0);
}
public void readFromParcel(Parcel in) {
@@ -48,6 +56,7 @@ public class Feed implements Comparable<Feed>, Parcelable { has_icon = in.readInt() == 1;
cat_id = in.readInt();
last_updated = in.readInt();
+ is_cat = in.readInt() == 1;
}
@SuppressWarnings("rawtypes")
|