diff --git a/app/src/main/java/com/huanchengfly/tieba/api/models/ReplyResultBean.kt b/app/src/main/java/com/huanchengfly/tieba/api/models/ReplyResultBean.kt index 666ac7a4..c6bb2284 100644 --- a/app/src/main/java/com/huanchengfly/tieba/api/models/ReplyResultBean.kt +++ b/app/src/main/java/com/huanchengfly/tieba/api/models/ReplyResultBean.kt @@ -1,55 +1,28 @@ -package com.huanchengfly.tieba.api.models; +package com.huanchengfly.tieba.api.models -import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.SerializedName -public class ReplyResultBean { +class ReplyResultBean { @SerializedName("error_code") - public String errorCode; + var errorCode: String? = null + @SerializedName("error_msg") - public String errorMsg; - public InfoBean info; - private String pid; + var errorMsg: String? = null + var info: InfoBean? = null + val pid: String? = null - public String getPid() { - return pid; - } - - public String getErrorCode() { - return errorCode; - } - - public String getErrorMsg() { - return errorMsg; - } - - public InfoBean getInfo() { - return info; - } - - public class InfoBean { + inner class InfoBean { @SerializedName("need_vcode") - private String needVcode; + val needVcode: String? = null + @SerializedName("vcode_md5") - private String vcodeMD5; + val vcodeMD5: String? = null + @SerializedName("vcode_pic_url") - private String vcodePicUrl; + val vcodePicUrl: String? = null + @SerializedName("pass_token") - private String passToken; + val passToken: String? = null - public String getPassToken() { - return passToken; - } - - public String getNeedVcode() { - return needVcode; - } - - public String getVcodeMD5() { - return vcodeMD5; - } - - public String getVcodePicUrl() { - return vcodePicUrl; - } } } \ No newline at end of file diff --git a/app/src/main/java/com/huanchengfly/tieba/api/models/SearchForumBean.java b/app/src/main/java/com/huanchengfly/tieba/api/models/SearchForumBean.kt similarity index 100% rename from app/src/main/java/com/huanchengfly/tieba/api/models/SearchForumBean.java rename to app/src/main/java/com/huanchengfly/tieba/api/models/SearchForumBean.kt