From 822f280b3e490982446ea805232a966493cf7620 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 4 Sep 2012 16:28:50 +0400 Subject: [PATCH] types: add empty constructors for gson --- src/org/fox/ttrss/types/Article.java | 4 ++++ src/org/fox/ttrss/types/Attachment.java | 4 ++++ src/org/fox/ttrss/types/Feed.java | 4 ++++ src/org/fox/ttrss/types/FeedCategory.java | 4 ++++ src/org/fox/ttrss/types/Label.java | 4 ++++ 5 files changed, 20 insertions(+) diff --git a/src/org/fox/ttrss/types/Article.java b/src/org/fox/ttrss/types/Article.java index 2ad86e91..bf9614e8 100644 --- a/src/org/fox/ttrss/types/Article.java +++ b/src/org/fox/ttrss/types/Article.java @@ -27,6 +27,10 @@ public class Article implements Parcelable { readFromParcel(in); } + public Article() { + + } + public Article(int id) { this.id = id; this.title = ""; diff --git a/src/org/fox/ttrss/types/Attachment.java b/src/org/fox/ttrss/types/Attachment.java index 7b77d5db..58e5b37f 100644 --- a/src/org/fox/ttrss/types/Attachment.java +++ b/src/org/fox/ttrss/types/Attachment.java @@ -19,6 +19,10 @@ public class Attachment implements Parcelable { readFromParcel(in); } + public Attachment() { + + } + @Override public int describeContents() { return 0; diff --git a/src/org/fox/ttrss/types/Feed.java b/src/org/fox/ttrss/types/Feed.java index 25077686..91d12308 100644 --- a/src/org/fox/ttrss/types/Feed.java +++ b/src/org/fox/ttrss/types/Feed.java @@ -24,6 +24,10 @@ public class Feed implements Comparable, Parcelable { readFromParcel(in); } + public Feed() { + + } + @Override public int compareTo(Feed feed) { if (feed.unread != this.unread) diff --git a/src/org/fox/ttrss/types/FeedCategory.java b/src/org/fox/ttrss/types/FeedCategory.java index d4f68bfb..202a2dd6 100644 --- a/src/org/fox/ttrss/types/FeedCategory.java +++ b/src/org/fox/ttrss/types/FeedCategory.java @@ -20,6 +20,10 @@ public class FeedCategory implements Parcelable { this.order_id = 0; } + public FeedCategory() { + + } + @Override public int describeContents() { return 0; diff --git a/src/org/fox/ttrss/types/Label.java b/src/org/fox/ttrss/types/Label.java index fd4ce930..ff81ffa6 100644 --- a/src/org/fox/ttrss/types/Label.java +++ b/src/org/fox/ttrss/types/Label.java @@ -6,4 +6,8 @@ public class Label { public String fg_color; public String bg_color; public boolean checked; + + public Label() { + + } }