namespace AlmToolkit.Model { using System.Collections.Generic; public class ComparisonNode { private static int objectCount = 1; /// /// Id of the object /// public int Id { get; } /// /// Node type of the object /// Example: Data Source, Table, Relationship, KPI /// public string NodeType { get; set; } /// /// Id of this object's parent /// public int ParentId { get; set; } /// /// Name of this object in source schema /// public string SourceName { get; set; } /// /// Name of this object in target schema /// public string TargetName { get; set; } /// /// Internal name of this object in source schema /// public string SourceInternalName { get; set; } /// /// Internal Name of this object in target schema /// public string TargetInternalName { get; set; } /// /// Indentation level of the object /// public int Level { get; set; } /// /// Status of the object compared to the source and target /// public string Status { get; set; } /// /// Current action to be performed for this object /// public string MergeAction { get; set; } /// /// Code at source /// public string SourceObjectDefinition { get; set; } /// /// Code at target /// public string TargetObjectDefinition { get; set; } /// /// Ids of the children nodes /// public List ChildNodes { get; set; } /// /// Actions that can be performed for this object /// public List AvailableActions { get; set; } /// /// To maintain if the object is to be shown on UI or not /// public bool ShowNode { get; set; } /// /// To maintain if the dropdown is disabled on the UI /// public bool DropdownDisabled { get; set; } /// /// Text mentioning why the dropdown is disabled /// public string DisableMessage { get; set; } public ComparisonNode() { Id = objectCount; objectCount = objectCount + 1; ChildNodes = new List(); } } }