using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; namespace Tango.SQLExaminer { [XmlRoot("VarianceReport")] public class ExaminerDataReport : ExaminerSerializedObject { [XmlAttribute("date")] public String Date { get; set; } public List Sources { get; set; } [XmlArray("Details")] public List Totals { get; set; } [XmlArray("Objects")] public List Summary { get; set; } [XmlElement("Object")] public List Details { get; set; } public ExaminerDataReport() { Sources = new List(); Totals = new List(); Summary = new List(); Details = new List(); } public bool HasDifferences { get { return Summary.Any(x => x.State == "Different"); } } } }