package com.troy.xifan.model.response; import android.os.Parcel; import android.os.Parcelable; /** * Created by chenlongfei on 2017/3/17. */ public class AppVersionInfoRes implements Parcelable { /** * name : 嘻饭 * version : 1 * changelog : * updated_at : 1489212261 * versionShort : 1.0 * build : 1 * installUrl : http://download.fir.im/v2/app/install/58b3d92b959d6955760002ed?download_token=03f4e64534da3e016956f108c876310a&source=update * install_url : http://download.fir.im/v2/app/install/58b3d92b959d6955760002ed?download_token=03f4e64534da3e016956f108c876310a&source=update * direct_install_url : http://download.fir.im/v2/app/install/58b3d92b959d6955760002ed?download_token=03f4e64534da3e016956f108c876310a&source=update * update_url : http://fir.im/xifan * binary : {"fsize":3396463} */ private String name; private String version; private String changelog; private int updated_at; private String versionShort; private String build; private String installUrl; private String install_url; private String direct_install_url; private String update_url; private BinaryEntity binary; public String getName() { return name; } public void setName(String name) { this.name = name; } public String getVersion() { return version; } public void setVersion(String version) { this.version = version; } public String getChangelog() { return changelog; } public void setChangelog(String changelog) { this.changelog = changelog; } public int getUpdated_at() { return updated_at; } public void setUpdated_at(int updated_at) { this.updated_at = updated_at; } public String getVersionShort() { return versionShort; } public void setVersionShort(String versionShort) { this.versionShort = versionShort; } public String getBuild() { return build; } public void setBuild(String build) { this.build = build; } public String getInstallUrl() { return installUrl; } public void setInstallUrl(String installUrl) { this.installUrl = installUrl; } public String getInstall_url() { return install_url; } public void setInstall_url(String install_url) { this.install_url = install_url; } public String getDirect_install_url() { return direct_install_url; } public void setDirect_install_url(String direct_install_url) { this.direct_install_url = direct_install_url; } public String getUpdate_url() { return update_url; } public void setUpdate_url(String update_url) { this.update_url = update_url; } public BinaryEntity getBinary() { return binary; } public void setBinary(BinaryEntity binary) { this.binary = binary; } public static class BinaryEntity implements Parcelable { /** * fsize : 3396463 */ private int fsize; public int getFsize() { return fsize; } public void setFsize(int fsize) { this.fsize = fsize; } @Override public int describeContents() { return 0; } @Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(this.fsize); } public BinaryEntity() { } protected BinaryEntity(Parcel in) { this.fsize = in.readInt(); } public static final Creator<BinaryEntity> CREATOR = new Creator<BinaryEntity>() { @Override public BinaryEntity createFromParcel(Parcel source) { return new BinaryEntity(source); } @Override public BinaryEntity[] newArray(int size) { return new BinaryEntity[size]; } }; } @Override public int describeContents() { return 0; } @Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(this.name); dest.writeString(this.version); dest.writeString(this.changelog); dest.writeInt(this.updated_at); dest.writeString(this.versionShort); dest.writeString(this.build); dest.writeString(this.installUrl); dest.writeString(this.install_url); dest.writeString(this.direct_install_url); dest.writeString(this.update_url); dest.writeParcelable(this.binary, flags); } public AppVersionInfoRes() { } protected AppVersionInfoRes(Parcel in) { this.name = in.readString(); this.version = in.readString(); this.changelog = in.readString(); this.updated_at = in.readInt(); this.versionShort = in.readString(); this.build = in.readString(); this.installUrl = in.readString(); this.install_url = in.readString(); this.direct_install_url = in.readString(); this.update_url = in.readString(); this.binary = in.readParcelable(BinaryEntity.class.getClassLoader()); } public static final Creator<AppVersionInfoRes> CREATOR = new Creator<AppVersionInfoRes>() { @Override public AppVersionInfoRes createFromParcel(Parcel source) { return new AppVersionInfoRes(source); } @Override public AppVersionInfoRes[] newArray(int size) { return new AppVersionInfoRes[size]; } }; }