#915 comment - add a param in status entity for cache
This commit is contained in:
parent
6350841ccb
commit
4381d1d7f6
|
@ -135,6 +135,7 @@ public class Status implements Parcelable{
|
|||
private Poll poll = null;
|
||||
|
||||
private int media_height;
|
||||
private boolean iscached = false;
|
||||
|
||||
@Override
|
||||
public void writeToParcel(Parcel dest, int flags) {
|
||||
|
@ -193,6 +194,7 @@ public class Status implements Parcelable{
|
|||
dest.writeByte(this.isNotice ? (byte) 1 : (byte) 0);
|
||||
dest.writeParcelable(this.poll, flags);
|
||||
dest.writeInt(this.media_height);
|
||||
dest.writeByte(this.iscached ? (byte) 1 : (byte) 0);
|
||||
}
|
||||
|
||||
protected Status(Parcel in) {
|
||||
|
@ -253,6 +255,7 @@ public class Status implements Parcelable{
|
|||
this.isNotice = in.readByte() != 0;
|
||||
this.poll = in.readParcelable(Poll.class.getClassLoader());
|
||||
this.media_height = in.readInt();
|
||||
this.iscached = in.readByte() != 0;
|
||||
}
|
||||
|
||||
public static final Creator<Status> CREATOR = new Creator<Status>() {
|
||||
|
@ -1352,4 +1355,12 @@ public class Status implements Parcelable{
|
|||
public void setMedia_height(int media_height) {
|
||||
this.media_height = media_height;
|
||||
}
|
||||
|
||||
public boolean isIscached() {
|
||||
return iscached;
|
||||
}
|
||||
|
||||
public void setIscached(boolean iscached) {
|
||||
this.iscached = iscached;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue