namespace AsiaINFO.SMS.CMPP2
|
{
|
using System;
|
|
public class CMPP_ACTIVE_TEST_RESP
|
{
|
private MessageHeader _Header;
|
private uint _Reserved;
|
public const int Bodylength = 1;
|
|
public CMPP_ACTIVE_TEST_RESP(uint Sequence_Id)
|
{
|
this._Header = new MessageHeader(13, CMPP_Command_Id.CMPP_ACTIVE_TEST_RESP, Sequence_Id);
|
this._Reserved = 0;
|
}
|
|
public CMPP_ACTIVE_TEST_RESP(byte[] bytes)
|
{
|
int srcOffset = 0;
|
byte[] dst = new byte[12];
|
Buffer.BlockCopy(bytes, srcOffset, dst, 0, dst.Length);
|
this._Header = new MessageHeader(dst);
|
srcOffset += 12;
|
this._Reserved = bytes[srcOffset];
|
}
|
|
public byte[] ToBytes()
|
{
|
int num = 0;
|
byte[] dst = new byte[13];
|
byte[] src = new byte[12];
|
src = this._Header.ToBytes();
|
Buffer.BlockCopy(src, 0, dst, 0, src.Length);
|
num += 12;
|
dst[num++] = (byte) this.Reserved;
|
return dst;
|
}
|
|
public override string ToString()
|
{
|
return this._Header.ToString();
|
}
|
|
public MessageHeader Header
|
{
|
get
|
{
|
return this._Header;
|
}
|
}
|
|
public uint Reserved
|
{
|
get
|
{
|
return this._Reserved;
|
}
|
}
|
}
|
}
|