RoomService.java 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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, Boolean joinRoom) 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. /**
  20. * 事件回调通知
  21. * @param roomId 房间编号
  22. * @param userId 用户编号
  23. * @param deviceNum 设备编号
  24. * @param callbackTs 事件回调时间
  25. * @throws Exception Exception
  26. */
  27. void leaveRoomSuccess(String roomId,String userId,String deviceNum, Long callbackTs) throws Exception;
  28. //only teacher
  29. Boolean display(String roomId, int type, String uri, String userId) throws Exception;
  30. String createWhiteBoard(String roomId) throws Exception;
  31. Boolean deleteWhiteboard(String roomId, String whiteBoardId) throws Exception;
  32. List<RoomResult.WhiteboardResult> getWhiteboard(String roomId) throws Exception;
  33. Boolean turnWhiteBoardPage(String roomId, String whiteBoardId, int page) throws Exception;
  34. Boolean controlDevice(ReqDeviceControlData data) throws Exception;
  35. Boolean batchControlDevice(ReqDeviceControlData data) throws Exception;
  36. Boolean approveControlDevice(ReqDeviceControlData data) throws Exception;
  37. Boolean rejectControlDevice(String roomId, String ticket) throws Exception;
  38. List<RoomResult.MemberResult> getMembers(String roomId, String userId) throws Exception;
  39. Boolean applySpeech(String roomId) throws Exception;
  40. Boolean approveSpeech(String roomId, String requestId) throws Exception;
  41. Boolean rejectSpeech(String roomId, String requestId) throws Exception;
  42. Boolean transfer(String roomId, String userId) throws Exception;
  43. Boolean inviteUpgradeRole(String roomId, String userId, int role) throws Exception;
  44. Boolean approveUpgradeRole(String roomId, String ticket) throws Exception;
  45. Boolean rejectUpgradeRole(String roomId, String ticket) throws Exception;
  46. Boolean syncDeviceState(ReqDeviceControlData data) throws Exception;
  47. Boolean changeRole(String roomId, String userId, int role) throws Exception;
  48. void destroyRoom(String roomId);
  49. Boolean memberOnlineStatus(List<ReqMemberOnlineStatus> statusList, String nonce, String timestamp, String signature) throws Exception;
  50. void userIMOfflineKick(String userId);
  51. /**
  52. * 发送节拍器消息
  53. * @param playMidiMessageData
  54. */
  55. void sendImPlayMidiMessage(PlayMidiMessageData playMidiMessageData) throws Exception;
  56. /**
  57. * 获取未进入教室的学员列表
  58. * @return
  59. */
  60. List<RongyunBasicUserDto> queryNoJoinStu(String roomId);
  61. /**
  62. * 推送学员开始下载伴奏的通知
  63. * @author zouxuan
  64. * @param roomId
  65. * @param examSongId
  66. */
  67. void pushDownloadExamSongMsg(String roomId, Integer examSongId) throws Exception;
  68. /**
  69. * 修改学员伴奏下载状态
  70. * @author zouxuan
  71. * @param roomId
  72. * @param status
  73. */
  74. void adjustExamSong(String roomId,Integer status,Integer examSongId) throws Exception;
  75. /**
  76. * 修改学员伴奏下载状态
  77. * @author zouxuan
  78. * @param musicScoreData
  79. */
  80. void adjustMusicScore(MusicScoreData musicScoreData) throws Exception;
  81. /**
  82. * 移动端用户加入房间失败
  83. * @author zouxuan
  84. * @param roomId
  85. * @param userId
  86. */
  87. void joinRoomFailure(String roomId, String userId);
  88. /**
  89. * 通知学员下载伴奏
  90. * @param musicScoreData
  91. */
  92. void pushDownloadMusicScoreMsg(MusicScoreData musicScoreData) throws Exception;
  93. }