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

This commit is contained in:
GoFly233 2020-08-13 19:34:39 +08:00 committed by HuanChengFly
parent 35b7d43635
commit 3482cf6131
2 changed files with 15 additions and 29 deletions

View File

@ -1,29 +0,0 @@
package com.huanchengfly.tieba.api.models;
import com.google.gson.annotations.SerializedName;
import com.huanchengfly.tieba.post.models.BaseBean;
public class ChangelogBean extends BaseBean {
@SerializedName("error_code")
private int errorCode;
@SerializedName("error_msg")
private String errorMsg;
private boolean success;
private String result;
public int getErrorCode() {
return errorCode;
}
public String getErrorMsg() {
return errorMsg;
}
public boolean isSuccess() {
return success;
}
public String getResult() {
return result;
}
}

View File

@ -0,0 +1,15 @@
package com.huanchengfly.tieba.api.models
import com.google.gson.annotations.SerializedName
import com.huanchengfly.tieba.post.models.BaseBean
class ChangelogBean : BaseBean() {
@SerializedName("error_code")
val errorCode = 0
@SerializedName("error_msg")
val errorMsg: String? = null
val isSuccess = false
val result: String? = null
}