using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AsiaINFO.SMS.DBFactory { public class SMS_MT_INFO { // Fields private string guid; private char mobileNoType; private int msgSub; private int msgSum; private string phoneNumber; private string sendTime; private string smsContent; private string subNumber; private string wapPushAddr; private string _LONG_SERV_NO; private string _SERV_CODE; private string _NEED_DOWN_TIME; private int _batchid; private int _priority; public int BatchID { get { return _batchid; } set { _batchid = value; } } public string NEED_DOWN_TIME { get { return _NEED_DOWN_TIME; } set { _NEED_DOWN_TIME = value; } } /// /// 与Msg_Src及Servcie_id相同,如为hs0055 /// public string SERV_CODE { get { return _SERV_CODE; } set { _SERV_CODE = value; } } public string LONG_SERV_NO { get { return _LONG_SERV_NO; } set { _LONG_SERV_NO = value; } } // Methods public SMS_MT_INFO() { } /// /// /// /// /// /// /// /// 子号 /// /// 发送时间 /// /// /// 接入号 /// 需要下发的时间 /// 与Msg_Src,Service_id相同 public SMS_MT_INFO(int priority,int batchid, string guid, string phoneNumber, char mobileNoType, string smsContent, string subNumber, string wapPushAddr, string sendTime, int msgSum, int msgSub, string LONG_SERV_NO = "", string NEED_DOWN_TIME = "", string SER_CODE = "") { this.guid = guid; this.phoneNumber = phoneNumber; this.mobileNoType = mobileNoType; this.smsContent = smsContent; this.subNumber = subNumber; this.wapPushAddr = wapPushAddr; this.sendTime = sendTime; this.msgSum = msgSum; this.msgSub = msgSub; this.BatchID = batchid; this.Priority = priority; this._LONG_SERV_NO = string.IsNullOrEmpty(LONG_SERV_NO) ? System.Configuration.ConfigurationManager.AppSettings["LONGSERVNO"].ToString() : LONG_SERV_NO; this._LONG_SERV_NO = string.IsNullOrEmpty(subNumber) ? _LONG_SERV_NO : string.Format("{0}{1}", _LONG_SERV_NO, subNumber); this.SERV_CODE = string.IsNullOrEmpty(SER_CODE) ? System.Configuration.ConfigurationManager.AppSettings["Service_Id"].ToString() : SER_CODE; this._NEED_DOWN_TIME = string.IsNullOrEmpty(NEED_DOWN_TIME) ? DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") : NEED_DOWN_TIME; } // Properties public string Guid { get { return this.guid; } set { this.guid = value; } } public char MobileNoType { get { return this.mobileNoType; } set { this.mobileNoType = value; } } public int MsgSub { get { return this.msgSub; } set { this.msgSub = value; } } public int MsgSum { get { return this.msgSum; } set { this.msgSum = value; } } public string PhoneNumber { get { return this.phoneNumber; } set { this.phoneNumber = value; } } public string SendTime { get { return this.sendTime; } set { this.sendTime = value; } } public string SmsContent { get { return this.smsContent; } set { this.smsContent = value; } } public string SubNumber { get { return this.subNumber; } set { this.subNumber = value; } } public string WapPushAddr { get { return this.wapPushAddr; } set { this.wapPushAddr = value; } } public int Priority { get { return this._priority; } set { this._priority = value; } } } }