package com.tejia.lijin.app.entity;
|
|
import android.os.Parcel;
|
import android.os.Parcelable;
|
|
import com.google.gson.annotations.Expose;
|
|
/**
|
* 金币兑换并序列化
|
*/
|
public class GoldExchange implements Parcelable {
|
|
@Expose
|
private String id;// 兑换id
|
@Expose
|
private String name; // 名称
|
@Expose
|
private String picture;// 图片
|
@Expose
|
private String goldCoin;// 兑换金币
|
@Expose
|
private String tip;// 提示语
|
@Expose
|
private String type; // 类型
|
@Expose
|
private String btnName;// 按钮名称
|
@Expose
|
private String ruleLink; // 规则链接
|
@Expose
|
private String progress;// 兑换进度
|
@Expose
|
private boolean needJump;
|
|
public String getId() {
|
return id;
|
}
|
|
public void setId(String id) {
|
this.id = id;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public String getPicture() {
|
return picture;
|
}
|
|
public void setPicture(String picture) {
|
this.picture = picture;
|
}
|
|
public String getGoldCoin() {
|
return goldCoin;
|
}
|
|
public void setGoldCoin(String goldCoin) {
|
this.goldCoin = goldCoin;
|
}
|
|
public String getTip() {
|
return tip;
|
}
|
|
public void setTip(String tip) {
|
this.tip = tip;
|
}
|
|
public String getType() {
|
return type;
|
}
|
|
public void setType(String type) {
|
this.type = type;
|
}
|
|
public String getBtnName() {
|
return btnName;
|
}
|
|
public void setBtnName(String btnName) {
|
this.btnName = btnName;
|
}
|
|
public String getRuleLink() {
|
return ruleLink;
|
}
|
|
public void setRuleLink(String ruleLink) {
|
this.ruleLink = ruleLink;
|
}
|
|
public String getProgress() {
|
return progress;
|
}
|
|
public void setProgress(String progress) {
|
this.progress = progress;
|
}
|
|
public boolean isNeedJump() {
|
return needJump;
|
}
|
|
public void setNeedJump(boolean needJump) {
|
this.needJump = needJump;
|
}
|
|
@Override
|
public int describeContents() {
|
return 0;
|
}
|
|
@Override
|
public void writeToParcel(Parcel dest, int flags) {
|
dest.writeString(id);
|
dest.writeString(name);
|
dest.writeString(picture);
|
dest.writeString(goldCoin);
|
dest.writeString(tip);
|
dest.writeString(type);
|
dest.writeString(btnName);
|
dest.writeString(ruleLink);
|
dest.writeString(progress);
|
}
|
|
public static final Parcelable.Creator<GoldExchange> CREATOR =
|
new Parcelable.Creator<GoldExchange>() {
|
@Override
|
public GoldExchange createFromParcel(Parcel source) {
|
return new GoldExchange(source);
|
}
|
|
@Override
|
public GoldExchange[] newArray(int size) {
|
return new GoldExchange[size];
|
}
|
};
|
|
protected GoldExchange(Parcel source) {
|
id = source.readString();
|
name = source.readString();
|
picture = source.readString();
|
goldCoin = source.readString();
|
tip = source.readString();
|
type = source.readString();
|
btnName = source.readString();
|
ruleLink = source.readString();
|
progress = source.readString();
|
}
|
}
|