smgpbody_login_resp.cs

来自「这个是基于SMPP的开发源码」· CS 代码 · 共 68 行

CS
68
字号
using System;
using System.Collections.Generic;
using System.Text;

namespace SMGP3_0
{
	public class SMGPBody_Login_Resp : SMGPBody
	{
		public override UInt32 PackID
		{
			get { return 0x80000001; }
		}

		public SMGPBody_Login_Resp()
		{
			Add(new SMPP.Variable.Integer32());
			Add(new SMPP.Variable.Binary(16));
			Add(new SMPP.Variable.Integer8());
		}

		/// <summary>
		/// 返回结果
		/// </summary>
		public Int32 Status 
		{
			get
			{
				return (this[0] as SMPP.Variable.Integer32).Value;
			}
			set
			{
				(this[0] as SMPP.Variable.Integer32).Value = value;
			}
		}

		/// <summary>
		/// 客户端认证码
		/// </summary>
		public byte[] AuthenticatorClient
		{
			get
			{
				return (this[1] as SMPP.Variable.Binary).Value;
			}
			set
			{
				(this[1] as SMPP.Variable.Binary).Value = value;
			}
		}

		/// <summary>
		/// 服务器支持的最高版本号
		/// </summary>
		public byte ServerVersion
		{
			get
			{
				return (this[2] as SMPP.Variable.Integer8).Value;
			}
			set
			{
				(this[2] as SMPP.Variable.Integer8).Value = value;
			}
		}

	}
}

⌨️ 快捷键说明

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