refactor(ChangelogBean.java): 使用 Kotlin 重写
This commit is contained in:
parent
35b7d43635
commit
3482cf6131
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
||||
}
|
Loading…
Reference in New Issue