protected override ConvertedTimes FromString <ConvertedTimes> (string result) { var xml = new XmlDocument(); xml.LoadXml(result); var utc = xml.SelectSingleNode("data/utc/time"); var locations = xml.GetElementsByTagName("location"); var locationList = new List <Location>(); TADTime tad = new TADTime(); if (utc != null) { tad = (TADTime)utc; } if (locations != null) { foreach (XmlNode location in locations) { locationList.Add((Location)location); } } var instance = Activator.CreateInstance(typeof(ConvertedTimes), new object[] { locationList, tad }); return((ConvertedTimes)instance); }
public ConvertedTimes(IList <Location> locations, TADTime utc) { Utc = utc; Locations = locations; }