using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tango.BL.ValueObjects { /// /// Represents an ActionLog difference node. /// public class ActionLogDifference { /// /// Gets or sets the name of the node. /// public String Name { get; set; } /// /// Gets or sets the child nodes. /// public List Children { get; set; } /// /// Gets a value indicating whether this node children contains any differences. /// [JsonIgnore] public virtual bool HasDifference { get { return Children.Any(x => x.HasDifference); } } /// /// Initializes a new instance of the class. /// public ActionLogDifference() { Children = new List(); } /// /// Returns a that represents this instance. /// /// /// A that represents this instance. /// public override string ToString() { return $"{Name} | Children[{Children.Count}]"; } } }