public static object Read(NetIncomingMessage message)
        {
            var pk = new MsnDialogPacket()
            {
                Lines = new NetDlgLine[message.ReadVariableInt32()]
            };

            for (int i = 0; i < pk.Lines.Length; i++)
            {
                pk.Lines[i] = new NetDlgLine()
                {
                    Voice = message.ReadString(),
                    Hash  = message.ReadUInt32()
                };
            }

            return(pk);
        }
Пример #2
0
        public static object Read(NetPacketReader message)
        {
            var pk = new MsnDialogPacket()
            {
                Lines = new NetDlgLine[(int)message.GetVariableUInt32()]
            };

            for (int i = 0; i < pk.Lines.Length; i++)
            {
                pk.Lines[i] = new NetDlgLine()
                {
                    Voice = message.GetString(),
                    Hash  = message.GetUInt()
                };
            }

            return(pk);
        }