短信相关的接口
All
| 方法 | 描述 |
|---|---|
public static boolean resendFailedSms(long smsId); |
根据smsId从数据库查找消息,并再次发送
返回值:boolean true:已添加到发送队列;false:未添加到发送队列支持的产品:All |
public static long sendSmsAfterSaved(int from, String to, String content); |
保存消息并将消息加入到发送队列
当前接口的保存操作是在当前的线程中同步处理的。
参数:返回值:long >=0:已保存的消息ID;<0:保存消息失败支持的产品:All |
public static long sendSmsAfterSaved(int from, String to, String group, String content); |
保存消息并将消息加入到发送队列
当前接口的保存操作是在当前的线程中同步处理的。
参数:返回值:long >=0:已保存的消息ID;<0:保存消息失败支持的产品:All |
public static boolean addSmsListener(SmsListener smsListener); |
添加短信监听器用于监听消息发送结果
参数:返回值:boolean true:成功;false:失败.支持的产品:All |
public static int removeSmsById(long smsId); |
根据smsId删除短信
返回值:int 小于0:出错;大于等于0:删除个数 返回为0表示数据库中无此短信,因此大于等于0均可以认为删除成功 |
public static int removeSmsByType(int removeType); |
根据removeType删除短信
返回值:int 小于0:出错,大于等于0:删除的个数 返回为0表示数据库中无此类短信,因此大于等于0均可认为删除成功 |
| 成员 | 描述 |
|---|---|
public static final String API |
SmsManagerApi的标签名,用于在ApiClient中注册. {@link com.gs.common.client.ApiClient.Builder#addApi(String)} 支持的产品:All |