Esempio 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));
 }
Esempio 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));
 }
Esempio n. 3
0
        public static SMSResponseList custom(int code, string msg)
        {
            var res = new SMSResponseList();

            res.code = code;
            res.msg  = msg;
            return(res);
        }
Esempio n. 4
0
 /// <summary>
 /// 发送同内容的多条短信
 /// </summary>
 /// <param name="template_id">模板ID</param>
 /// <param name="pm">模板参数</param>
 /// <param name="mobile_list">目标手机号列表</param>
 /// <param name="rid">记录ID, 用于返回结果后的后续处理, 非必填</param>
 /// <param name="filter_nonnumber">是否过滤手机号中包含的非数字字符</param>
 /// <returns>发送结果</returns>
 public virtual SMSResponseList sendTemplate(long template_id, Dictionary <string, string> pm, List <string> mobile_list, string rid, bool filter_nonnumber)
 {
     return(SMSResponseList.errorNotSupported());
 }
Esempio n. 5
0
 /// <summary>
 /// 发送同内容的多条短信
 /// </summary>
 /// <param name="content">短信内容</param>
 /// <param name="mobile_list">目标手机号列表</param>
 /// <param name="rid">记录ID, 用于返回结果后的后续处理, 非必填</param>
 /// <param name="filter_nonnumber">是否过滤手机号中包含的非数字字符</param>
 /// <returns>发送结果</returns>
 public virtual SMSResponseList send(string content, List <string> mobile_list, string rid, bool filter_nonnumber)
 {
     return(SMSResponseList.errorNotSupported());
 }