RoomService.java 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. package com.ym.service;
  2. import com.ym.common.ApiException;
  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. public RoomResult joinRoom(String userName, String roomId, boolean isAudience, boolean isDisableCamera,boolean isMusicMode) throws ApiException, Exception;
  11. void signIn(Long roomId);
  12. public Boolean leaveRoom(String roomId) throws ApiException, Exception;
  13. //only host
  14. public Boolean downgrade(String roomId, List<ReqChangeUserRoleData.ChangedUser> users) throws ApiException, Exception;
  15. public Boolean kickMember(String roomId) throws ApiException, Exception;
  16. //only teacher
  17. public Boolean display(String roomId, int type, String uri) throws ApiException, Exception;
  18. public String createWhiteBoard(String roomId) throws ApiException, Exception;
  19. public Boolean deleteWhiteboard(String roomId, String whiteBoardId) throws ApiException, Exception;
  20. public List<RoomResult.WhiteboardResult> getWhiteboard(String roomId) throws ApiException, Exception;
  21. public Boolean turnWhiteBoardPage(String roomId, String whiteBoardId, int page) throws ApiException, Exception;
  22. public Boolean controlDevice(String roomId, String userId, DeviceTypeEnum type, boolean enable) throws ApiException, Exception;
  23. Boolean batchControlDevice(ReqDeviceControlData data) throws Exception;
  24. public Boolean approveControlDevice(String roomId, String ticket) throws ApiException, Exception;
  25. public Boolean rejectControlDevice(String roomId, String ticket) throws ApiException, Exception;
  26. public List<RoomResult.MemberResult> getMembers(String roomId) throws ApiException, Exception;
  27. public Boolean applySpeech(String roomId) throws ApiException, Exception;
  28. public Boolean approveSpeech(String roomId, String requestId) throws ApiException, Exception;
  29. public Boolean rejectSpeech(String roomId, String requestId) throws ApiException, Exception;
  30. public Boolean transfer(String roomId, String userId) throws ApiException, Exception;
  31. public Boolean inviteUpgradeRole(String roomId, String userId, int role) throws ApiException, Exception;
  32. public Boolean approveUpgradeRole(String roomId, String ticket) throws ApiException, Exception;
  33. public Boolean rejectUpgradeRole(String roomId, String ticket) throws ApiException, Exception;
  34. public Boolean syncDeviceState(String roomId, DeviceTypeEnum type, boolean enable) throws ApiException, Exception;
  35. public Boolean changeRole(String roomId, String userId, int role) throws ApiException, Exception;
  36. public void destroyRoom(String roomId);
  37. public Boolean memberOnlineStatus(List<ReqMemberOnlineStatus> statusList, String nonce, String timestamp, String signature) throws ApiException, Exception;
  38. public void userIMOfflineKick(String userId);
  39. boolean statusSync(String roomId,String userId) throws Exception;
  40. /**
  41. * 发送节拍器自定义消息
  42. * @param userId
  43. * @param content
  44. */
  45. void sendImPlayMidiMessage(String userId, String content,String roomId);
  46. }