Ejemplo n.º 1
0
 public bool DeepEquals(DestinyActivityGraphNodeDefinition?other)
 {
     return(other is not null &&
            NodeId == other.NodeId &&
            (OverrideDisplay is not null ? OverrideDisplay.DeepEquals(other.OverrideDisplay) : other.OverrideDisplay is null) &&
            (Position is not null ? Position.DeepEquals(other.Position) : other.Position is null) &&
            FeaturingStates.DeepEqualsList(other.FeaturingStates) &&
            Activities.DeepEqualsList(other.Activities) &&
            States.DeepEqualsList(other.States));
 }
Ejemplo n.º 2
0
 public void Update(DestinyActivityGraphNodeDefinition?other)
 {
     if (other is null)
     {
         return;
     }
     if (NodeId != other.NodeId)
     {
         NodeId = other.NodeId;
         OnPropertyChanged(nameof(NodeId));
     }
     if (!OverrideDisplay.DeepEquals(other.OverrideDisplay))
     {
         OverrideDisplay.Update(other.OverrideDisplay);
         OnPropertyChanged(nameof(OverrideDisplay));
     }
     if (!Position.DeepEquals(other.Position))
     {
         Position.Update(other.Position);
         OnPropertyChanged(nameof(Position));
     }
     if (!FeaturingStates.DeepEqualsList(other.FeaturingStates))
     {
         FeaturingStates = other.FeaturingStates;
         OnPropertyChanged(nameof(FeaturingStates));
     }
     if (!Activities.DeepEqualsList(other.Activities))
     {
         Activities = other.Activities;
         OnPropertyChanged(nameof(Activities));
     }
     if (!States.DeepEqualsList(other.States))
     {
         States = other.States;
         OnPropertyChanged(nameof(States));
     }
 }