📄 smgpbody_login.cs
字号:
using System;
using System.Collections.Generic;
using System.Text;
namespace SMGP3_0
{
public class SMGPBody_Login : SMGPBody
{
public override UInt32 PackID
{
get { return 0x00000001; }
}
public SMGPBody_Login()
{
Add(new SMPP.Variable.String(8));
Add(new SMPP.Variable.Binary(16));
Add(new SMPP.Variable.Integer8());
Add(new SMPP.Variable.Integer32());
Add(new SMPP.Variable.Integer8());
}
/// <summary>
/// 用户账号
/// </summary>
public string ClientID
{
get
{
return (this[0] as SMPP.Variable.String).Value;
}
set
{
(this[0] as SMPP.Variable.String).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 LoginMode
{
get
{
return (this[2] as SMPP.Variable.Integer8).Value;
}
set
{
(this[2] as SMPP.Variable.Integer8).Value = value;
}
}
/// <summary>
/// 时间戳
/// </summary>
public Int32 TimeStamp
{
get
{
return (this[3] as SMPP.Variable.Integer32).Value;
}
set
{
(this[3] as SMPP.Variable.Integer32).Value = value;
}
}
/// <summary>
/// 客户端协议版本号
/// </summary>
public byte ClientVersion
{
get
{
return (this[4] as SMPP.Variable.Integer8).Value;
}
set
{
(this[4] as SMPP.Variable.Integer8).Value = value;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -