feat:游戏搜索页面新增分类导航—客户端 https://jira.shanqu.cc/browse/GHZSCY-5585
This commit is contained in:
@ -75,8 +75,14 @@ class SettingsEntity(
|
||||
@SerializedName("hot_list")
|
||||
var rankList: List<RankList>? = listOf(),
|
||||
@SerializedName("wechat_game_search_list")
|
||||
var wechatGameSearchList: List<RankList>? = listOf()// 微信小游戏-搜索榜单
|
||||
var wechatGameSearchList: List<RankList>? = listOf(),// 微信小游戏-搜索榜单
|
||||
@SerializedName("navigations")
|
||||
private val _navigations: List<Navigation>? = null
|
||||
) {
|
||||
|
||||
val navigations: List<Navigation>
|
||||
get() = _navigations ?: emptyList()
|
||||
|
||||
class RankList(
|
||||
var title: String = "",
|
||||
var content: ArrayList<RankContent> = arrayListOf(),
|
||||
@ -103,6 +109,19 @@ class SettingsEntity(
|
||||
var exposureEvent: ExposureEvent? = null
|
||||
}
|
||||
}
|
||||
|
||||
data class Navigation(
|
||||
@SerializedName("type")
|
||||
private val _type: String? = null,
|
||||
@SerializedName("title")
|
||||
private val _title: String? = null
|
||||
) {
|
||||
val type: String
|
||||
get() = _type ?: ""
|
||||
|
||||
val title: String
|
||||
get() = _title ?: ""
|
||||
}
|
||||
}
|
||||
|
||||
class Suggestion(
|
||||
@ -239,10 +258,11 @@ class SettingsEntity(
|
||||
var text: String = "",
|
||||
var display: Display? = Display()
|
||||
) {
|
||||
val typeChinese: String get() = when(type) {
|
||||
"revolving" -> "走马灯"
|
||||
else -> "图片"
|
||||
}
|
||||
val typeChinese: String
|
||||
get() = when (type) {
|
||||
"revolving" -> "走马灯"
|
||||
else -> "图片"
|
||||
}
|
||||
}
|
||||
|
||||
class PermissionPopupAppliedVersions(
|
||||
|
||||
Reference in New Issue
Block a user