From fe1df9e6ec3264cff2bb3e932b7589962265cff3 Mon Sep 17 00:00:00 2001 From: GoFly233 Date: Thu, 13 Aug 2020 20:27:05 +0800 Subject: [PATCH] =?UTF-8?q?refactor(MessageListBean.java):=20=E5=B0=86=20?= =?UTF-8?q?=E5=87=BD=E6=95=B0=20getErrorCode=20=E8=BF=94=E5=9B=9E=E5=80=BC?= =?UTF-8?q?=E5=86=99=E5=9C=A8=E4=B8=80=E8=A1=8C=E4=BB=A3=E7=A0=81=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/huanchengfly/tieba/api/models/MessageListBean.kt | 4 +--- .../models/{ThreadContentBean.java => ThreadContentBean.kt} | 0 2 files changed, 1 insertion(+), 3 deletions(-) rename app/src/main/java/com/huanchengfly/tieba/api/models/{ThreadContentBean.java => ThreadContentBean.kt} (100%) diff --git a/app/src/main/java/com/huanchengfly/tieba/api/models/MessageListBean.kt b/app/src/main/java/com/huanchengfly/tieba/api/models/MessageListBean.kt index 28dd6abc..6c004466 100644 --- a/app/src/main/java/com/huanchengfly/tieba/api/models/MessageListBean.kt +++ b/app/src/main/java/com/huanchengfly/tieba/api/models/MessageListBean.kt @@ -18,9 +18,7 @@ class MessageListBean : BaseBean() { val page: PageInfoBean? = null val message: MessageBean? = null - fun getErrorCode() { - Integer.valueOf(errorCode!!) - } + fun getErrorCode() = Integer.valueOf(errorCode!!) open inner class UserInfoBean { val id: String? = null diff --git a/app/src/main/java/com/huanchengfly/tieba/api/models/ThreadContentBean.java b/app/src/main/java/com/huanchengfly/tieba/api/models/ThreadContentBean.kt similarity index 100% rename from app/src/main/java/com/huanchengfly/tieba/api/models/ThreadContentBean.java rename to app/src/main/java/com/huanchengfly/tieba/api/models/ThreadContentBean.kt