wzp
2021-07-28 1cd1fbd9b88e3a4c0a9f6b76947c7523c1fa2979
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
61
62
63
64
65
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;
            }
        }
    }
}