types: add empty constructors for gson

This commit is contained in:
Andrew Dolgov 2012-09-04 16:28:50 +04:00
parent 07f38d878d
commit 822f280b3e
5 changed files with 20 additions and 0 deletions

View File

@ -27,6 +27,10 @@ public class Article implements Parcelable {
readFromParcel(in);
}
public Article() {
}
public Article(int id) {
this.id = id;
this.title = "";

View File

@ -19,6 +19,10 @@ public class Attachment implements Parcelable {
readFromParcel(in);
}
public Attachment() {
}
@Override
public int describeContents() {
return 0;

View File

@ -24,6 +24,10 @@ public class Feed implements Comparable<Feed>, Parcelable {
readFromParcel(in);
}
public Feed() {
}
@Override
public int compareTo(Feed feed) {
if (feed.unread != this.unread)

View File

@ -20,6 +20,10 @@ public class FeedCategory implements Parcelable {
this.order_id = 0;
}
public FeedCategory() {
}
@Override
public int describeContents() {
return 0;

View File

@ -6,4 +6,8 @@ public class Label {
public String fg_color;
public String bg_color;
public boolean checked;
public Label() {
}
}