public void AddDevicePacket(ParsedPacket packet)
        {
            ParsedDevicePacket devicePacket = null;

            if (!DevicePackets.ContainsKey(packet.ProtocolHeader))
            {
                devicePacket = new ParsedDevicePacket(packet);
                DevicePackets.Add(devicePacket.ProtocolHeader, devicePacket);
            }
            else
            {
                devicePacket = DevicePackets[packet.ProtocolHeader];
                if (devicePacket != null)
                {
                    devicePacket.AddPagePacket(packet);
                }
            }
        }
        public ParsedPagePacket FindPagePacket(ParsedPacket packet)
        {
            ParsedSitePacket sitePacket = FindSitePacket(packet.TerminalId);

            if (sitePacket == null)
            {
                return(null);
            }

            ParsedDevicePacket devicePacket = sitePacket.FindDevicePacket(packet.ProtocolHeader);

            if (devicePacket == null)
            {
                return(null);
            }

            ParsedPagePacket pagePacket = devicePacket.FindPagePacket(packet.PageNumber);


            return(pagePacket);
        }