123456789101112131415161718192021222324252627282930313233343536373839404142 |
- package com.keao.edu.thirdparty.message;
- import java.io.IOException;
- public interface MessageSenderPlugin {
- /**
- * 发送方名称
- * @return
- */
- public String getName();
- /**
- * 发送模式(SMS/PUSH/EMAIL)
- * @return
- */
- public SendMode getSendMode();
- /**
- * 发送消息至目的地
- * @param subject 消息主题
- * @param content 消息内容
- * @param receiver 收件人
- * @param url 链接地址
- * @param appClient app客户端名称
- * @return 是否发送成功
- * @throws IOException
- */
- public boolean send(String subject, String content, String receiver, String url, String appClient) throws Exception;
- /**
- * 批量发送消息至目的地
- * @param subject 消息主题
- * @param content 消息内容
- * @param receivers 收件人列表
- * @param url 链接地址
- * @param jpushType 极光应用类型
- * @return 是否发送成功
- * @throws IOException
- */
- public boolean batchSend(String subject, String content, String[] receivers, String url, String jpushType) throws Exception;
- }
|