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); readFromParcel(in);
} }
public Article() {
}
public Article(int id) { public Article(int id) {
this.id = id; this.id = id;
this.title = ""; this.title = "";

View File

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

View File

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

View File

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

View File

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