MessageSenderPlugin.java 908 B

123456789101112131415161718192021222324252627282930
  1. package com.ym.mec.thirdparty.message;
  2. import java.io.IOException;
  3. public interface MessageSenderPlugin {
  4. /**
  5. * 发送消息至目的地
  6. * @param subject 消息主题
  7. * @param content 消息内容
  8. * @param receiver 收件人
  9. * @param url 链接地址
  10. * @param jpushType 极光应用类型
  11. * @return 是否发送成功
  12. * @throws IOException
  13. */
  14. public boolean send(String subject, String content, String receiver, String url, String jpushType,String sound) throws Exception;
  15. /**
  16. * 批量发送消息至目的地
  17. * @param subject 消息主题
  18. * @param content 消息内容
  19. * @param receivers 收件人列表
  20. * @param url 链接地址
  21. * @param jpushType 极光应用类型
  22. * @return 是否发送成功
  23. * @throws IOException
  24. */
  25. public boolean batchSend(String subject, String content, String[] receivers, String url, String jpushType,String sound) throws Exception;
  26. }