MessageService.java 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package com.ym.service;
  2. import io.rong.models.Result;
  3. import io.rong.models.message.*;
  4. import io.rong.models.push.BroadcastModel;
  5. import io.rong.models.push.PushModel;
  6. public interface MessageService {
  7. Result privateSend(PrivateMessage privateMessage) throws Exception;
  8. Result privateRecall(RecallMessage recallMessage) throws Exception;
  9. Result privateSendTemplate(TemplateMessage templateMessage) throws Exception;
  10. //群组消息
  11. Result groupSend(GroupMessage groupMessage) throws Exception;
  12. Result groupSendDirection(GroupMessage groupMessage) throws Exception;
  13. Result groupSendMention(MentionMessage mentionMessage) throws Exception;
  14. Result groupRecall(RecallMessage recallMessage) throws Exception;
  15. //聊天室
  16. Result chatroomSend(ChatroomMessage chatroomMessage) throws Exception;
  17. Result chatroomBroadcast(ChatroomMessage chatroomMessage) throws Exception;
  18. //系统消息
  19. Result systemSend(SystemMessage systemMessage) throws Exception;
  20. Result systemBroadcast(BroadcastMessage broadcastMessage) throws Exception;
  21. Result systemSendTemplate(TemplateMessage templateMessage) throws Exception;
  22. //历史消息
  23. Result historyGet(String date) throws Exception;
  24. Result historyRemove(String date) throws Exception;
  25. //广播推送模块
  26. Result pushPush(PushModel pushModel) throws Exception;
  27. Result pushMessage(BroadcastModel broadcastModel) throws Exception;
  28. }