From 3482cf6131dd1aa8ebea7bb8d0ca58654b3fa79a Mon Sep 17 00:00:00 2001 From: GoFly233 Date: Thu, 13 Aug 2020 19:34:39 +0800 Subject: [PATCH] =?UTF-8?q?refactor(ChangelogBean.java):=20=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=20Kotlin=20=E9=87=8D=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tieba/api/models/ChangelogBean.java | 29 ------------------- .../tieba/api/models/ChangelogBean.kt | 15 ++++++++++ 2 files changed, 15 insertions(+), 29 deletions(-) delete mode 100644 app/src/main/java/com/huanchengfly/tieba/api/models/ChangelogBean.java create mode 100644 app/src/main/java/com/huanchengfly/tieba/api/models/ChangelogBean.kt 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