Exemplo n.º 1
0
 /// <summary>
 /// 发送同内容的多条短信
 /// </summary>
 /// <param name="template_id">模板ID</param>
 /// <param name="pm">模板参数</param>
 /// <param name="mobile_list">目标手机号列表</param>
 /// <param name="rid">记录ID, 用于返回结果后的后续处理, 非必填</param>
 /// <returns>发送结果</returns>
 public static SMSResponseList sendTemplate(long template_id, Dictionary <string, string> pm, List <string> mobile_list, string rid, bool filter_nonnumber)
 {
     if (unit == null)
     {
         return(SMSResponseList.errorNotInitialized());
     }
     return(unit.sendTemplate(template_id, pm, mobile_list, rid, filter_nonnumber));
 }
Exemplo n.º 2
0
 /// <summary>
 /// 发送同内容的多条短信
 /// </summary>
 /// <param name="content">短信内容</param>
 /// <param name="mobile_list">目标手机号列表</param>
 /// <param name="rid">记录ID, 用于返回结果后的后续处理, 非必填</param>
 /// <returns>发送结果</returns>
 public static SMSResponseList send(string content, List <string> mobile_list, string rid, bool filter_nonnumber)
 {
     if (unit == null)
     {
         return(SMSResponseList.errorNotInitialized());
     }
     return(unit.send(content, mobile_list, rid, filter_nonnumber));
 }