RoomService.java 3.7 KB

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