Files
peko-ios/sequenceDiagram.cs

63 lines
2.3 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

sequenceDiagram
participant User as
participant StageView as StageView
participant RoomVC as XPRoomViewController
participant NIM as NIM SDK
participant API as Api服务
participant MenuView as XPRoomMenuContainerView
Note over User,MenuView: mic完整流程
%%
User->>StageView:
StageView->>StageView: microViewTapped(didSelectAtIndex)
%%
StageView->>StageView: (//)
alt
StageView->>StageView: displayUserCard()
else
StageView->>RoomVC:
%%
alt /
StageView->>StageView: (///)
User->>StageView: "上麦"
else
alt
StageView->>NIM: nimDownQueue()
NIM->>NIM:
end
end
%%
alt (RoomType_19Mic)6
StageView->>API: requestBossMicUp()
API-->>StageView:
end
%%
StageView->>NIM: nimUpQueue()
NIM->>NIM: (userInfoToQueueExt)
NIM->>API:
API-->>NIM:
%%
NIM->>RoomVC: onMicroQueueUpdate回调
RoomVC->>MenuView:
MenuView->>MenuView: micButton状态
MenuView->>MenuView: recheckMicState()
%% UI更新阶段
StageView->>StageView: UI显示
StageView->>StageView:
%% 广
NIM->>NIM: (CustomMessageType_Hall_Super_Admin)
NIM->>RoomVC: 广
else
StageView->>User: "麦位已锁定"
end
Note over User,MenuView: