using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LYFZ.WinicSmsInterface { /// /// WebService方式短信发送接口 短信发送记录查询返回信息 /// public class SmsWebServiceSendReturnInfo { public SmsWebServiceSendReturnInfo(string returnInfoStr) { this.SourceString = returnInfoStr; if (returnInfoStr != "") { string[] returnInfos = returnInfoStr.Split('/'); try { this.Username = returnInfos[0]; } catch { this.ReturnStatus = returnInfoStr; } try { this.Sid =returnInfos[1]; } catch { this.ReturnStatus = returnInfoStr; } try { this.SMSContent = returnInfos[2]; } catch { } try { this.SendCount = Convert.ToInt32(returnInfos[3]); } catch { } try { this.ReturnStatus ="发送"+ returnInfos[4]; } catch { } } } private string _SourceString = ""; /// /// 源字符串 /// public string SourceString { get { return _SourceString; } set { _SourceString = value; } } private string _Username = ""; /// ///用户名 /// public string Username { get { return _Username; } set { _Username = value; } } string _Sid = ""; /// /// 短信编号 /// public string Sid { get { return _Sid; } set { _Sid = value; } } string _SMSContent = ""; /// /// 短信内容 /// public string SMSContent { get { return _SMSContent; } set { _SMSContent = value; } } int _SendCount = 0; /// /// 发送短信条数 /// public int SendCount { get { return _SendCount; } set { _SendCount = value; } } string _ReturnStatus = ""; /// /// 返回发送状态 /// public string ReturnStatus { get { return _ReturnStatus; } set { _ReturnStatus = value; } } } }