@polyvharmony/live-scenes-sdk 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BuildProfile.d.ets +2 -2
- package/BuildProfile.js +1 -1
- package/CHANGELOG.md +12 -0
- package/ResourceTable.txt +72 -72
- package/oh-package.json5 +1 -1
- package/package.json +1 -1
- package/src/main/ets/modules/chatroom/PLVChatroomManager.d.ets +32 -17
- package/src/main/ets/modules/chatroom/PLVChatroomManager.js +229 -198
- package/src/main/ets/modules/chatroom/handler/PLVChatroomBaseHandler.d.ets +1 -1
- package/src/main/ets/modules/chatroom/playback/PLVChatPlaybackManager.js +1 -4
- package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackDataVO.d.ets +1 -0
- package/src/main/ets/modules/chatroom/playback/model/PLVChatPlaybackDataVO.js +3 -0
- package/src/main/ets/modules/i18n/PLVI18NDataMapper.d.ets +5 -5
- package/src/main/ets/modules/i18n/PLVI18NDataMapper.js +20 -20
- package/src/main/ets/modules/i18n/PLVLanguageManager.js +8 -8
- package/src/main/ets/modules/interact/PLVInteractManager.d.ets +6 -6
- package/src/main/ets/modules/interact/PLVInteractManager.js +12 -12
- package/src/main/ets/modules/interact/PLVInteractWeb.d.ets +13 -13
- package/src/main/ets/modules/interact/PLVInteractWeb.js +148 -148
- package/src/main/ets/modules/interact/invitePoster/PLVInteractInvitePoster.d.ets +1 -1
- package/src/main/ets/modules/interact/invitePoster/PLVInteractInvitePoster.js +34 -34
- package/src/main/ets/modules/interact/model/PLVFunctionSwitchBean.d.ets +1 -1
- package/src/main/ets/modules/interact/model/PLVFunctionSwitchBean.js +6 -6
- package/src/main/ets/modules/interact/pushcard/PLVPushCardManager.d.ets +2 -2
- package/src/main/ets/modules/interact/pushcard/PLVPushCardManager.js +21 -21
- package/src/main/ets/modules/interact/pushcard/model/PLVShowPushCardEvent.d.ets +1 -1
- package/src/main/ets/modules/interact/pushcard/model/PLVShowPushCardEvent.js +2 -2
- package/src/main/ets/modules/interact/pushcard/repo/PLVCardLookTimeLocalRepository.d.ets +3 -3
- package/src/main/ets/modules/interact/pushcard/repo/PLVCardLookTimeLocalRepository.js +6 -6
- package/src/main/ets/modules/interact/redpack/model/PLVHistoryRedPaperEvent.js +7 -7
- package/src/main/ets/modules/interact/redpack/model/PLVRedPaperEvent.js +7 -7
- package/src/main/ets/modules/linkmic/PLVLinkMicManager.d.ets +14 -14
- package/src/main/ets/modules/linkmic/PLVLinkMicManager.js +37 -37
- package/src/main/ets/modules/linkmic/di/PLVLinkMicModule.js +11 -11
- package/src/main/ets/modules/linkmic/mediator/PLVLinkMicMediator.d.ets +4 -4
- package/src/main/ets/modules/linkmic/mediator/PLVLinkMicMediator.js +14 -14
- package/src/main/ets/modules/linkmic/mediator/PLVLinkMicRTCEventCallback.d.ets +8 -8
- package/src/main/ets/modules/linkmic/mediator/PLVLinkMicRTCEventCallback.js +39 -39
- package/src/main/ets/modules/linkmic/model/PLVLinkMicRepo.d.ets +10 -10
- package/src/main/ets/modules/linkmic/model/PLVLinkMicRepo.js +69 -69
- package/src/main/ets/modules/linkmic/model/datasource/PLVLinkMicNetworkDataSource.d.ets +4 -4
- package/src/main/ets/modules/linkmic/model/datasource/PLVLinkMicNetworkDataSource.js +70 -70
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicBitRate.d.ets +1 -1
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicBitRate.js +3 -3
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicBitRateEncodeParam.d.ets +1 -1
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicBitRateEncodeParam.js +12 -12
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicErrorEvent.d.ets +1 -1
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicErrorEvent.js +3 -3
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicInteractEvent.d.ets +1 -1
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicInteractEvent.js +3 -3
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicMode.js +3 -3
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicPushResolutionRatio.d.ets +1 -1
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicPushResolutionRatio.js +4 -4
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicRTCType.js +3 -3
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicState.js +6 -6
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicVideoRenderParam.d.ets +1 -1
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicVideoRenderParam.js +3 -3
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicViewer.d.ets +1 -1
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicViewer.js +5 -5
- package/src/main/ets/modules/linkmic/viewmodel/PLVLinkMicViewModel.d.ets +15 -15
- package/src/main/ets/modules/linkmic/viewmodel/PLVLinkMicViewModel.js +40 -40
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicEncodeParamUseCase.d.ets +6 -6
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicEncodeParamUseCase.js +15 -15
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleQueueOrderUseCase.d.ets +4 -4
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleQueueOrderUseCase.js +25 -25
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleRTCUseCase.d.ets +7 -7
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleRTCUseCase.js +19 -19
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleStateUseCase.d.ets +10 -10
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleStateUseCase.js +26 -26
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicUpdateChannelViewerUseCase.d.ets +6 -6
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicUpdateChannelViewerUseCase.js +135 -135
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicViewLogUseCase.d.ets +1 -1
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicViewLogUseCase.js +27 -27
- package/src/main/ets/modules/linkmic/viewmodel/usecase/PLVLinkMicUseCases.d.ets +1 -1
- package/src/main/ets/modules/linkmic/viewmodel/usecase/PLVLinkMicUseCases.js +7 -7
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestEncodeParamUseCase.d.ets +6 -6
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestEncodeParamUseCase.js +83 -83
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleRTCUseCase.d.ets +7 -7
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleRTCUseCase.js +42 -42
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleStateUseCase.d.ets +10 -10
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleStateUseCase.js +188 -188
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherEncodeParamUseCase.d.ets +6 -6
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherEncodeParamUseCase.js +83 -83
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleRTCUseCase.d.ets +7 -7
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleRTCUseCase.js +37 -37
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleStateUseCase.d.ets +10 -10
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleStateUseCase.js +128 -128
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerEncodeParamUseCase.d.ets +6 -6
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerEncodeParamUseCase.js +13 -13
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleRTCUseCase.d.ets +7 -7
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleRTCUseCase.js +53 -53
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleStateUseCase.d.ets +10 -10
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleStateUseCase.js +163 -163
- package/src/main/ets/modules/log/elog/PLVELogSender.d.ets +4 -4
- package/src/main/ets/modules/log/elog/PLVELogSender.js +17 -17
- package/src/main/ets/modules/log/elog/model/PLVELogDataBean.d.ets +1 -1
- package/src/main/ets/modules/log/elog/model/PLVELogDataBean.js +12 -12
- package/src/main/ets/modules/log/elog/model/PLVELogModuleConstants.js +8 -8
- package/src/main/ets/modules/login/PLVSceneLoginManager.d.ets +3 -3
- package/src/main/ets/modules/login/PLVSceneLoginManager.js +102 -102
- package/src/main/ets/modules/login/model/PLVChatDomainVO.d.ets +2 -2
- package/src/main/ets/modules/login/model/PLVChatDomainVO.js +4 -4
- package/src/main/ets/modules/login/model/PLVLiveChannelType.d.ets +1 -1
- package/src/main/ets/modules/login/model/PLVLiveChannelType.js +14 -14
- package/src/main/ets/modules/login/model/PLVLiveDetailVO.d.ets +2 -1
- package/src/main/ets/modules/login/model/PLVLiveDetailVO.js +14 -14
- package/src/main/ets/modules/login/model/PLVLiveStatus.d.ets +1 -1
- package/src/main/ets/modules/login/model/PLVLiveStatus.js +14 -14
- package/src/main/ets/modules/login/model/PLVLiveStatusVO.d.ets +2 -2
- package/src/main/ets/modules/login/model/PLVLiveStatusVO.js +10 -10
- package/src/main/ets/modules/login/model/PLVLoginLiveResult.d.ets +1 -1
- package/src/main/ets/modules/login/model/PLVLoginLiveResult.js +4 -4
- package/src/main/ets/modules/login/model/PLVLoginPlaybackResult.d.ets +1 -1
- package/src/main/ets/modules/login/model/PLVLoginPlaybackResult.js +5 -5
- package/src/main/ets/modules/login/model/PLVLoginType.d.ets +2 -2
- package/src/main/ets/modules/login/model/PLVLoginType.js +16 -16
- package/src/main/ets/modules/member/PLVMemberManager.d.ets +3 -3
- package/src/main/ets/modules/member/PLVMemberManager.js +10 -10
- package/src/main/ets/modules/member/di/PLVMemberModule.js +8 -8
- package/src/main/ets/modules/member/mediator/PLVMemberMediator.d.ets +3 -3
- package/src/main/ets/modules/member/mediator/PLVMemberMediator.js +9 -9
- package/src/main/ets/modules/member/model/PLVMemberRepo.d.ets +2 -2
- package/src/main/ets/modules/member/model/PLVMemberRepo.js +7 -7
- package/src/main/ets/modules/member/model/datasource/PLVMemberNetworkDataSource.d.ets +2 -2
- package/src/main/ets/modules/member/model/datasource/PLVMemberNetworkDataSource.js +11 -11
- package/src/main/ets/modules/member/model/vo/PLVMemberChannelViewer.d.ets +1 -1
- package/src/main/ets/modules/member/model/vo/PLVMemberChannelViewer.js +3 -3
- package/src/main/ets/modules/member/model/vo/PLVMemberErrorEvent.d.ets +1 -1
- package/src/main/ets/modules/member/model/vo/PLVMemberErrorEvent.js +3 -3
- package/src/main/ets/modules/member/viewmodel/PLVMemberViewModel.d.ets +3 -3
- package/src/main/ets/modules/member/viewmodel/PLVMemberViewModel.js +15 -15
- package/src/main/ets/modules/member/viewmodel/usecase/MemberHandleStateUseCase.d.ets +6 -6
- package/src/main/ets/modules/member/viewmodel/usecase/MemberHandleStateUseCase.js +16 -16
- package/src/main/ets/modules/member/viewmodel/usecase/MemberUpdateViewerUseCase.d.ets +9 -9
- package/src/main/ets/modules/member/viewmodel/usecase/MemberUpdateViewerUseCase.js +21 -21
- package/src/main/ets/modules/member/viewmodel/usecase/PLVMemberUseCases.d.ets +1 -1
- package/src/main/ets/modules/member/viewmodel/usecase/PLVMemberUseCases.js +3 -3
- package/src/main/ets/modules/member/viewmodel/usecase/roles/guest/MemberGuestHandleStateUseCase.d.ets +6 -6
- package/src/main/ets/modules/member/viewmodel/usecase/roles/guest/MemberGuestHandleStateUseCase.js +82 -82
- package/src/main/ets/modules/member/viewmodel/usecase/roles/guest/MemberGuestUpdateViewerUseCase.d.ets +9 -9
- package/src/main/ets/modules/member/viewmodel/usecase/roles/guest/MemberGuestUpdateViewerUseCase.js +219 -219
- package/src/main/ets/modules/member/viewmodel/usecase/roles/teacher/MemberTeacherHandleStateUseCase.d.ets +6 -6
- package/src/main/ets/modules/member/viewmodel/usecase/roles/teacher/MemberTeacherHandleStateUseCase.js +153 -153
- package/src/main/ets/modules/member/viewmodel/usecase/roles/teacher/MemberTeacherUpdateViewerUseCase.d.ets +9 -9
- package/src/main/ets/modules/member/viewmodel/usecase/roles/teacher/MemberTeacherUpdateViewerUseCase.js +219 -219
- package/src/main/ets/modules/net/PLVApiChatPlvNetApi.d.ets +10 -9
- package/src/main/ets/modules/net/PLVApiChatPlvNetApi.js +65 -53
- package/src/main/ets/modules/net/PLVApiPlvNetApi.d.ets +30 -30
- package/src/main/ets/modules/net/PLVApiPlvNetApi.js +164 -164
- package/src/main/ets/modules/net/PLVELogPlvNetApi.d.ets +2 -2
- package/src/main/ets/modules/net/PLVELogPlvNetApi.js +5 -5
- package/src/main/ets/modules/net/PLVLiveImagesVideoNetApi.d.ets +3 -3
- package/src/main/ets/modules/net/PLVLiveImagesVideoNetApi.js +19 -19
- package/src/main/ets/modules/net/PLVNGBPushApi.d.ets +2 -2
- package/src/main/ets/modules/net/PLVNGBPushApi.js +4 -4
- package/src/main/ets/modules/net/PLVRtasVideoNetApi.d.ets +2 -2
- package/src/main/ets/modules/net/PLVRtasVideoNetApi.js +4 -4
- package/src/main/ets/modules/net/vo/PLVNetworkQuality.js +8 -8
- package/src/main/ets/modules/player/PLVPlayerManager.d.ets +3 -3
- package/src/main/ets/modules/player/PLVPlayerManager.js +8 -8
- package/src/main/ets/modules/player/PLVPlayerMediator.d.ets +1 -1
- package/src/main/ets/modules/player/PLVPlayerMediator.js +8 -8
- package/src/main/ets/modules/player/playback/PLVPlaybackListType.js +4 -4
- package/src/main/ets/modules/player/playback/PLVPreviousListVO.js +8 -8
- package/src/main/ets/modules/player/playback/PLVPreviousManager.d.ets +5 -5
- package/src/main/ets/modules/player/playback/PLVPreviousManager.js +69 -69
- package/src/main/ets/modules/ppt/PLVPPTWeb.js +28 -28
- package/src/main/ets/modules/ppt/PLVPPTWebController.d.ets +6 -6
- package/src/main/ets/modules/ppt/PLVPPTWebController.js +94 -94
- package/src/main/ets/modules/product/PLVProductManager.d.ets +5 -5
- package/src/main/ets/modules/product/PLVProductManager.js +61 -61
- package/src/main/ets/modules/product/components/PLVProductControlWeb.d.ets +1 -1
- package/src/main/ets/modules/product/components/PLVProductControlWeb.js +34 -34
- package/src/main/ets/modules/product/components/PLVProductWeb.d.ets +1 -1
- package/src/main/ets/modules/product/components/PLVProductWeb.js +50 -50
- package/src/main/ets/modules/product/model/PLVProductContentBean.d.ets +1 -1
- package/src/main/ets/modules/product/model/PLVProductContentBean.js +17 -17
- package/src/main/ets/modules/product/model/PLVProductControlEvent.js +7 -7
- package/src/main/ets/modules/product/model/PLVProductDataBean.d.ets +1 -1
- package/src/main/ets/modules/product/model/PLVProductDataBean.js +16 -16
- package/src/main/ets/modules/redpack/PLVRedpackManager.d.ets +9 -9
- package/src/main/ets/modules/redpack/PLVRedpackManager.js +70 -70
- package/src/main/ets/modules/redpack/database/PLVRedpackCacheVO.d.ets +1 -1
- package/src/main/ets/modules/redpack/database/PLVRedpackCacheVO.js +14 -14
- package/src/main/ets/modules/redpack/database/PLVRedpackLocalDataSource.d.ets +4 -4
- package/src/main/ets/modules/redpack/database/PLVRedpackLocalDataSource.js +28 -28
- package/src/main/ets/modules/redpack/database/PLVRedpackOpenHelper.d.ets +4 -4
- package/src/main/ets/modules/redpack/database/PLVRedpackOpenHelper.js +6 -6
- package/src/main/ets/modules/reward/PLVRewardManager.d.ets +2 -2
- package/src/main/ets/modules/reward/PLVRewardManager.js +22 -22
- package/src/main/ets/modules/reward/model/PLVRewardPointVO.d.ets +1 -1
- package/src/main/ets/modules/reward/model/PLVRewardPointVO.js +3 -3
- package/src/main/ets/modules/reward/model/PLVRewardSettingVO.js +24 -24
- package/src/main/ets/modules/socket/PLVSocketManager.d.ets +8 -8
- package/src/main/ets/modules/socket/PLVSocketManager.js +101 -101
- package/src/main/ets/modules/socket/PLVSocketMediator.d.ets +7 -7
- package/src/main/ets/modules/socket/PLVSocketMediator.js +14 -14
- package/src/main/ets/modules/socket/model/PLVSocketUserBean.d.ets +5 -5
- package/src/main/ets/modules/socket/model/PLVSocketUserBean.js +27 -27
- package/src/main/ets/modules/socket/model/PLVUserType.js +15 -15
- package/src/main/ets/modules/socket/model/interact/PLVCallAppEvent.js +6 -6
- package/src/main/ets/modules/socket/model/redpack/RedPaperReceiveType.d.ets +4 -4
- package/src/main/ets/modules/socket/model/redpack/RedPaperReceiveType.js +20 -20
- package/src/main/ets/modules/streamer/PLVStreamerManager.d.ets +8 -8
- package/src/main/ets/modules/streamer/PLVStreamerManager.js +24 -24
- package/src/main/ets/modules/streamer/di/PLVStreamerModule.js +8 -8
- package/src/main/ets/modules/streamer/mediator/PLVStreamerMediator.d.ets +2 -2
- package/src/main/ets/modules/streamer/mediator/PLVStreamerMediator.js +5 -5
- package/src/main/ets/modules/streamer/model/PLVStreamerRepo.d.ets +8 -8
- package/src/main/ets/modules/streamer/model/PLVStreamerRepo.js +41 -41
- package/src/main/ets/modules/streamer/model/datasource/PLVStreamerLocalDataSource.d.ets +2 -2
- package/src/main/ets/modules/streamer/model/datasource/PLVStreamerLocalDataSource.js +10 -10
- package/src/main/ets/modules/streamer/model/datasource/PLVStreamerNetworkDataSource.d.ets +7 -7
- package/src/main/ets/modules/streamer/model/datasource/PLVStreamerNetworkDataSource.js +48 -48
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerErrorEvent.d.ets +1 -1
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerErrorEvent.js +3 -3
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerMixActionVO.js +15 -15
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerMixLayoutType.js +4 -4
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerState.js +4 -4
- package/src/main/ets/modules/streamer/viewmodel/PLVStreamerViewModel.d.ets +8 -8
- package/src/main/ets/modules/streamer/viewmodel/PLVStreamerViewModel.js +25 -25
- package/src/main/ets/modules/streamer/viewmodel/usecase/PLVStreamerUseCases.d.ets +1 -1
- package/src/main/ets/modules/streamer/viewmodel/usecase/PLVStreamerUseCases.js +3 -3
- package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerHandleStateUseCase.d.ets +2 -2
- package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerHandleStateUseCase.js +8 -8
- package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerMixStreamUseCase.d.ets +2 -2
- package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerMixStreamUseCase.js +7 -7
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestHandleStateUseCase.d.ets +2 -2
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestHandleStateUseCase.js +42 -42
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestMixStreamUseCase.d.ets +2 -2
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestMixStreamUseCase.js +3 -3
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherHandleStateUseCase.d.ets +2 -2
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherHandleStateUseCase.js +42 -42
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherMixStreamUseCase.d.ets +2 -2
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherMixStreamUseCase.js +51 -51
- package/src/main/ets/modules/web/PLVSocketWebController.d.ets +2 -2
- package/src/main/ets/modules/web/PLVSocketWebController.js +66 -66
- package/src/main/ets/modules/web/PLVWebControllerManager.d.ets +2 -2
- package/src/main/ets/modules/web/PLVWebControllerManager.js +6 -6
- package/src/main/ets/modules/web/PLVWebParams.d.ets +1 -1
- package/src/main/ets/modules/web/PLVWebParams.js +22 -22
- package/src/main/ets/modules/web/qa/PLVQAWeb.d.ets +1 -1
- package/src/main/ets/modules/web/qa/PLVQAWeb.js +34 -34
- package/src/main/ets/modules/web/tuwen/PLVTuwenWeb.d.ets +1 -1
- package/src/main/ets/modules/web/tuwen/PLVTuwenWeb.js +37 -37
- package/src/main/module.json +1 -1
|
@@ -7,7 +7,7 @@ import { PLVELogModuleName, PLVELogSocketBatchEvent } from '../log/elog/model/PL
|
|
|
7
7
|
const TAG = '[PLVSocketManager]';
|
|
8
8
|
const TOKEN_EXPIRED_RETRY_MAX_COUNT = 3;
|
|
9
9
|
export class PLVSocketManager extends PLVSocketIO {
|
|
10
|
-
constructor(
|
|
10
|
+
constructor(b95) {
|
|
11
11
|
super();
|
|
12
12
|
this.allowChildRoom = false;
|
|
13
13
|
this.tokenExpiredRetryCount = 0;
|
|
@@ -15,7 +15,7 @@ export class PLVSocketManager extends PLVSocketIO {
|
|
|
15
15
|
this.eventNotify_socketStatus = new PLVEventNotify(this);
|
|
16
16
|
this.eventNotify_socketData = new PLVEventNotify(this, false);
|
|
17
17
|
this.getTokenDisposable = new PLVDisposable();
|
|
18
|
-
this.channelData =
|
|
18
|
+
this.channelData = b95;
|
|
19
19
|
}
|
|
20
20
|
async login() {
|
|
21
21
|
this.patchELog(PLVELogSocketBatchEvent.LOGGING, `allowChildRoom: ${this.allowChildRoom}`);
|
|
@@ -30,19 +30,19 @@ export class PLVSocketManager extends PLVSocketIO {
|
|
|
30
30
|
this.onSocketIOStatus();
|
|
31
31
|
await this.getChatTokenConnect();
|
|
32
32
|
}
|
|
33
|
-
onStatus(
|
|
34
|
-
this.eventNotify_socketStatus.on('socket_status',
|
|
33
|
+
onStatus(z94, a95) {
|
|
34
|
+
this.eventNotify_socketStatus.on('socket_status', z94, a95);
|
|
35
35
|
}
|
|
36
|
-
offStatus(
|
|
37
|
-
this.eventNotify_socketStatus.off('socket_status',
|
|
36
|
+
offStatus(x94, y94) {
|
|
37
|
+
this.eventNotify_socketStatus.off('socket_status', x94, y94);
|
|
38
38
|
}
|
|
39
|
-
addOnEvent(
|
|
40
|
-
|
|
41
|
-
if (!SOCKET_ON_EVENT_ALL.includes(
|
|
42
|
-
SOCKET_ON_EVENT_ALL.push(
|
|
43
|
-
this.on(
|
|
39
|
+
addOnEvent(v94) {
|
|
40
|
+
v94.forEach((w94) => {
|
|
41
|
+
if (!SOCKET_ON_EVENT_ALL.includes(w94)) {
|
|
42
|
+
SOCKET_ON_EVENT_ALL.push(w94);
|
|
43
|
+
this.on(w94, () => {
|
|
44
44
|
});
|
|
45
|
-
PLVLogger.info(TAG, `addOnEvent: ${
|
|
45
|
+
PLVLogger.info(TAG, `addOnEvent: ${w94}`);
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
this.onSocketIOData();
|
|
@@ -50,52 +50,52 @@ export class PLVSocketManager extends PLVSocketIO {
|
|
|
50
50
|
connected() {
|
|
51
51
|
return super.connected() && (this.socketStatus == PLVSocketStatus.LOGIN_SUCCESS || this.socketStatus == PLVSocketStatus.RECONNECT_SUCCESS);
|
|
52
52
|
}
|
|
53
|
-
disconnect(
|
|
54
|
-
super.disconnect(
|
|
53
|
+
disconnect(u94) {
|
|
54
|
+
super.disconnect(u94);
|
|
55
55
|
this.getTokenDisposable.dispose();
|
|
56
56
|
}
|
|
57
|
-
destroy(
|
|
58
|
-
super.destroy(
|
|
57
|
+
destroy(t94) {
|
|
58
|
+
super.destroy(t94);
|
|
59
59
|
this.eventNotify_socketData.clear();
|
|
60
60
|
this.eventNotify_socketStatus.clear();
|
|
61
61
|
this.getTokenDisposable.dispose();
|
|
62
62
|
}
|
|
63
|
-
loginRoom(
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
63
|
+
loginRoom(h94) {
|
|
64
|
+
const i94 = new PLVLocalLoginEvent();
|
|
65
|
+
i94.values = [this.channelData.viewerName || '', this.channelData.viewerAvatar || '', this.channelData.viewerId || ''];
|
|
66
|
+
i94.roomId = this.loginRoomId;
|
|
67
|
+
i94.channelId = this.channelData.loginChannelId;
|
|
68
68
|
if (this.channelData.linkmicId !== this.channelData.viewerId) {
|
|
69
|
-
|
|
69
|
+
i94.micId = this.channelData.linkmicId;
|
|
70
70
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
const
|
|
76
|
-
PLVLogger.info(TAG, 'loginRoom data: ' +
|
|
77
|
-
this.emitSkipCheck(PLVSocketOnEvent.MESSAGE,
|
|
78
|
-
PLVLogger.info(TAG, 'loginRoom callback: ' +
|
|
79
|
-
if (PLVUtils.validCallback(
|
|
80
|
-
const
|
|
81
|
-
const
|
|
82
|
-
const
|
|
83
|
-
const
|
|
84
|
-
const
|
|
85
|
-
const
|
|
86
|
-
const
|
|
87
|
-
if (
|
|
71
|
+
i94.type = this.channelData.viewerType;
|
|
72
|
+
i94.actor = this.channelData.viewerActor;
|
|
73
|
+
i94.param4 = this.channelData.param4;
|
|
74
|
+
i94.param5 = this.channelData.param5;
|
|
75
|
+
const j94 = PLVJSONUtils.safeStringify(i94);
|
|
76
|
+
PLVLogger.info(TAG, 'loginRoom data: ' + j94);
|
|
77
|
+
this.emitSkipCheck(PLVSocketOnEvent.MESSAGE, j94, (k94) => {
|
|
78
|
+
PLVLogger.info(TAG, 'loginRoom callback: ' + k94);
|
|
79
|
+
if (PLVUtils.validCallback(k94)) {
|
|
80
|
+
const l94 = PLVJSONUtils.safeParse(k94);
|
|
81
|
+
const m94 = PLVJSONUtils.safeStringify(l94?.message?.[0]);
|
|
82
|
+
const n94 = parseInt(m94.substring(0, 1));
|
|
83
|
+
const o94 = parseInt(m94.substring(1, 2));
|
|
84
|
+
const p94 = parseInt(m94.substring(2, 3));
|
|
85
|
+
const q94 = parseInt(m94.substring(3, 4));
|
|
86
|
+
const r94 = 2;
|
|
87
|
+
if (n94 == r94) {
|
|
88
88
|
this.tokenExpiredRetryCount = 0;
|
|
89
|
-
this.socketStatus =
|
|
89
|
+
this.socketStatus = h94 == PLVSocketIOStatus.OPEN ? PLVSocketStatus.LOGIN_SUCCESS : PLVSocketStatus.RECONNECT_SUCCESS;
|
|
90
90
|
this.eventNotify_socketStatus.emit('socket_status', new PLVSocketStatusSup(this.socketStatus));
|
|
91
91
|
this.patchELog(this.socketStatus == PLVSocketStatus.LOGIN_SUCCESS ? PLVELogSocketBatchEvent.LOGIN_SUCCESS : PLVELogSocketBatchEvent.RECONNECT_SUCCESS);
|
|
92
92
|
}
|
|
93
93
|
else {
|
|
94
|
-
const
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
`param is illegal: ${
|
|
98
|
-
this.callError(new Error(
|
|
94
|
+
const s94 = o94 == 0 ? `the room is illegal: ${k94}` :
|
|
95
|
+
p94 == 0 ? `avatar/nickname is illegal: ${k94}` :
|
|
96
|
+
q94 == 0 ? `has been kicked out of the room: ${k94}` :
|
|
97
|
+
`param is illegal: ${k94}`;
|
|
98
|
+
this.callError(new Error(s94));
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
else {
|
|
@@ -104,11 +104,11 @@ export class PLVSocketManager extends PLVSocketIO {
|
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
106
|
onSocketIOStatus() {
|
|
107
|
-
this.onSocketIOStatusListener = (
|
|
108
|
-
switch (
|
|
107
|
+
this.onSocketIOStatusListener = (g94) => {
|
|
108
|
+
switch (g94) {
|
|
109
109
|
case PLVSocketIOStatus.OPEN:
|
|
110
110
|
case PLVSocketIOStatus.RECONNECT_SUCCESS:
|
|
111
|
-
this.loginRoom(
|
|
111
|
+
this.loginRoom(g94);
|
|
112
112
|
break;
|
|
113
113
|
case PLVSocketIOStatus.RECONNECT:
|
|
114
114
|
this.socketStatus = PLVSocketStatus.RECONNECTING;
|
|
@@ -120,26 +120,26 @@ export class PLVSocketManager extends PLVSocketIO {
|
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
|
-
attachListeners(
|
|
124
|
-
SOCKET_ON_EVENT_ALL.forEach((
|
|
125
|
-
this.on(
|
|
123
|
+
attachListeners(e94) {
|
|
124
|
+
SOCKET_ON_EVENT_ALL.forEach((f94) => {
|
|
125
|
+
this.on(f94, () => {
|
|
126
126
|
});
|
|
127
127
|
});
|
|
128
|
-
|
|
128
|
+
e94();
|
|
129
129
|
}
|
|
130
130
|
onSocketIOData() {
|
|
131
|
-
this.on('any', (
|
|
132
|
-
const
|
|
133
|
-
if (
|
|
134
|
-
const
|
|
135
|
-
this.eventNotify_socketData.emit(
|
|
136
|
-
this.processSocketData(
|
|
131
|
+
this.on('any', (b94) => {
|
|
132
|
+
const c94 = PLVJSONUtils.safeParse(b94);
|
|
133
|
+
if (c94?.eventName) {
|
|
134
|
+
const d94 = c94?.message?.EVENT || '';
|
|
135
|
+
this.eventNotify_socketData.emit(c94.eventName, PLVJSONUtils.safeStringify(c94?.message), d94);
|
|
136
|
+
this.processSocketData(c94.message, c94.eventName, d94);
|
|
137
137
|
}
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
|
-
processSocketData(
|
|
141
|
-
if (PLVSocketOnEvent.MESSAGE ===
|
|
142
|
-
if (PLVSocketMessageEvent.TOKEN_EXPIRED ===
|
|
140
|
+
processSocketData(w93, x93, y93) {
|
|
141
|
+
if (PLVSocketOnEvent.MESSAGE === x93) {
|
|
142
|
+
if (PLVSocketMessageEvent.TOKEN_EXPIRED === y93) {
|
|
143
143
|
this.isTokenExpired = true;
|
|
144
144
|
setTimeout(() => {
|
|
145
145
|
if (this.tokenExpiredRetryCount < TOKEN_EXPIRED_RETRY_MAX_COUNT) {
|
|
@@ -152,79 +152,79 @@ export class PLVSocketManager extends PLVSocketIO {
|
|
|
152
152
|
}
|
|
153
153
|
}, PLVCommonConstants.DELAY_TIME_S);
|
|
154
154
|
}
|
|
155
|
-
else if (PLVSocketMessageEvent.KICK ===
|
|
156
|
-
const
|
|
157
|
-
const
|
|
158
|
-
if (this.channelData.viewerId ===
|
|
155
|
+
else if (PLVSocketMessageEvent.KICK === y93) {
|
|
156
|
+
const z93 = w93;
|
|
157
|
+
const a94 = z93['user'];
|
|
158
|
+
if (this.channelData.viewerId === a94?.userId) {
|
|
159
159
|
this.socketStatus = PLVSocketStatus.BE_KICKED_OUT;
|
|
160
160
|
this.eventNotify_socketStatus.emit('socket_status', new PLVSocketStatusSup(this.socketStatus));
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
else if (PLVSocketMessageEvent.LOGIN_REFUSE ===
|
|
163
|
+
else if (PLVSocketMessageEvent.LOGIN_REFUSE === y93) {
|
|
164
164
|
this.socketStatus = PLVSocketStatus.LOGIN_REFUSE;
|
|
165
165
|
this.eventNotify_socketStatus.emit('socket_status', new PLVSocketStatusSup(this.socketStatus));
|
|
166
166
|
}
|
|
167
|
-
else if (PLVSocketMessageEvent.RE_LOGIN ===
|
|
167
|
+
else if (PLVSocketMessageEvent.RE_LOGIN === y93) {
|
|
168
168
|
this.socketStatus = PLVSocketStatus.LOGIN_ELSEWHERE;
|
|
169
169
|
this.eventNotify_socketStatus.emit('socket_status', new PLVSocketStatusSup(this.socketStatus));
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
async getChatTokenConnect() {
|
|
174
|
-
const
|
|
175
|
-
this.callError(
|
|
176
|
-
return Promise.reject(
|
|
174
|
+
const t93 = await PLVUtils.retryPromise(Infinity, 3000, apiPlvNetApi(this.channelData).getChatToken(this.channelData.loginChannelId, this.channelData.appId, this.channelData.appSecret, this.channelData.viewerId, this.channelData.viewerType), this.getTokenDisposable = new PLVDisposable()).catch((v93) => {
|
|
175
|
+
this.callError(v93);
|
|
176
|
+
return Promise.reject(v93);
|
|
177
177
|
});
|
|
178
|
-
const
|
|
179
|
-
this.childRoomEnabledStatus = new PLVChildRoomEnabledStatus(
|
|
180
|
-
this.loginRoomId = this.allowChildRoom &&
|
|
178
|
+
const u93 = t93.data.data?.isChildRoomEnabled();
|
|
179
|
+
this.childRoomEnabledStatus = new PLVChildRoomEnabledStatus(u93);
|
|
180
|
+
this.loginRoomId = this.allowChildRoom && u93 && t93.data.data?.roomId ? t93.data.data?.roomId : this.loginRoomId;
|
|
181
181
|
this.channelData.setupLoginRoomId(this.loginRoomId || '');
|
|
182
|
-
this.channelData.setupChatToken(
|
|
183
|
-
this.connectSocket(
|
|
182
|
+
this.channelData.setupChatToken(t93.data.data?.token || '');
|
|
183
|
+
this.connectSocket(t93.data.data?.token);
|
|
184
184
|
}
|
|
185
|
-
connectSocket(
|
|
186
|
-
const
|
|
187
|
-
const
|
|
185
|
+
connectSocket(q93) {
|
|
186
|
+
const r93 = this.channelData.chatDomain?.getHttpChatDomain();
|
|
187
|
+
const s93 = `&version=2.0&token=${q93}`;
|
|
188
188
|
this.attachListeners(() => {
|
|
189
189
|
this.onSocketIOData();
|
|
190
190
|
});
|
|
191
|
-
this.connectWithQuery(
|
|
191
|
+
this.connectWithQuery(r93 || '', s93, this.channelData.ua());
|
|
192
192
|
}
|
|
193
|
-
callError(
|
|
194
|
-
const
|
|
195
|
-
this.patchELog(PLVELogSocketBatchEvent.LOGIN_FAIL, `error: ${
|
|
193
|
+
callError(o93) {
|
|
194
|
+
const p93 = PLVLogger.printError(TAG, 'login error', o93);
|
|
195
|
+
this.patchELog(PLVELogSocketBatchEvent.LOGIN_FAIL, `error: ${p93}, data: ${this.channelData.string()}`);
|
|
196
196
|
this.socketStatus = PLVSocketStatus.LOGIN_FAIL;
|
|
197
|
-
this.eventNotify_socketStatus.emit('socket_status', new PLVSocketStatusSup(this.socketStatus,
|
|
197
|
+
this.eventNotify_socketStatus.emit('socket_status', new PLVSocketStatusSup(this.socketStatus, o93));
|
|
198
198
|
}
|
|
199
|
-
patchELog(
|
|
199
|
+
patchELog(m93, n93) {
|
|
200
200
|
eLogSender(this.channelData)
|
|
201
201
|
.batch({
|
|
202
202
|
module: PLVELogModuleName.SOCKET,
|
|
203
|
-
event:
|
|
204
|
-
information:
|
|
203
|
+
event: m93,
|
|
204
|
+
information: n93
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
export class PLVChildRoomEnabledStatus {
|
|
209
|
-
constructor(
|
|
210
|
-
this.childRoomEnabled =
|
|
209
|
+
constructor(l93) {
|
|
210
|
+
this.childRoomEnabled = l93;
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
export class PLVSocketStatusSup {
|
|
214
|
-
constructor(
|
|
215
|
-
this.socketStatus =
|
|
216
|
-
this.error =
|
|
214
|
+
constructor(j93, k93) {
|
|
215
|
+
this.socketStatus = j93;
|
|
216
|
+
this.error = k93;
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
export var PLVSocketStatus;
|
|
220
|
-
(function (
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
220
|
+
(function (i93) {
|
|
221
|
+
i93[i93["IDLE"] = 0] = "IDLE";
|
|
222
|
+
i93[i93["LOGGING"] = 1] = "LOGGING";
|
|
223
|
+
i93[i93["LOGIN_SUCCESS"] = 2] = "LOGIN_SUCCESS";
|
|
224
|
+
i93[i93["RECONNECTING"] = 3] = "RECONNECTING";
|
|
225
|
+
i93[i93["RECONNECT_SUCCESS"] = 4] = "RECONNECT_SUCCESS";
|
|
226
|
+
i93[i93["LOGIN_FAIL"] = 5] = "LOGIN_FAIL";
|
|
227
|
+
i93[i93["BE_KICKED_OUT"] = 6] = "BE_KICKED_OUT";
|
|
228
|
+
i93[i93["LOGIN_REFUSE"] = 7] = "LOGIN_REFUSE";
|
|
229
|
+
i93[i93["LOGIN_ELSEWHERE"] = 8] = "LOGIN_ELSEWHERE";
|
|
230
230
|
})(PLVSocketStatus || (PLVSocketStatus = {}));
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { PLVSocketManager } from './PLVSocketManager';
|
|
2
2
|
export declare class PLVSocketMediator {
|
|
3
3
|
private socketManager;
|
|
4
|
-
constructor(
|
|
5
|
-
onData(
|
|
6
|
-
offData(
|
|
7
|
-
onStatus(
|
|
8
|
-
offStatus(
|
|
9
|
-
emit(
|
|
10
|
-
addOnEvent(
|
|
4
|
+
constructor(q95: PLVSocketManager);
|
|
5
|
+
onData(n95: string, o95: Function, p95?: string | Object): void;
|
|
6
|
+
offData(k95: string, l95: Function, m95?: string | Object): void;
|
|
7
|
+
onStatus(i95: Function, j95?: string | Object): void;
|
|
8
|
+
offStatus(g95: Function, h95?: string | Object): void;
|
|
9
|
+
emit(d95: string, e95: ESObject, f95?: (emit_callback_json: string) => void): boolean;
|
|
10
|
+
addOnEvent(c95: string[]): void;
|
|
11
11
|
connected(): boolean;
|
|
12
12
|
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
export class PLVSocketMediator {
|
|
2
|
-
constructor(
|
|
3
|
-
this.socketManager =
|
|
2
|
+
constructor(q95) {
|
|
3
|
+
this.socketManager = q95;
|
|
4
4
|
}
|
|
5
|
-
onData(
|
|
6
|
-
this.socketManager.eventNotify_socketData.on(
|
|
5
|
+
onData(n95, o95, p95) {
|
|
6
|
+
this.socketManager.eventNotify_socketData.on(n95, o95, p95);
|
|
7
7
|
}
|
|
8
|
-
offData(
|
|
9
|
-
this.socketManager.eventNotify_socketData.off(
|
|
8
|
+
offData(k95, l95, m95) {
|
|
9
|
+
this.socketManager.eventNotify_socketData.off(k95, l95, m95);
|
|
10
10
|
}
|
|
11
|
-
onStatus(
|
|
12
|
-
this.socketManager.onStatus(
|
|
11
|
+
onStatus(i95, j95) {
|
|
12
|
+
this.socketManager.onStatus(i95, j95);
|
|
13
13
|
}
|
|
14
|
-
offStatus(
|
|
15
|
-
this.socketManager.offStatus(
|
|
14
|
+
offStatus(g95, h95) {
|
|
15
|
+
this.socketManager.offStatus(g95, h95);
|
|
16
16
|
}
|
|
17
|
-
emit(
|
|
18
|
-
return this.socketManager.emit(
|
|
17
|
+
emit(d95, e95, f95) {
|
|
18
|
+
return this.socketManager.emit(d95, e95, f95);
|
|
19
19
|
}
|
|
20
|
-
addOnEvent(
|
|
21
|
-
this.socketManager.addOnEvent(
|
|
20
|
+
addOnEvent(c95) {
|
|
21
|
+
this.socketManager.addOnEvent(c95);
|
|
22
22
|
}
|
|
23
23
|
connected() {
|
|
24
24
|
return this.socketManager.connected();
|
|
@@ -14,13 +14,13 @@ export declare class PLVSocketUserBean {
|
|
|
14
14
|
classStatus?: PLVClassStatusBean;
|
|
15
15
|
kickRefer?: string;
|
|
16
16
|
getActor(): string;
|
|
17
|
-
setActor(
|
|
17
|
+
setActor(l92?: string): void;
|
|
18
18
|
isBanned(): boolean;
|
|
19
|
-
setBanned(
|
|
19
|
+
setBanned(k92?: boolean): void;
|
|
20
20
|
getPic(): string;
|
|
21
|
-
setPic(
|
|
22
|
-
static fixActor(
|
|
23
|
-
static isSpecialType(
|
|
21
|
+
setPic(j92?: string): void;
|
|
22
|
+
static fixActor(h92?: string, i92?: string): string;
|
|
23
|
+
static isSpecialType(g92?: string): boolean;
|
|
24
24
|
}
|
|
25
25
|
@Observed
|
|
26
26
|
export declare class PLVAuthorizationBean {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (
|
|
2
|
-
var
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (m92, n92, o92, p92) {
|
|
2
|
+
var q92 = arguments.length, r92 = q92 < 3 ? n92 : p92 === null ? p92 = Object.getOwnPropertyDescriptor(n92, o92) : p92, s92;
|
|
3
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
-
|
|
4
|
+
r92 = Reflect.decorate(m92, n92, o92, p92);
|
|
5
5
|
else
|
|
6
|
-
for (var
|
|
7
|
-
if (
|
|
8
|
-
|
|
9
|
-
return
|
|
6
|
+
for (var t92 = m92.length - 1; t92 >= 0; t92--)
|
|
7
|
+
if (s92 = m92[t92])
|
|
8
|
+
r92 = (q92 < 3 ? s92(r92) : q92 > 3 ? s92(n92, o92, r92) : s92(n92, o92)) || r92;
|
|
9
|
+
return q92 > 3 && r92 && Object.defineProperty(n92, o92, r92), r92;
|
|
10
10
|
};
|
|
11
11
|
var PLVSocketUserBean_1;
|
|
12
12
|
import { PLVTextUtils } from '@polyvharmony/live-scenes-foundation';
|
|
@@ -15,8 +15,8 @@ let PLVSocketUserBean = PLVSocketUserBean_1 = class PLVSocketUserBean {
|
|
|
15
15
|
getActor() {
|
|
16
16
|
return PLVSocketUserBean_1.fixActor(this.actor, this.userType) || '';
|
|
17
17
|
}
|
|
18
|
-
setActor(
|
|
19
|
-
this.actor =
|
|
18
|
+
setActor(l92) {
|
|
19
|
+
this.actor = l92;
|
|
20
20
|
}
|
|
21
21
|
isBanned() {
|
|
22
22
|
if (this.classStatus) {
|
|
@@ -24,43 +24,43 @@ let PLVSocketUserBean = PLVSocketUserBean_1 = class PLVSocketUserBean {
|
|
|
24
24
|
}
|
|
25
25
|
return this.banned || false;
|
|
26
26
|
}
|
|
27
|
-
setBanned(
|
|
28
|
-
this.banned =
|
|
27
|
+
setBanned(k92) {
|
|
28
|
+
this.banned = k92;
|
|
29
29
|
if (this.classStatus) {
|
|
30
|
-
this.classStatus.banned =
|
|
30
|
+
this.classStatus.banned = k92 ? PLVClassStatusBean.STATUS_ON : PLVClassStatusBean.STATUS_OFF;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
getPic() {
|
|
34
34
|
return PLVTextUtils.fixPic(this.pic);
|
|
35
35
|
}
|
|
36
|
-
setPic(
|
|
37
|
-
this.pic =
|
|
36
|
+
setPic(j92) {
|
|
37
|
+
this.pic = j92;
|
|
38
38
|
}
|
|
39
|
-
static fixActor(
|
|
40
|
-
if (!
|
|
41
|
-
if (PLVUserType.USERTYPE_TEACHER ==
|
|
39
|
+
static fixActor(h92, i92) {
|
|
40
|
+
if (!h92) {
|
|
41
|
+
if (PLVUserType.USERTYPE_TEACHER == i92) {
|
|
42
42
|
return PLVActor.ACTOR_TEACHER;
|
|
43
43
|
}
|
|
44
|
-
else if (PLVUserType.USERTYPE_MANAGER ==
|
|
44
|
+
else if (PLVUserType.USERTYPE_MANAGER == i92) {
|
|
45
45
|
return PLVActor.ACTOR_MANAGER;
|
|
46
46
|
}
|
|
47
|
-
else if (PLVUserType.USERTYPE_ASSISTANT ==
|
|
47
|
+
else if (PLVUserType.USERTYPE_ASSISTANT == i92) {
|
|
48
48
|
return PLVActor.ACTOR_ASSISTANT;
|
|
49
49
|
}
|
|
50
|
-
else if (PLVUserType.USERTYPE_GUEST ==
|
|
50
|
+
else if (PLVUserType.USERTYPE_GUEST == i92) {
|
|
51
51
|
return PLVActor.ACTOR_GUEST;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
return
|
|
54
|
+
return h92;
|
|
55
55
|
}
|
|
56
|
-
static isSpecialType(
|
|
57
|
-
if (!
|
|
56
|
+
static isSpecialType(g92) {
|
|
57
|
+
if (!g92) {
|
|
58
58
|
return false;
|
|
59
59
|
}
|
|
60
|
-
return PLVUserType.USERTYPE_TEACHER ==
|
|
61
|
-
|| PLVUserType.USERTYPE_MANAGER ==
|
|
62
|
-
|| PLVUserType.USERTYPE_GUEST ==
|
|
63
|
-
|| PLVUserType.USERTYPE_ASSISTANT ==
|
|
60
|
+
return PLVUserType.USERTYPE_TEACHER == g92
|
|
61
|
+
|| PLVUserType.USERTYPE_MANAGER == g92
|
|
62
|
+
|| PLVUserType.USERTYPE_GUEST == g92
|
|
63
|
+
|| PLVUserType.USERTYPE_ASSISTANT == g92;
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
PLVSocketUserBean = PLVSocketUserBean_1 = __decorate([
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
export var PLVUserType;
|
|
2
|
-
(function (
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
(function (v92) {
|
|
3
|
+
v92["USERTYPE_SCSTUDENT"] = "SCStudent";
|
|
4
|
+
v92["USERTYPE_SLICE"] = "slice";
|
|
5
|
+
v92["USERTYPE_MANAGER"] = "manager";
|
|
6
|
+
v92["USERTYPE_TEACHER"] = "teacher";
|
|
7
|
+
v92["USERTYPE_ASSISTANT"] = "assistant";
|
|
8
|
+
v92["USERTYPE_STUDENT"] = "student";
|
|
9
|
+
v92["USERTYPE_GUEST"] = "guest";
|
|
10
|
+
v92["USERTYPE_VIEWER"] = "viewer";
|
|
11
|
+
v92["USERTYPE_DUMMY"] = "dummy";
|
|
12
12
|
})(PLVUserType || (PLVUserType = {}));
|
|
13
13
|
export var PLVActor;
|
|
14
|
-
(function (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
(function (u92) {
|
|
15
|
+
u92["ACTOR_TEACHER"] = "\u8BB2\u5E08";
|
|
16
|
+
u92["ACTOR_MANAGER"] = "\u7BA1\u7406\u5458";
|
|
17
|
+
u92["ACTOR_ASSISTANT"] = "\u52A9\u6559";
|
|
18
|
+
u92["ACTOR_GUEST"] = "\u5609\u5BBE";
|
|
19
19
|
})(PLVActor || (PLVActor = {}));
|
|
@@ -24,14 +24,14 @@ export class PLVCallAppEvent {
|
|
|
24
24
|
}
|
|
25
25
|
export class CallAppEventValue {
|
|
26
26
|
fill() {
|
|
27
|
-
let
|
|
28
|
-
this.dataArray?.forEach((
|
|
29
|
-
let
|
|
30
|
-
if (
|
|
31
|
-
|
|
27
|
+
let c92 = [];
|
|
28
|
+
this.dataArray?.forEach((d92, e92) => {
|
|
29
|
+
let f92 = PLVJSONUtils.bean2Bean(new CallAppEventData(), d92);
|
|
30
|
+
if (f92 != null && f92 != undefined) {
|
|
31
|
+
c92.push(f92);
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
|
-
this.dataArray =
|
|
34
|
+
this.dataArray = c92;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
export class CallAppEventData {
|
|
@@ -3,7 +3,7 @@ export declare class RedPaperReceiveType {
|
|
|
3
3
|
value: string;
|
|
4
4
|
serverTypes: string[];
|
|
5
5
|
typeName: Resource;
|
|
6
|
-
constructor(
|
|
6
|
+
constructor(f93: string, g93: string[], h93: Resource);
|
|
7
7
|
getTypeName(): Resource;
|
|
8
8
|
clone(): RedPaperReceiveType;
|
|
9
9
|
}
|
|
@@ -17,7 +17,7 @@ export declare class PLVRedPaperReceiveType {
|
|
|
17
17
|
private static instance;
|
|
18
18
|
private constructor();
|
|
19
19
|
static getInstance(): PLVRedPaperReceiveType;
|
|
20
|
-
static getValue(
|
|
21
|
-
static match(
|
|
22
|
-
static matchOrDefault(
|
|
20
|
+
static getValue(e93: RedPaperReceiveTypeEvent): RedPaperReceiveType;
|
|
21
|
+
static match(z92?: string): RedPaperReceiveType | undefined;
|
|
22
|
+
static matchOrDefault(w92: string, x92: RedPaperReceiveTypeEvent): RedPaperReceiveType;
|
|
23
23
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import HashMap from "@ohos.util.HashMap";
|
|
2
2
|
export class RedPaperReceiveType {
|
|
3
|
-
constructor(
|
|
4
|
-
this.value =
|
|
5
|
-
this.serverTypes =
|
|
6
|
-
this.typeName =
|
|
3
|
+
constructor(f93, g93, h93) {
|
|
4
|
+
this.value = f93;
|
|
5
|
+
this.serverTypes = g93;
|
|
6
|
+
this.typeName = h93;
|
|
7
7
|
}
|
|
8
8
|
getTypeName() {
|
|
9
9
|
return this.typeName;
|
|
@@ -23,29 +23,29 @@ export class PLVRedPaperReceiveType {
|
|
|
23
23
|
static getInstance() {
|
|
24
24
|
return PLVRedPaperReceiveType.instance;
|
|
25
25
|
}
|
|
26
|
-
static getValue(
|
|
27
|
-
return PLVRedPaperReceiveType.map.get(
|
|
26
|
+
static getValue(e93) {
|
|
27
|
+
return PLVRedPaperReceiveType.map.get(e93).clone();
|
|
28
28
|
}
|
|
29
|
-
static match(
|
|
30
|
-
let
|
|
31
|
-
if (
|
|
32
|
-
return
|
|
29
|
+
static match(z92) {
|
|
30
|
+
let a93 = undefined;
|
|
31
|
+
if (z92 === undefined) {
|
|
32
|
+
return a93;
|
|
33
33
|
}
|
|
34
|
-
PLVRedPaperReceiveType.map.forEach((
|
|
35
|
-
|
|
36
|
-
if (
|
|
37
|
-
|
|
34
|
+
PLVRedPaperReceiveType.map.forEach((b93, c93) => {
|
|
35
|
+
b93.serverTypes.forEach((d93) => {
|
|
36
|
+
if (d93 === z92) {
|
|
37
|
+
a93 = b93.clone();
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
});
|
|
41
|
-
return
|
|
41
|
+
return a93;
|
|
42
42
|
}
|
|
43
|
-
static matchOrDefault(
|
|
44
|
-
const
|
|
45
|
-
if (
|
|
46
|
-
return
|
|
43
|
+
static matchOrDefault(w92, x92) {
|
|
44
|
+
const y92 = PLVRedPaperReceiveType.map.get(w92).clone();
|
|
45
|
+
if (y92) {
|
|
46
|
+
return y92;
|
|
47
47
|
}
|
|
48
|
-
return PLVRedPaperReceiveType.map.get(
|
|
48
|
+
return PLVRedPaperReceiveType.map.get(x92).clone();
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
PLVRedPaperReceiveType.map = new HashMap();
|