2024-09-06 17:43:43 +08:00
|
|
|
package com.aiosman.riderpro
|
|
|
|
|
|
2024-09-20 21:40:57 +08:00
|
|
|
import com.aiosman.riderpro.ui.favourite.FavouriteListViewModel
|
|
|
|
|
import com.aiosman.riderpro.ui.favourite.FavouriteNoticeViewModel
|
|
|
|
|
import com.aiosman.riderpro.ui.follower.FollowerNoticeViewModel
|
|
|
|
|
import com.aiosman.riderpro.ui.follower.FollowingListViewModel
|
|
|
|
|
import com.aiosman.riderpro.ui.index.IndexViewModel
|
|
|
|
|
import com.aiosman.riderpro.ui.index.tabs.message.MessageListViewModel
|
|
|
|
|
import com.aiosman.riderpro.ui.index.tabs.moment.MomentViewModel
|
|
|
|
|
import com.aiosman.riderpro.ui.index.tabs.profile.MyProfileViewModel
|
|
|
|
|
import com.aiosman.riderpro.ui.index.tabs.search.DiscoverViewModel
|
|
|
|
|
import com.aiosman.riderpro.ui.index.tabs.search.SearchViewModel
|
|
|
|
|
import com.aiosman.riderpro.ui.like.LikeNoticeViewModel
|
|
|
|
|
|
2024-09-06 17:43:43 +08:00
|
|
|
object AppState {
|
|
|
|
|
var UserId: Int? = null
|
2024-09-20 21:40:57 +08:00
|
|
|
|
|
|
|
|
fun ReloadAppState() {
|
|
|
|
|
// 重置动态列表页面
|
|
|
|
|
MomentViewModel.ResetModel()
|
|
|
|
|
// 重置我的页面
|
|
|
|
|
MyProfileViewModel.ResetModel()
|
|
|
|
|
// 重置发现页面
|
|
|
|
|
DiscoverViewModel.ResetModel()
|
|
|
|
|
// 重置搜索页面
|
|
|
|
|
SearchViewModel.ResetModel()
|
|
|
|
|
// 重置消息页面
|
|
|
|
|
MessageListViewModel.ResetModel()
|
|
|
|
|
// 重置点赞通知页面
|
|
|
|
|
LikeNoticeViewModel.ResetModel()
|
|
|
|
|
// 重置收藏页面
|
|
|
|
|
FavouriteListViewModel.ResetModel()
|
|
|
|
|
// 重置收藏通知页面
|
|
|
|
|
FavouriteNoticeViewModel.ResetModel()
|
|
|
|
|
// 重置粉丝通知页面
|
|
|
|
|
FollowerNoticeViewModel.ResetModel()
|
|
|
|
|
// 重置关注列表页面
|
|
|
|
|
FollowingListViewModel.ResetModel()
|
|
|
|
|
// 重置关注通知页面
|
|
|
|
|
IndexViewModel.ResetModel()
|
|
|
|
|
UserId = null
|
|
|
|
|
}
|
2024-09-06 17:43:43 +08:00
|
|
|
}
|