refactor(ReplyResultBean.java): 使用 Kotlin 重写

This commit is contained in:
GoFly233 2020-08-13 20:20:14 +08:00 committed by HuanChengFly
parent 4328a3d20e
commit 4f339e594a
2 changed files with 16 additions and 43 deletions

View File

@ -1,55 +1,28 @@
package com.huanchengfly.tieba.api.models; package com.huanchengfly.tieba.api.models
import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.SerializedName
public class ReplyResultBean { class ReplyResultBean {
@SerializedName("error_code") @SerializedName("error_code")
public String errorCode; var errorCode: String? = null
@SerializedName("error_msg") @SerializedName("error_msg")
public String errorMsg; var errorMsg: String? = null
public InfoBean info; var info: InfoBean? = null
private String pid; val pid: String? = null
public String getPid() { inner class InfoBean {
return pid;
}
public String getErrorCode() {
return errorCode;
}
public String getErrorMsg() {
return errorMsg;
}
public InfoBean getInfo() {
return info;
}
public class InfoBean {
@SerializedName("need_vcode") @SerializedName("need_vcode")
private String needVcode; val needVcode: String? = null
@SerializedName("vcode_md5") @SerializedName("vcode_md5")
private String vcodeMD5; val vcodeMD5: String? = null
@SerializedName("vcode_pic_url") @SerializedName("vcode_pic_url")
private String vcodePicUrl; val vcodePicUrl: String? = null
@SerializedName("pass_token") @SerializedName("pass_token")
private String passToken; val passToken: String? = null
public String getPassToken() {
return passToken;
}
public String getNeedVcode() {
return needVcode;
}
public String getVcodeMD5() {
return vcodeMD5;
}
public String getVcodePicUrl() {
return vcodePicUrl;
}
} }
} }