wzp
2021-07-28 864986e4cad03f6b9bba9a7e65379db496b62a6a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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;
            }
        }
    }
}