smsinfo.cs

来自「usb-com for sms 自己开发的类 可以借鉴下」· CS 代码 · 共 45 行

CS
45
字号
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 + =
减小字号Ctrl + -
显示快捷键?