⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 smsinfo.cs

📁 usb-com for sms 自己开发的类 可以借鉴下
💻 CS
字号:
using System;

namespace IPP.SMS
{
	/// <summary>
	/// Summary description for SMSInfo.
	/// </summary>
	public class SMSInfo : IComparable
	{
		public SMSInfo()
		{
			Init();
		}
		public int SysNo;
		public string CellNumber;
		public string SMSContent;
		public int Priority;
		public int RetryCount;
		public int Status;
		public void Init()
		{
			SysNo = AppConst.IntNull;
			CellNumber = AppConst.StringNull;
			SMSContent = AppConst.StringNull;
			Priority = AppConst.IntNull;
			RetryCount = AppConst.IntNull;
			Status = AppConst.IntNull;
		}
		#region IComparable Members

		public int CompareTo(object obj)
		{
			SMSInfo b = obj as SMSInfo;
			if ( this.Priority > b.Priority ||
				( this.Priority == b.Priority && this.SysNo > b.SysNo )  ||
				this.Priority < b.Priority && this.SysNo > b.SysNo )
				return -1;
			else
				return 1;
		}

		#endregion
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -