refactor(AgreeBean.java): 使用 Kotlin 重写
This commit is contained in:
parent
b8ad4cbff6
commit
35b7d43635
|
|
@ -1,40 +0,0 @@
|
|||
package com.huanchengfly.tieba.api.models;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import com.huanchengfly.tieba.post.models.BaseBean;
|
||||
|
||||
public class AgreeBean extends BaseBean {
|
||||
@SerializedName("error_code")
|
||||
private String errorCode;
|
||||
@SerializedName("error_msg")
|
||||
private String errorMsg;
|
||||
private AgreeDataBean data;
|
||||
|
||||
public String getErrorCode() {
|
||||
return errorCode;
|
||||
}
|
||||
|
||||
public String getErrorMsg() {
|
||||
return errorMsg;
|
||||
}
|
||||
|
||||
public AgreeDataBean getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public static class AgreeDataBean {
|
||||
private AgreeInfoBean agree;
|
||||
|
||||
public AgreeInfoBean getAgree() {
|
||||
return agree;
|
||||
}
|
||||
}
|
||||
|
||||
public static class AgreeInfoBean {
|
||||
private String score;
|
||||
|
||||
public String getScore() {
|
||||
return score;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
package com.huanchengfly.tieba.api.models
|
||||
|
||||
import com.huanchengfly.tieba.post.models.BaseBean
|
||||
import com.google.gson.annotations.SerializedName
|
||||
import com.huanchengfly.tieba.api.models.AgreeBean.AgreeDataBean
|
||||
import com.huanchengfly.tieba.api.models.AgreeBean.AgreeInfoBean
|
||||
|
||||
class AgreeBean : BaseBean() {
|
||||
@SerializedName("error_code")
|
||||
val errorCode: String? = null
|
||||
|
||||
@SerializedName("error_msg")
|
||||
val errorMsg: String? = null
|
||||
val data: AgreeDataBean? = null
|
||||
|
||||
class AgreeDataBean {
|
||||
val agree: AgreeInfoBean? = null
|
||||
}
|
||||
|
||||
class AgreeInfoBean {
|
||||
val score: String? = null
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue