From f3b6b4cd0a7c5e0c451349697986d6cd5796cc18 Mon Sep 17 00:00:00 2001 From: GoFly233 Date: Thu, 13 Aug 2020 20:06:46 +0800 Subject: [PATCH] =?UTF-8?q?refactor(FuckBaiduAPIBean.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/FuckBaiduAPIBean.kt | 18 +++++------------- ...MessageListBean.java => MessageListBean.kt} | 0 2 files changed, 5 insertions(+), 13 deletions(-) rename app/src/main/java/com/huanchengfly/tieba/api/models/{MessageListBean.java => MessageListBean.kt} (100%) diff --git a/app/src/main/java/com/huanchengfly/tieba/api/models/FuckBaiduAPIBean.kt b/app/src/main/java/com/huanchengfly/tieba/api/models/FuckBaiduAPIBean.kt index 18930866..df30fb70 100644 --- a/app/src/main/java/com/huanchengfly/tieba/api/models/FuckBaiduAPIBean.kt +++ b/app/src/main/java/com/huanchengfly/tieba/api/models/FuckBaiduAPIBean.kt @@ -1,14 +1,6 @@ -package com.huanchengfly.tieba.api.models; +package com.huanchengfly.tieba.api.models -public class FuckBaiduAPIBean { - private int status; - private String message; - - public int getStatus() { - return status; - } - - public String getMessage() { - return message; - } -} +class FuckBaiduAPIBean { + var status: Int? = null + var message: String? = null +} \ No newline at end of file diff --git a/app/src/main/java/com/huanchengfly/tieba/api/models/MessageListBean.java b/app/src/main/java/com/huanchengfly/tieba/api/models/MessageListBean.kt similarity index 100% rename from app/src/main/java/com/huanchengfly/tieba/api/models/MessageListBean.java rename to app/src/main/java/com/huanchengfly/tieba/api/models/MessageListBean.kt