private static void FillBasicResponseInfos(XElement element, PrtgResponse result)
        {
            var version = element.Element("prtg-version");

            if (version != null)
                result.Version = version.Value;

            result.Options = ReadOptions(element.Element("options"));
        }
        public PrtgResponse Parse(string xml)
        {
            var result = new PrtgResponse();

            var xdoc = XDocument.Parse(xml);

            var root = GetRootNode(xdoc.Root);

            FillBasicResponseInfos(xdoc.Root, result);

            result.Groups.AddRange(TryReadGroups(root));

            return result;
        }
        public void Refresh()
        {
            var xml = _prtgWebClient.SensorsXml();

            _currentData = _parser.Parse(xml);
        }