|
|
@@ -27,7 +27,6 @@ import com.adealink.weparty.commonui.toast.util.showToast
|
|
|
import com.adealink.weparty.commonui.widget.floatview.view.HideMode
|
|
|
import com.adealink.weparty.commonui.widget.floatview.view.ITouchDispatchEventListener
|
|
|
import com.adealink.weparty.commonui.widget.floatview.view.SwipeToTopConstraintLayout
|
|
|
-import com.adealink.weparty.config.GlobalConfigType
|
|
|
import com.adealink.weparty.headline.R
|
|
|
import com.adealink.weparty.headline.data.TAG_HEADLINE
|
|
|
import com.adealink.weparty.headline.databinding.FragmentHealineBinding
|
|
|
@@ -36,7 +35,7 @@ import com.adealink.weparty.headline.effect.data.GlobalHeadlineEntity
|
|
|
import com.adealink.weparty.headline.viewmodel.HeadlineViewModel
|
|
|
import com.adealink.weparty.headline.viewmodel.HeadlineViewModelFactory
|
|
|
import com.adealink.weparty.module.game.GameModule
|
|
|
-import com.adealink.weparty.module.game.data.GameShowConfig
|
|
|
+import com.adealink.weparty.module.game.data.GameEntranceType
|
|
|
import com.adealink.weparty.module.game.rocket.effect.IHeadlineBtnClickListener
|
|
|
import com.adealink.weparty.module.game.rocket.effect.RocketHeadlineEffectEntity
|
|
|
import com.adealink.weparty.module.gift.Gift
|
|
|
@@ -47,7 +46,6 @@ import com.adealink.weparty.module.headline.Headline
|
|
|
import com.adealink.weparty.module.headline.listener.IHeadlineOpListener
|
|
|
import com.adealink.weparty.module.profile.Profile
|
|
|
import com.adealink.weparty.module.profile.ProfileModule
|
|
|
-import com.adealink.weparty.module.profile.decorate.data.DecorType
|
|
|
import com.adealink.weparty.module.room.Room
|
|
|
import com.adealink.weparty.module.room.RoomModule
|
|
|
import com.adealink.weparty.module.room.data.RoomMicMode
|
|
|
@@ -56,8 +54,6 @@ import com.adealink.weparty.module.room.listener.IRoomListener
|
|
|
import com.adealink.weparty.module.room.wedding.IHeadlineClickListener
|
|
|
import com.adealink.weparty.module.share.ShareModule
|
|
|
import com.adealink.weparty.module.webview.Web
|
|
|
-import com.adealink.weparty.module.webview.WebViewDialogFragmentBuilder
|
|
|
-import com.adealink.weparty.module.webview.data.OfflineH5GameInfo
|
|
|
import com.adealink.weparty.room.data.EnterRoomInfo
|
|
|
import com.adealink.weparty.url.H5Page
|
|
|
import com.adealink.weparty.url.urlConfigService
|
|
|
@@ -73,7 +69,6 @@ class HeadlineFragment : BaseFragment(R.layout.fragment_healine), IHeadlineOpLis
|
|
|
private val binding by viewBinding(FragmentHealineBinding::bind)
|
|
|
private val headlineViewModel by viewModels<HeadlineViewModel> { HeadlineViewModelFactory() }
|
|
|
private var isShowInviteRebate: Boolean? = null
|
|
|
- private val gameShowConfigMap = hashMapOf<Int, GameShowConfig>()
|
|
|
|
|
|
private val gameViewModel by fastLazy { GameModule.getGameViewModel(this) }
|
|
|
private val giftViewModel by fastLazy { GiftModule.getGiftViewModel(this) }
|
|
|
@@ -298,22 +293,6 @@ class HeadlineFragment : BaseFragment(R.layout.fragment_healine), IHeadlineOpLis
|
|
|
val show = (it as? Rlt.Success)?.data?.data?.show
|
|
|
isShowInviteRebate = (show == true)
|
|
|
}
|
|
|
- gameViewModel?.isGameShow(
|
|
|
- listOf(
|
|
|
- DecorType.LUCKY_FRUIT_GAME.value,
|
|
|
- DecorType.JACKPOT_GAME.value,
|
|
|
- DecorType.JACKPOT_SLOT_GAME.value,
|
|
|
- DecorType.GREEDY_BOX_GAME.value,
|
|
|
- DecorType.TEEN_PATTI_GAME.value,
|
|
|
- DecorType.DRAGON_TIGER_FIGHT_GAME.value,
|
|
|
- DecorType.RUSSIAN_TURNTABLE_GAME.value,
|
|
|
- DecorType.TEXAS_GAME.value,
|
|
|
- DecorType.LUCKY_PRO_GAME.value,
|
|
|
- DecorType.GREEDY_PRO_GAME.value,
|
|
|
- )
|
|
|
- )?.observe(viewLifecycleOwner) { configMap ->
|
|
|
- gameShowConfigMap.putAll(configMap)
|
|
|
- }
|
|
|
|
|
|
headlineViewModel.getHeadlineQueueRandomConfig().observe(viewLifecycleOwner) {
|
|
|
if (it == null) {
|
|
|
@@ -349,148 +328,6 @@ class HeadlineFragment : BaseFragment(R.layout.fragment_healine), IHeadlineOpLis
|
|
|
.putExtra(Profile.Common.EXTRA_UID, uid).start()
|
|
|
}
|
|
|
|
|
|
- private fun checkAndShowLuckyFruitEntry() {
|
|
|
- val luckyFruitShowConfig = gameShowConfigMap[DecorType.LUCKY_FRUIT_GAME.value]
|
|
|
- if (luckyFruitShowConfig == null) {
|
|
|
- gameViewModel?.isShowLuckyFruit()?.observe(viewLifecycleOwner) {
|
|
|
- if (it is Rlt.Success) {
|
|
|
- showLuckyFruitEntry()
|
|
|
- }
|
|
|
- }
|
|
|
- } else if (luckyFruitShowConfig.show) {
|
|
|
- showLuckyFruitEntry()
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- private fun checkAndShowTeenPattiEntry() {
|
|
|
- val teenPattiShowConfig = gameShowConfigMap[DecorType.TEEN_PATTI_GAME.value]
|
|
|
- if (teenPattiShowConfig == null) {
|
|
|
- gameViewModel?.isGameShow(listOf(DecorType.TEEN_PATTI_GAME.value))
|
|
|
- ?.observe(viewLifecycleOwner) { configMap ->
|
|
|
- val config = configMap[DecorType.TEEN_PATTI_GAME.value]
|
|
|
- if (config?.show == true) {
|
|
|
- showTeenPattiEntry(config.loadingUrl)
|
|
|
- }
|
|
|
- }
|
|
|
- } else if (teenPattiShowConfig.show) {
|
|
|
- showTeenPattiEntry(teenPattiShowConfig.loadingUrl)
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- private fun checkAndShowSlotProEntry() {
|
|
|
- val slotProShowConfig = gameShowConfigMap[DecorType.JACKPOT_SLOT_GAME.value]
|
|
|
- if (slotProShowConfig == null) {
|
|
|
- gameViewModel?.isGameShow(listOf(DecorType.JACKPOT_SLOT_GAME.value))
|
|
|
- ?.observe(viewLifecycleOwner) { configMap ->
|
|
|
- val config = configMap[DecorType.JACKPOT_SLOT_GAME.value]
|
|
|
- if (config?.show == true) {
|
|
|
- showSlotProEntry(config.loadingUrl)
|
|
|
- }
|
|
|
- }
|
|
|
- } else if (slotProShowConfig.show) {
|
|
|
- showSlotProEntry(slotProShowConfig.loadingUrl)
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- private fun checkAndShowGreedyBoxEntry() {
|
|
|
- val greedyBoxShowConfig = gameShowConfigMap[DecorType.GREEDY_BOX_GAME.value]
|
|
|
- if (greedyBoxShowConfig == null) {
|
|
|
- gameViewModel?.isGameShow(listOf(DecorType.GREEDY_BOX_GAME.value))
|
|
|
- ?.observe(viewLifecycleOwner) { configMap ->
|
|
|
- val config = configMap[DecorType.GREEDY_BOX_GAME.value]
|
|
|
- if (config?.show == true) {
|
|
|
- showGreedyBoxEntry(config.loadingUrl)
|
|
|
- }
|
|
|
- }
|
|
|
- } else if (greedyBoxShowConfig.show) {
|
|
|
- showGreedyBoxEntry(greedyBoxShowConfig.loadingUrl)
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- private fun checkAndShowGreedyProEntry() {
|
|
|
- val greedyProShowConfig = gameShowConfigMap[DecorType.GREEDY_PRO_GAME.value]
|
|
|
- if (greedyProShowConfig == null) {
|
|
|
- gameViewModel?.isGameShow(listOf(DecorType.GREEDY_PRO_GAME.value))
|
|
|
- ?.observe(viewLifecycleOwner) { configMap ->
|
|
|
- val config = configMap[DecorType.GREEDY_PRO_GAME.value]
|
|
|
- if (config?.show == true) {
|
|
|
- showGreedyProEntry()
|
|
|
- }
|
|
|
- }
|
|
|
- } else if (greedyProShowConfig.show) {
|
|
|
- showGreedyProEntry()
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- private fun checkAndShowLuckyProEntry() {
|
|
|
- val luckyProShowConfig = gameShowConfigMap[DecorType.LUCKY_PRO_GAME.value]
|
|
|
- if (luckyProShowConfig == null) {
|
|
|
- gameViewModel?.isGameShow(listOf(DecorType.LUCKY_PRO_GAME.value))
|
|
|
- ?.observe(viewLifecycleOwner) { configMap ->
|
|
|
- val config = configMap[DecorType.LUCKY_PRO_GAME.value]
|
|
|
- if (config?.show == true) {
|
|
|
- showLuckyProEntry()
|
|
|
- }
|
|
|
- }
|
|
|
- return
|
|
|
- } else if (luckyProShowConfig.show) {
|
|
|
- showLuckyProEntry()
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- private fun checkAndShowDragonTigerEntry() {
|
|
|
- val dragonTigerShowConfig = gameShowConfigMap[DecorType.DRAGON_TIGER_FIGHT_GAME.value]
|
|
|
- if (dragonTigerShowConfig == null) {
|
|
|
- gameViewModel?.isGameShow(listOf(DecorType.DRAGON_TIGER_FIGHT_GAME.value))
|
|
|
- ?.observe(viewLifecycleOwner) { configMap ->
|
|
|
- val config = configMap[DecorType.DRAGON_TIGER_FIGHT_GAME.value]
|
|
|
- if (config?.show == true) {
|
|
|
- showDragonFightEntry(config.loadingUrl)
|
|
|
- }
|
|
|
- }
|
|
|
- return
|
|
|
- } else if (dragonTigerShowConfig.show) {
|
|
|
- showDragonFightEntry(dragonTigerShowConfig.loadingUrl)
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- private fun checkAndShowTexasCowboyEntry() {
|
|
|
- val texasCowboyShowConfig = gameShowConfigMap[DecorType.TEXAS_GAME.value]
|
|
|
- if (texasCowboyShowConfig == null) {
|
|
|
- gameViewModel?.isGameShow(listOf(DecorType.TEXAS_GAME.value))
|
|
|
- ?.observe(viewLifecycleOwner) { configMap ->
|
|
|
- val config = configMap[DecorType.TEXAS_GAME.value]
|
|
|
- if (config?.show == true) {
|
|
|
- showTexasCowboyEntry(config.loadingUrl)
|
|
|
- }
|
|
|
- }
|
|
|
- return
|
|
|
- } else if (texasCowboyShowConfig.show) {
|
|
|
- showTexasCowboyEntry(texasCowboyShowConfig.loadingUrl)
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- private fun checkAndShowRussianRouletteEntry() {
|
|
|
- val russianRouletteShowConfig = gameShowConfigMap[DecorType.RUSSIAN_TURNTABLE_GAME.value]
|
|
|
- if (russianRouletteShowConfig == null) {
|
|
|
- gameViewModel?.isGameShow(listOf(DecorType.RUSSIAN_TURNTABLE_GAME.value))
|
|
|
- ?.observe(viewLifecycleOwner) { configMap ->
|
|
|
- val config = configMap[DecorType.RUSSIAN_TURNTABLE_GAME.value]
|
|
|
- if (config?.show == true) {
|
|
|
- showRussianRouletteEntry(config.loadingUrl)
|
|
|
- }
|
|
|
- }
|
|
|
- return
|
|
|
- } else if (russianRouletteShowConfig.show) {
|
|
|
- showRussianRouletteEntry(russianRouletteShowConfig.loadingUrl)
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- private fun showLuckyFruitEntry() {
|
|
|
- val activity = activity ?: return
|
|
|
- goLocalLinkPage(activity, urlConfigService.getH5Url(H5Page.LUCKY_FRUIT))
|
|
|
- }
|
|
|
-
|
|
|
private fun goSuperGiftWeb() {
|
|
|
if (!GameModule.isShowSuperGift()) {
|
|
|
showToast(R.string.headline_super_gift_level_limit)
|
|
|
@@ -503,146 +340,6 @@ class HeadlineFragment : BaseFragment(R.layout.fragment_healine), IHeadlineOpLis
|
|
|
.start()
|
|
|
}
|
|
|
|
|
|
- private fun checkAndShowSlotEntry() {
|
|
|
- val jackpotShowConfig = gameShowConfigMap[DecorType.JACKPOT_GAME.value]
|
|
|
- if (jackpotShowConfig == null) {
|
|
|
- gameViewModel?.isGameShow(listOf(DecorType.JACKPOT_GAME.value))
|
|
|
- ?.observe(viewLifecycleOwner) { configMap ->
|
|
|
- val config = configMap[DecorType.JACKPOT_GAME.value]
|
|
|
- if (config?.show == true) {
|
|
|
- goSlotWeb()
|
|
|
- }
|
|
|
- }
|
|
|
- } else if (jackpotShowConfig.show) {
|
|
|
- goSlotWeb()
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- private fun goSlotWeb() {
|
|
|
- val activity = activity ?: return
|
|
|
- WebViewDialogFragmentBuilder()
|
|
|
- .height(1300 * DisplayUtil.getScreenWidth() / 750)
|
|
|
- .build()
|
|
|
- ?.showUrl(activity.supportFragmentManager, urlConfigService.getH5Url(H5Page.SLOT))
|
|
|
- }
|
|
|
-
|
|
|
- private fun showSlotProEntry(loadingUrl: String?) {
|
|
|
- gameViewModel?.checkGameValid(GlobalConfigType.GLOBAL_JACKPOT_SLOT_VERSION_INFO)
|
|
|
- ?.observe(viewLifecycleOwner) {
|
|
|
- if(it.first.not()) return@observe
|
|
|
- val resourceUrl = it.second?.resourceUrl
|
|
|
- val needDownload = it.second?.needDownload ?: true
|
|
|
- val activity = activity ?: return@observe
|
|
|
- WebViewDialogFragmentBuilder()
|
|
|
- .height(1340 * DisplayUtil.getScreenWidth() / 750)
|
|
|
- .loadingUrl(loadingUrl)
|
|
|
- .offlineGameInfo(OfflineH5GameInfo(resourceUrl, DecorType.JACKPOT_SLOT_GAME.value, needDownload))
|
|
|
- .build()
|
|
|
- ?.showUrl(activity.supportFragmentManager, "")
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- private fun showGreedyBoxEntry(loadingUrl: String?) {
|
|
|
- gameViewModel?.checkGameValid(GlobalConfigType.GLOBAL_GREEDYBOX_VERSION_INFO)
|
|
|
- ?.observe(viewLifecycleOwner) {
|
|
|
- if(it.first.not()) return@observe
|
|
|
- val resourceUrl = it.second?.resourceUrl
|
|
|
- val needDownload = it.second?.needDownload ?: true
|
|
|
- val activity = activity ?: return@observe
|
|
|
- WebViewDialogFragmentBuilder()
|
|
|
- .height(761 * DisplayUtil.getScreenWidth() / 750)
|
|
|
- .loadingUrl(loadingUrl)
|
|
|
- .offlineGameInfo(OfflineH5GameInfo(resourceUrl, DecorType.GREEDY_BOX_GAME.value, needDownload))
|
|
|
- .build()
|
|
|
- ?.showUrl(activity.supportFragmentManager, "")
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- private fun showDragonFightEntry(loadingUrl: String?) {
|
|
|
- gameViewModel?.checkGameValid(GlobalConfigType.GLOBAL_DRAGON_TIGER_FIGHT_VERSION_INFO)
|
|
|
- ?.observe(viewLifecycleOwner) {
|
|
|
- if(it.first.not()) return@observe
|
|
|
- val resourceUrl = it.second?.resourceUrl
|
|
|
- val needDownload = it.second?.needDownload ?: true
|
|
|
- val activity = activity ?: return@observe
|
|
|
- WebViewDialogFragmentBuilder()
|
|
|
- .height(1070 * DisplayUtil.getScreenWidth() / 750)
|
|
|
- .loadingUrl(loadingUrl)
|
|
|
- .offlineGameInfo(OfflineH5GameInfo(resourceUrl, DecorType.DRAGON_TIGER_FIGHT_GAME.value, needDownload))
|
|
|
- .build()
|
|
|
- ?.showUrl(activity.supportFragmentManager, "")
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- private fun showTeenPattiEntry(loadingUrl: String?) {
|
|
|
- gameViewModel?.checkGameValid(GlobalConfigType.GLOBAL_TEENPATTI_VERSION_INFO)
|
|
|
- ?.observe(viewLifecycleOwner) {
|
|
|
- if(it.first.not()) return@observe
|
|
|
- val resourceUrl = it.second?.resourceUrl
|
|
|
- val needDownload = it.second?.needDownload ?: true
|
|
|
- val activity = activity ?: return@observe
|
|
|
- WebViewDialogFragmentBuilder()
|
|
|
- .height(1170 * DisplayUtil.getScreenWidth() / 750)
|
|
|
- .loadingUrl(loadingUrl)
|
|
|
- .offlineGameInfo(OfflineH5GameInfo(resourceUrl, DecorType.TEEN_PATTI_GAME.value, needDownload))
|
|
|
- .build()
|
|
|
- ?.showUrl(activity.supportFragmentManager, "")
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- private fun showTexasCowboyEntry(loadingUrl: String?) {
|
|
|
- gameViewModel?.checkGameValid(GlobalConfigType.GLOBAL_TEXAS_COWBOY_VERSION_INFO)
|
|
|
- ?.observe(viewLifecycleOwner) {
|
|
|
- if(it.first.not()) return@observe
|
|
|
- val resourceUrl = it.second?.resourceUrl
|
|
|
- val needDownload = it.second?.needDownload ?: true
|
|
|
- val activity = activity ?: return@observe
|
|
|
- WebViewDialogFragmentBuilder()
|
|
|
- .height(1230 * DisplayUtil.getScreenWidth() / 750)
|
|
|
- .loadingUrl(loadingUrl)
|
|
|
- .offlineGameInfo(OfflineH5GameInfo(resourceUrl, DecorType.TEXAS_GAME.value, needDownload))
|
|
|
- .build()
|
|
|
- ?.showUrl(activity.supportFragmentManager, "")
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- private fun showRussianRouletteEntry(loadingUrl: String?) {
|
|
|
- gameViewModel?.checkGameValid(GlobalConfigType.GLOBAL_RUSSIAN_TURNTABLE_VERSION_INFO)
|
|
|
- ?.observe(viewLifecycleOwner) {
|
|
|
- if(it.first.not()) return@observe
|
|
|
- val resourceUrl = it.second?.resourceUrl
|
|
|
- val needDownload = it.second?.needDownload ?: true
|
|
|
- val activity = activity ?: return@observe
|
|
|
- WebViewDialogFragmentBuilder()
|
|
|
- .height(1123 * DisplayUtil.getScreenWidth() / 750)
|
|
|
- .loadingUrl(loadingUrl)
|
|
|
- .offlineGameInfo(OfflineH5GameInfo(resourceUrl, DecorType.RUSSIAN_TURNTABLE_GAME.value, needDownload))
|
|
|
- .build()
|
|
|
- ?.showUrl(activity.supportFragmentManager, "")
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- private fun showGreedyProEntry() {
|
|
|
- val activity = activity ?: return
|
|
|
- goLocalLinkPage(activity, urlConfigService.getH5Url(H5Page.GREEDY_PRO))
|
|
|
- }
|
|
|
-
|
|
|
- private fun showLuckyProEntry() {
|
|
|
- val activity = activity ?: return
|
|
|
- goLocalLinkPage(activity, urlConfigService.getH5Url(H5Page.LUCKY_PRO))
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * svip全服升级通知点击,在房则进入房间,不在房间则进入个人主页
|
|
|
- */
|
|
|
- private fun onSvipLevelUpClick(roomId: Long, from: String, uid: Long) {
|
|
|
- if (roomId > 0) {
|
|
|
- enterRoomClick(roomId, from)
|
|
|
- } else if (uid > 0) {
|
|
|
- goUserProfile(uid)
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
override fun onHeadlineRightBtnClick(type: RoomNotifyType?, params: Bundle?) {
|
|
|
when (type) {
|
|
|
RoomNotifyType.SendRedPacket, RoomNotifyType.SendGift -> {
|
|
|
@@ -663,43 +360,43 @@ class HeadlineFragment : BaseFragment(R.layout.fragment_healine), IHeadlineOpLis
|
|
|
}
|
|
|
|
|
|
RoomNotifyType.LuckyFruit -> {
|
|
|
- checkAndShowLuckyFruitEntry()
|
|
|
+ GameModule.navigateToGame(GameEntranceType.LUCKY_FRUIT)
|
|
|
}
|
|
|
|
|
|
RoomNotifyType.Slot -> {
|
|
|
- checkAndShowSlotEntry()
|
|
|
+ GameModule.navigateToGame(GameEntranceType.JACKPOT)
|
|
|
}
|
|
|
|
|
|
RoomNotifyType.SlotPro -> {
|
|
|
- checkAndShowSlotProEntry()
|
|
|
+ GameModule.navigateToGame(GameEntranceType.JACKPOT_SLOT)
|
|
|
}
|
|
|
|
|
|
RoomNotifyType.GREEDY_BOX_NOTIFY -> {
|
|
|
- checkAndShowGreedyBoxEntry()
|
|
|
+ GameModule.navigateToGame(GameEntranceType.GREEDY_BOX)
|
|
|
}
|
|
|
|
|
|
RoomNotifyType.TEEN_PATTI_REWARD_NOTIFY -> {
|
|
|
- checkAndShowTeenPattiEntry()
|
|
|
+ GameModule.navigateToGame(GameEntranceType.TEEN_PATTI)
|
|
|
}
|
|
|
|
|
|
RoomNotifyType.GREEDY_PRO_NOTIFY -> {
|
|
|
- checkAndShowGreedyProEntry()
|
|
|
+ GameModule.navigateToGame(GameEntranceType.GREEDY_PRO)
|
|
|
}
|
|
|
|
|
|
RoomNotifyType.NEW_GREEDY_PRO_REWARD_NOTIFY -> {
|
|
|
- checkAndShowLuckyProEntry()
|
|
|
+ GameModule.navigateToGame(GameEntranceType.LUCKY_PRO)
|
|
|
}
|
|
|
|
|
|
RoomNotifyType.DRAGON_TIGER_FIGHT_REWARD_NOTIFY -> {
|
|
|
- checkAndShowDragonTigerEntry()
|
|
|
+ GameModule.navigateToGame(GameEntranceType.DRAGON_TIGER_FIGHT)
|
|
|
}
|
|
|
|
|
|
RoomNotifyType.RUSSIA_ROULETTE_REWARD_NOTIFY -> {
|
|
|
- checkAndShowRussianRouletteEntry()
|
|
|
+ GameModule.navigateToGame(GameEntranceType.RUSSIAN_ROULETTE)
|
|
|
}
|
|
|
|
|
|
RoomNotifyType.TEXAS_COWBOY_REWARD_NOTIFY -> {
|
|
|
- checkAndShowTexasCowboyEntry()
|
|
|
+ GameModule.navigateToGame(GameEntranceType.TEXAS_COWBOY)
|
|
|
}
|
|
|
|
|
|
RoomNotifyType.ADMIN_LOTTERY_ACTIVITY_REWARD_NOTIFY -> {
|
|
|
@@ -710,6 +407,10 @@ class HeadlineFragment : BaseFragment(R.layout.fragment_healine), IHeadlineOpLis
|
|
|
.start()
|
|
|
}
|
|
|
|
|
|
+ RoomNotifyType.GREEDY_PERSONAL_REWARD_NOTIFY -> {
|
|
|
+ GameModule.navigateToGame(GameEntranceType.GREEDY_PERSONAL)
|
|
|
+ }
|
|
|
+
|
|
|
else -> {
|
|
|
//ntd.
|
|
|
}
|