|
@@ -6,6 +6,7 @@ package kr.co.zumo.app.lifeplus.bean.api;
|
|
|
import com.google.gson.annotations.SerializedName;
|
|
import com.google.gson.annotations.SerializedName;
|
|
|
|
|
|
|
|
import kr.co.zumo.app.lifeplus.bean.JsonBeanBase;
|
|
import kr.co.zumo.app.lifeplus.bean.JsonBeanBase;
|
|
|
|
|
+import kr.co.zumo.app.lifeplus.util.StringUtil;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* CoinValueBean
|
|
* CoinValueBean
|
|
@@ -20,13 +21,24 @@ import kr.co.zumo.app.lifeplus.bean.JsonBeanBase;
|
|
|
public class CoinValueBean extends JsonBeanBase {
|
|
public class CoinValueBean extends JsonBeanBase {
|
|
|
|
|
|
|
|
@SerializedName("coin") // 추가된 코인 값
|
|
@SerializedName("coin") // 추가된 코인 값
|
|
|
- private int coin;
|
|
|
|
|
|
|
+ private String coin;
|
|
|
|
|
+
|
|
|
|
|
+// public String getCoin() {
|
|
|
|
|
+// return coin;
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
- public int getCoin() {
|
|
|
|
|
- return coin;
|
|
|
|
|
|
|
+ public int getIntCoin() {
|
|
|
|
|
+ if (StringUtil.isFull(coin)) {
|
|
|
|
|
+ return Integer.parseInt(coin);
|
|
|
|
|
+ }
|
|
|
|
|
+ return 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public void setCoin(int coin) {
|
|
|
|
|
|
|
+ public void setCoin(String coin) {
|
|
|
this.coin = coin;
|
|
this.coin = coin;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ public void setIntCoin(int coin) {
|
|
|
|
|
+ this.coin = String.valueOf(coin);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|