文字等级

This commit is contained in:
18401019693 2022-11-08 17:40:42 +08:00
parent d0d36ef207
commit 939675fe58

View File

@ -1,5 +1,7 @@
package com.yunbao.common.bean; package com.yunbao.common.bean;
import android.text.TextUtils;
import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.SerializedName;
/** /**
@ -9,9 +11,9 @@ public class NewLevelModel extends BaseModel {
@SerializedName("id") @SerializedName("id")
private String id; private String id;
@SerializedName("levemin") @SerializedName("levelmin")
private String levemin; private String levemin;
@SerializedName("levemax") @SerializedName("levelmax")
private String levemax; private String levemax;
@SerializedName("thumb") @SerializedName("thumb")
private String thumb; private String thumb;
@ -30,10 +32,16 @@ public class NewLevelModel extends BaseModel {
} }
public int getLeveMin() { public int getLeveMin() {
if (TextUtils.isEmpty(levemin)) {
levemin = "0";
}
return Integer.parseInt(levemin); return Integer.parseInt(levemin);
} }
public int getLeveMax() { public int getLeveMax() {
if (TextUtils.isEmpty(levemax)) {
levemax = "0";
}
return Integer.parseInt(levemax); return Integer.parseInt(levemax);
} }