diff --git a/app/src/main/java/com/huanchengfly/tieba/api/models/ChangelogBean.java b/app/src/main/java/com/huanchengfly/tieba/api/models/ChangelogBean.java deleted file mode 100644 index 76820389..00000000 --- a/app/src/main/java/com/huanchengfly/tieba/api/models/ChangelogBean.java +++ /dev/null @@ -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; - } -} diff --git a/app/src/main/java/com/huanchengfly/tieba/api/models/ChangelogBean.kt b/app/src/main/java/com/huanchengfly/tieba/api/models/ChangelogBean.kt new file mode 100644 index 00000000..31d3cdee --- /dev/null +++ b/app/src/main/java/com/huanchengfly/tieba/api/models/ChangelogBean.kt @@ -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 + +} \ No newline at end of file