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

com.github.aqiu202.api.sms.param.SmsRequest Maven / Gradle / Ivy

package com.github.aqiu202.api.sms.param;

import java.util.Collection;
import java.util.Map;

/**
 * 
标准的SMS短信服务请求信息
*

标准的SMS短信服务请求包含的所有信息(短信签名、模版类型/模版ID、手机号码、填充参数等)

* @author aqiu 2020/2/19 4:09 下午 **/ public interface SmsRequest { static SmsRequest of(String templateType) { return new DefaultSmsRequest(templateType); } static SmsRequest of(String templateType, Collection phoneNumbers) { return new DefaultSmsRequest(templateType, phoneNumbers); } static SmsRequest of(String templateType, String... phoneNumbers) { return new DefaultSmsRequest(templateType, phoneNumbers); } String getSignName(); Collection getPhoneNumbers(); String getTemplateType(); Map getParams(); SmsRequest setPhoneNumbers(Collection phoneNumbers); SmsRequest setSignName(String signName); SmsRequest setTemplateType(String templateType); SmsRequest setParam(String key, String value); SmsRequest setParams(Map params); SmsRequest addParams(String... params); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy