diff --git a/app/src/main/java/com/huanchengfly/tieba/post/adapters/ThreadStoreAdapter.java b/app/src/main/java/com/huanchengfly/tieba/post/adapters/ThreadStoreAdapter.java index fe3deea0..4d1b15ec 100644 --- a/app/src/main/java/com/huanchengfly/tieba/post/adapters/ThreadStoreAdapter.java +++ b/app/src/main/java/com/huanchengfly/tieba/post/adapters/ThreadStoreAdapter.java @@ -5,12 +5,16 @@ import android.text.SpannableStringBuilder; import android.text.Spanned; import android.text.TextUtils; import android.widget.TextView; -import com.huanchengfly.tieba.post.ui.theme.utils.ThemeUtils; -import com.huanchengfly.tieba.post.api.models.ThreadStoreBean; + import com.huanchengfly.tieba.post.R; +import com.huanchengfly.tieba.post.api.models.ThreadStoreBean; import com.huanchengfly.tieba.post.components.spans.RoundBackgroundColorSpan; import com.huanchengfly.tieba.post.interfaces.OnDeleteListener; -import com.huanchengfly.tieba.post.utils.*; +import com.huanchengfly.tieba.post.ui.theme.utils.ThemeUtils; +import com.huanchengfly.tieba.post.utils.DisplayUtil; +import com.huanchengfly.tieba.post.utils.ImageUtil; +import com.huanchengfly.tieba.post.utils.StringUtil; +import com.huanchengfly.tieba.post.utils.ThemeUtil; import com.othershe.baseadapter.ViewHolder; import com.othershe.baseadapter.base.CommonBaseAdapter; @@ -31,16 +35,20 @@ public class ThreadStoreAdapter extends CommonBaseAdapter? = null +) : BaseBean() { + data class ThreadStoreInfo( + @SerializedName("thread_id") + val threadId: String, + val title: String, + @SerializedName("forum_name") + val forumName: String, + val author: AuthorInfo, + val media: List, + @SerializedName("is_deleted") + val isDeleted: String, + @SerializedName("last_time") + val lastTime: String, + val type: String, + val status: String, + @SerializedName("max_pid") + val maxPid: String, + @SerializedName("min_pid") + val minPid: String, + @SerializedName("mark_pid") + val markPid: String, + @SerializedName("mark_status") + val markStatus: String, + @SerializedName("post_no") + val postNo: String, + @SerializedName("post_no_msg") + val postNoMsg: String, + val count: String + ) : BaseBean() - @SerializedName("store_thread") - val storeThread: List? = null + data class MediaInfo( + val type: String? = null, + @SerializedName("small_Pic") + val smallPic: String? = null, + @SerializedName("big_pic") + val bigPic: String? = null, + val width: String? = null, + val height: String? = null + ) : BaseBean() - inner class ThreadStoreInfo : BaseBean() { - @SerializedName("thread_id") - val threadId: String? = null - val title: String? = null + data class AuthorInfo( + @SerializedName("lz_uid") + val lzUid: String? = null, + val name: String? = null, + @SerializedName("name_show") + val nameShow: String? = null, + @SerializedName("user_portrait") + val userPortrait: String? = null - @SerializedName("forum_name") - val forumName: String? = null - val author: AuthorInfo? = null - val media: List? = null + ) : BaseBean() - @SerializedName("is_deleted") - val isDeleted: String? = null - - @SerializedName("last_time") - val lastTime: String? = null - val type: String? = null - val status: String? = null - - @SerializedName("max_pid") - val maxPid: String? = null - - @SerializedName("min_pid") - val minPid: String? = null - - @SerializedName("mark_pid") - val markPid: String? = null - - @SerializedName("mark_status") - val markStatus: String? = null - - } - - inner class MediaInfo : BaseBean() { - val type: String? = null - - @SerializedName("small_Pic") - val smallPic: String? = null - - @SerializedName("big_pic") - val bigPic: String? = null - val width: String? = null - val height: String? = null - - } - - inner class AuthorInfo : BaseBean() { - @SerializedName("lz_uid") - val lzUid: String? = null - val name: String? = null - - @SerializedName("name_show") - val nameShow: String? = null - - @SerializedName("user_portrait") - val userPortrait: String? = null - - } - - inner class ErrorInfo : BaseBean() { - @SerializedName("errno") - val errorCode: String? = null - - @SerializedName("errmsg") - val errorMsg: String? = null - - } -} \ No newline at end of file + data class ErrorInfo( + @SerializedName("errno") + val errorCode: String? = null, + @SerializedName("errmsg") + val errorMsg: String? = null + ) : BaseBean() +} diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index e2353172..4e9a27cf 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -359,4 +359,5 @@ 经典 符号 是否更新收藏楼层 + 更新到 %1$s 楼