namespace AsiaINFO.SMS.CMPP2
|
{
|
using System;
|
|
public class CMPP_CONNECT_RESP
|
{
|
private byte[] _AuthenticatorISMG;
|
private MessageHeader _Header;
|
private uint _Status;
|
private uint _Version;
|
public const int BodyLength = 0x15;
|
|
public CMPP_CONNECT_RESP(byte[] bytes)
|
{
|
int index = 0;
|
byte[] dst = new byte[12];
|
Buffer.BlockCopy(bytes, 0, dst, 0, dst.Length);
|
this._Header = new MessageHeader(dst);
|
index += 12;
|
this._Status = bytes[index];
|
index++;
|
this._AuthenticatorISMG = new byte[0x10];
|
Buffer.BlockCopy(bytes, 13, this._AuthenticatorISMG, 0, this._AuthenticatorISMG.Length);
|
index += 0x10;
|
this._Version = bytes[index];
|
}
|
|
public override string ToString()
|
{
|
return string.Format("Header={0} AuthenticatorISMG={1} BodyLength={2} Status={3} Version={4}", new object[] { this._Header.ToString(), this._AuthenticatorISMG, 0x15, this._Status, this._Version });
|
}
|
|
public byte[] AuthenticatorISMG
|
{
|
get
|
{
|
return this._AuthenticatorISMG;
|
}
|
}
|
|
public MessageHeader Header
|
{
|
get
|
{
|
return this._Header;
|
}
|
}
|
|
public uint Status
|
{
|
get
|
{
|
return this._Status;
|
}
|
}
|
|
public uint Version
|
{
|
get
|
{
|
return this._Version;
|
}
|
}
|
}
|
}
|