ChatroomService.java 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. package com.ym.service;
  2. import io.rong.models.Result;
  3. import io.rong.models.chatroom.ChatroomMember;
  4. import io.rong.models.chatroom.ChatroomModel;
  5. import io.rong.models.response.*;
  6. public interface ChatroomService {
  7. //聊天室
  8. Result chatroomCreate(ChatroomModel[] chatroomModels) throws Exception;
  9. Result chatroomDestory(ChatroomModel chatroomModel) throws Exception;
  10. Result chatroomGet(ChatroomModel chatroomModel) throws Exception;
  11. CheckChatRoomUserResult chatroomIsExit(ChatroomMember chatroomMember) throws Exception;
  12. //聊天室模块 封禁
  13. Result chatroomBlockAdd(ChatroomModel chatroomModel) throws Exception;
  14. Result chatroomBlockRemove(ChatroomModel chatroomModel) throws Exception;
  15. Result chatroomBlockGetList(String chatroomId) throws Exception;
  16. //聊天室模块,成员禁言
  17. ResponseResult chatroomMuteMembersAdd(ChatroomModel chatroomModel) throws Exception;
  18. ResponseResult chatroomMuteMembersRemove(ChatroomModel chatroomModel) throws Exception;
  19. ListGagChatroomUserResult chatroomMuteMembersGetList(ChatroomModel chatroomModel) throws Exception;
  20. //消息降级
  21. ChatroomDemotionMsgResult demotionGetList() throws Exception;
  22. ResponseResult demotionRemove(String[] objectNames) throws Exception;
  23. ResponseResult demotionAdd(String[] objectNames) throws Exception;
  24. //消息分发
  25. ResponseResult distributeStop(ChatroomModel chatroomModel) throws Exception;
  26. ResponseResult distributeResume(ChatroomModel chatroomModel) throws Exception;
  27. //保活
  28. ResponseResult keepAliveAdd(ChatroomModel chatroomModel) throws Exception;
  29. ResponseResult keepAliveRemove(ChatroomModel chatroomModel) throws Exception;
  30. ChatroomKeepaliveResult keepAliveGetList() throws Exception;
  31. //白名单
  32. ResponseResult whitelistUserAdd(ChatroomModel chatroomModel) throws Exception;
  33. ResponseResult whitelistUserRemove(ChatroomModel chatroomModel) throws Exception;
  34. Result whitelistUserGetList(ChatroomModel chatroomModel) throws Exception;
  35. ResponseResult whitelistMessageAdd(String[] objectNames) throws Exception;
  36. ResponseResult whitelistMessageRemove(String[] objectNames) throws Exception;
  37. ChatroomWhitelistMsgResult whitelistMessageGetList() throws Exception;
  38. //敏感词
  39. ResponseResult sensitiveAdd(String word) throws Exception;
  40. ResponseResult sensitiveRemove(String word) throws Exception;
  41. ListWordfilterResult sensitiveGetList() throws Exception;
  42. }