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

📄 smgpbody_deliver.cs

📁 这个是基于SMPP的开发源码
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;

namespace SMGP3_0
{
	public class SMGPBody_Deliver : SMGPBody
	{
		public override UInt32 PackID
		{
			get { return 0x00000003; }
		}

		public SMGPBody_Deliver()
		{
			Add(new SMPP.Variable.Binary(10));// 0	MsgID
			Add(new SMPP.Variable.Integer8());// 1	IsReport
			Add(new SMPP.Variable.Encoding());// 2	MsgFormat
			Add(new SMPP.Variable.String(14));// 3	RecvTime
			Add(new SMPP.Variable.String(21));// 4	SrcTermID
			Add(new SMPP.Variable.String(21));// 5	DestTermID
			Add(new SMPP.Variable.Integer8());// 6	MsgLength
			Add(new SMPP.Variable.VARBinary(6));// 7	MsgContent
			Add(new SMPP.Variable.Binary(8));// 8	Reserve

			Add(new SMPP.TLVPack());// 9	TLVFields
		}

		/// <summary>
		/// 短消息流水号
		/// </summary>
		public byte[] MsgID
		{
			get
			{
				return (this[0] as SMPP.Variable.Binary).Value;
			}
			set
			{
				(this[0] as SMPP.Variable.Binary).Value = value;
			}
		}

		/// <summary>
		/// 是否为状态报告
		/// </summary>
		public byte IsReport
		{
			get
			{
				return (this[1] as SMPP.Variable.Integer8).Value;
			}
			set
			{
				(this[1] as SMPP.Variable.Integer8).Value = value;
			}
		}

		/// <summary>
		/// 短消息格式
		/// </summary>
		public byte MsgFormat
		{
			get
			{
				return (this[2] as SMPP.Variable.Encoding).Value;
			}
			set
			{
				(this[2] as SMPP.Variable.Encoding).Value = value;
			}
		}

		/// <summary>
		/// 短消息接收时间
		/// </summary>
		public string RecvTime
		{
			get
			{
				return (this[3] as SMPP.Variable.String).Value;
			}
			set
			{
				(this[3] as SMPP.Variable.String).Value = value;
			}
		}

		/// <summary>
		/// 短消息发送号码
		/// </summary>
		public string SrcTermID
		{
			get
			{
				return (this[4] as SMPP.Variable.String).Value;
			}
			set
			{
				(this[4] as SMPP.Variable.String).Value = value;
			}
		}

		/// <summary>
		/// 短消息接收号码
		/// </summary>
		public string DestTermID
		{
			get
			{
				return (this[5] as SMPP.Variable.String).Value;
			}
			set
			{
				(this[5] as SMPP.Variable.String).Value = value;
			}
		}

		/// <summary>
		/// 短消息长度
		/// </summary>
		public byte MsgLength
		{
			get
			{
				return (this[6] as SMPP.Variable.Integer8).Value;
			}
			set
			{
				(this[6] as SMPP.Variable.Integer8).Value = value;
			}
		}

		/// <summary>
		/// 短消息内容
		/// </summary>
		public byte[] MsgContent
		{
			get
			{
				return (this[7] as SMPP.Variable.VARBinary).Value;
			}
			set
			{
				(this[7] as SMPP.Variable.VARBinary).Value = value;
			}
		}

		/// <summary>
		/// 保留
		/// </summary>
		public byte[] Reserve
		{
			get
			{
				return (this[8] as SMPP.Variable.Binary).Value;
			}
			set
			{
				(this[8] as SMPP.Variable.Binary).Value = value;
			}
		}

		/// <summary>
		/// 可选参数
		/// </summary>
		public SMPP.TLVPack TLVFields
		{
			get
			{
				return this[9] as SMPP.TLVPack;
			}
		}

	}
}

⌨️ 快捷键说明

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