package com.tejia.lijin.app.entity;
|
|
import android.os.Parcel;
|
import android.os.Parcelable;
|
|
import com.google.gson.annotations.Expose;
|
|
/**
|
* 金币兑换状态提示
|
*/
|
public class GoldExchangeState implements Parcelable {
|
@Expose
|
private String id;//类型
|
@Expose
|
private String type;//类型
|
@Expose
|
private String goldCoin;//金币数量
|
@Expose
|
private String name;//只有红包才会返回
|
@Expose
|
private String tip; //提示语
|
@Expose
|
private String inviteCode; //邀请码
|
@Expose
|
private boolean needJump; //是否需要打开dialog
|
|
public String getId() {
|
return id;
|
}
|
|
public void setId(String id) {
|
this.id = id;
|
}
|
|
public String getType() {
|
return type;
|
}
|
|
public void setType(String type) {
|
this.type = type;
|
}
|
|
public String getGoldCoin() {
|
return goldCoin;
|
}
|
|
public void setGoldCoin(String goldCoin) {
|
this.goldCoin = goldCoin;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public String getTip() {
|
return tip;
|
}
|
|
public void setTip(String tip) {
|
this.tip = tip;
|
}
|
|
public String getInviteCode() {
|
return inviteCode;
|
}
|
|
public void setInviteCode(String inviteCode) {
|
this.inviteCode = inviteCode;
|
}
|
|
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(type);
|
dest.writeString(name);
|
dest.writeString(goldCoin);
|
dest.writeString(tip);
|
dest.writeString(inviteCode);
|
}
|
|
public static final Parcelable.Creator CREATOR = new Creator() {
|
@Override
|
public Object createFromParcel(Parcel source) {
|
return new GoldExchangeState(source);
|
}
|
|
@Override
|
public Object[] newArray(int size) {
|
return new Object[size];
|
}
|
};
|
|
protected GoldExchangeState(Parcel source) {
|
id = source.readString();
|
type = source.readString();
|
goldCoin = source.readString();
|
name = source.readString();
|
tip = source.readString();
|
inviteCode = source.readString();
|
}
|
}
|