All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dromara.sms4j.api.SmsBlend Maven / Gradle / Ivy

package org.dromara.sms4j.api;

import org.dromara.sms4j.api.callback.CallBack;
import org.dromara.sms4j.api.entity.SmsResponse;

import java.util.LinkedHashMap;
import java.util.List;

/**
 * SmsBlend
 * 

通用接口,定义国内短信方法 * @author :Wind * 2023/5/16 16:03 **/ public interface SmsBlend { SmsResponse sendMessage(String phone, String message); SmsResponse sendMessage(String phone, String templateId, LinkedHashMap messages); SmsResponse massTexting(List phones, String message); SmsResponse massTexting(List phones, String templateId, LinkedHashMap messages); void sendMessageAsync(String phone, String message, CallBack callBack); void sendMessageAsync(String phone, String message); void sendMessageAsync(String phone, String templateId, LinkedHashMap messages, CallBack callBack); void sendMessageAsync(String phone, String templateId, LinkedHashMap messages); void delayedMessage(String phone, String message, Long delayedTime); void delayedMessage(String phone, String templateId, LinkedHashMap messages, Long delayedTime); void delayMassTexting(List phones, String message, Long delayedTime); void delayMassTexting(List phones, String templateId, LinkedHashMap messages, Long delayedTime); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy