RoomService.java 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. package com.ym.service;
  2. import com.ym.mec.biz.dal.dto.RongyunBasicUserDto;
  3. import com.ym.pojo.*;
  4. import java.util.List;
  5. /**
  6. * Created by super_zou on 2019/11/28.
  7. */
  8. public interface RoomService {
  9. //everyone
  10. RoomResult joinRoom(String roomId) throws Exception;
  11. //only host
  12. Boolean downgrade(String roomId, List<ReqChangeUserRoleData.ChangedUser> users) throws Exception;
  13. Boolean kickMember(String roomId) throws Exception;
  14. void joinRoomSuccess(String roomId,String userId) throws Exception;
  15. void leaveRoomSuccess(String roomId,String userId) throws Exception;
  16. //only teacher
  17. Boolean display(String roomId, int type, String uri, String userId) throws Exception;
  18. String createWhiteBoard(String roomId) throws Exception;
  19. Boolean deleteWhiteboard(String roomId, String whiteBoardId) throws Exception;
  20. List<RoomResult.WhiteboardResult> getWhiteboard(String roomId) throws Exception;
  21. Boolean turnWhiteBoardPage(String roomId, String whiteBoardId, int page) throws Exception;
  22. Boolean controlDevice(String roomId, String userId, DeviceTypeEnum type, boolean enable) throws Exception;
  23. Boolean batchControlDevice(ReqDeviceControlData data) throws Exception;
  24. Boolean approveControlDevice(String roomId, String ticket) throws Exception;
  25. Boolean rejectControlDevice(String roomId, String ticket) throws Exception;
  26. List<RoomResult.MemberResult> getMembers(String roomId) throws Exception;
  27. Boolean applySpeech(String roomId) throws Exception;
  28. Boolean approveSpeech(String roomId, String requestId) throws Exception;
  29. Boolean rejectSpeech(String roomId, String requestId) throws Exception;
  30. Boolean transfer(String roomId, String userId) throws Exception;
  31. Boolean inviteUpgradeRole(String roomId, String userId, int role) throws Exception;
  32. Boolean approveUpgradeRole(String roomId, String ticket) throws Exception;
  33. Boolean rejectUpgradeRole(String roomId, String ticket) throws Exception;
  34. Boolean syncDeviceState(String roomId, DeviceTypeEnum type, boolean enable) throws Exception;
  35. Boolean changeRole(String roomId, String userId, int role) throws Exception;
  36. void destroyRoom(String roomId);
  37. Boolean memberOnlineStatus(List<ReqMemberOnlineStatus> statusList, String nonce, String timestamp, String signature) throws Exception;
  38. void userIMOfflineKick(String userId);
  39. void statusSync(ChannelStateNotify notify) throws Exception;
  40. /**
  41. * 发送节拍器消息
  42. * @param playMidiMessageData
  43. */
  44. void sendImPlayMidiMessage(PlayMidiMessageData playMidiMessageData) throws Exception;
  45. /**
  46. * 获取未进入教室的学员列表
  47. * @return
  48. */
  49. List<RongyunBasicUserDto> queryNoJoinStu(String roomId);
  50. }