RoomService.java 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. package com.ym.service;
  2. import com.ym.common.ApiException;
  3. import com.ym.pojo.DeviceTypeEnum;
  4. import com.ym.pojo.ReqChangeUserRoleData;
  5. import com.ym.pojo.ReqMemberOnlineStatus;
  6. import com.ym.pojo.RoomResult;
  7. import java.util.List;
  8. /**
  9. * Created by super_zou on 2019/11/28.
  10. */
  11. public interface RoomService {
  12. //everyone
  13. public RoomResult joinRoom(String userName, String roomId, boolean isAudience, boolean isDisableCamera) throws ApiException, Exception;
  14. void signIn(Long roomId);
  15. public Boolean leaveRoom(String roomId) throws ApiException, Exception;
  16. //only host
  17. public Boolean downgrade(String roomId, List<ReqChangeUserRoleData.ChangedUser> users) throws ApiException, Exception;
  18. public Boolean kickMember(String roomId) throws ApiException, Exception;
  19. //only teacher
  20. public Boolean display(String roomId, int type, String uri) throws ApiException, Exception;
  21. public String createWhiteBoard(String roomId) throws ApiException, Exception;
  22. public Boolean deleteWhiteboard(String roomId, String whiteBoardId) throws ApiException, Exception;
  23. public List<RoomResult.WhiteboardResult> getWhiteboard(String roomId) throws ApiException, Exception;
  24. public Boolean turnWhiteBoardPage(String roomId, String whiteBoardId, int page) throws ApiException, Exception;
  25. public Boolean controlDevice(String roomId, String userId, DeviceTypeEnum type, boolean enable) throws ApiException, Exception;
  26. public Boolean approveControlDevice(String roomId, String ticket) throws ApiException, Exception;
  27. public Boolean rejectControlDevice(String roomId, String ticket) throws ApiException, Exception;
  28. public List<RoomResult.MemberResult> getMembers(String roomId) throws ApiException, Exception;
  29. public Boolean applySpeech(String roomId) throws ApiException, Exception;
  30. public Boolean approveSpeech(String roomId, String requestId) throws ApiException, Exception;
  31. public Boolean rejectSpeech(String roomId, String requestId) throws ApiException, Exception;
  32. public Boolean transfer(String roomId, String userId) throws ApiException, Exception;
  33. public Boolean inviteUpgradeRole(String roomId, String userId, int role) throws ApiException, Exception;
  34. public Boolean approveUpgradeRole(String roomId, String ticket) throws ApiException, Exception;
  35. public Boolean rejectUpgradeRole(String roomId, String ticket) throws ApiException, Exception;
  36. public Boolean syncDeviceState(String roomId, DeviceTypeEnum type, boolean enable) throws ApiException, Exception;
  37. public Boolean changeRole(String roomId, String userId, int role) throws ApiException, Exception;
  38. public void destroyRoom(String roomId);
  39. public Boolean memberOnlineStatus(List<ReqMemberOnlineStatus> statusList, String nonce, String timestamp, String signature) throws ApiException, Exception;
  40. public void userIMOfflineKick(String userId);
  41. boolean statusSync(String roomId,String userId) throws Exception;
  42. }