RoomService.java 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. package com.ym.service;
  2. import com.ym.mec.biz.dal.dto.RongyunBasicUserDto;
  3. import com.ym.pojo.*;
  4. import org.apache.ibatis.annotations.Param;
  5. import java.util.List;
  6. /**
  7. * Created by super_zou on 2019/11/28.
  8. */
  9. public interface RoomService {
  10. //everyone
  11. RoomResult joinRoom(String roomId) throws Exception;
  12. Integer getCurrentCourseId(String roomId);
  13. //only host
  14. Boolean downgrade(String roomId, List<ReqChangeUserRoleData.ChangedUser> users) throws Exception;
  15. Boolean kickMember(String roomId) throws Exception;
  16. void joinRoomSuccess(String roomId,String userId,String deviceNum) throws Exception;
  17. void leaveRoomSuccess(String roomId,String userId,String deviceNum) throws Exception;
  18. //only teacher
  19. Boolean display(String roomId, int type, String uri, String userId) throws Exception;
  20. String createWhiteBoard(String roomId) throws Exception;
  21. Boolean deleteWhiteboard(String roomId, String whiteBoardId) throws Exception;
  22. List<RoomResult.WhiteboardResult> getWhiteboard(String roomId) throws Exception;
  23. Boolean turnWhiteBoardPage(String roomId, String whiteBoardId, int page) throws Exception;
  24. Boolean controlDevice(ReqDeviceControlData data) throws Exception;
  25. Boolean batchControlDevice(ReqDeviceControlData data) throws Exception;
  26. Boolean approveControlDevice(ReqDeviceControlData data) throws Exception;
  27. Boolean rejectControlDevice(String roomId, String ticket) throws Exception;
  28. List<RoomResult.MemberResult> getMembers(String roomId) throws Exception;
  29. Boolean applySpeech(String roomId) throws Exception;
  30. Boolean approveSpeech(String roomId, String requestId) throws Exception;
  31. Boolean rejectSpeech(String roomId, String requestId) throws Exception;
  32. Boolean transfer(String roomId, String userId) throws Exception;
  33. Boolean inviteUpgradeRole(String roomId, String userId, int role) throws Exception;
  34. Boolean approveUpgradeRole(String roomId, String ticket) throws Exception;
  35. Boolean rejectUpgradeRole(String roomId, String ticket) throws Exception;
  36. Boolean syncDeviceState(ReqDeviceControlData data) throws Exception;
  37. Boolean changeRole(String roomId, String userId, int role) throws Exception;
  38. void destroyRoom(String roomId);
  39. Boolean memberOnlineStatus(List<ReqMemberOnlineStatus> statusList, String nonce, String timestamp, String signature) throws Exception;
  40. void userIMOfflineKick(String userId);
  41. /**
  42. * 发送节拍器消息
  43. * @param playMidiMessageData
  44. */
  45. void sendImPlayMidiMessage(PlayMidiMessageData playMidiMessageData) throws Exception;
  46. /**
  47. * 获取未进入教室的学员列表
  48. * @return
  49. */
  50. List<RongyunBasicUserDto> queryNoJoinStu(String roomId);
  51. /**
  52. * 推送学员开始下载伴奏的通知
  53. * @author zouxuan
  54. * @param roomId
  55. * @param examSongId
  56. */
  57. void pushDownloadExamSongMsg(String roomId, Integer examSongId) throws Exception;
  58. /**
  59. * 修改学员伴奏下载状态
  60. * @author zouxuan
  61. * @param roomId
  62. * @param status
  63. */
  64. void adjustExamSong(String roomId,Integer status,Integer examSongId) throws Exception;
  65. /**
  66. * 修改学员伴奏下载状态
  67. * @author zouxuan
  68. * @param musicScoreData
  69. */
  70. void adjustMusicScore(MusicScoreData musicScoreData) throws Exception;
  71. /**
  72. * 移动端用户加入房间失败
  73. * @author zouxuan
  74. * @param roomId
  75. * @param userId
  76. */
  77. void joinRoomFailure(String roomId, String userId);
  78. /**
  79. * 通知学员下载伴奏
  80. * @param musicScoreData
  81. */
  82. void pushDownloadMusicScoreMsg(MusicScoreData musicScoreData) throws Exception;
  83. }