public bool Equals(DestinyLinkedGraphDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Description == input.Description ||
                     (Description != null && Description.Equals(input.Description))
                     ) &&
                 (
                     Name == input.Name ||
                     (Name != null && Name.Equals(input.Name))
                 ) &&
                 (
                     UnlockExpression == input.UnlockExpression ||
                     (UnlockExpression != null && UnlockExpression.Equals(input.UnlockExpression))
                 ) &&
                 (
                     LinkedGraphId == input.LinkedGraphId ||
                     (LinkedGraphId.Equals(input.LinkedGraphId))
                 ) &&
                 (
                     LinkedGraphs == input.LinkedGraphs ||
                     (LinkedGraphs != null && LinkedGraphs.SequenceEqual(input.LinkedGraphs))
                 ) &&
                 (
                     Overview == input.Overview ||
                     (Overview != null && Overview.Equals(input.Overview))
                 ));
        }
예제 #2
0
 public bool DeepEquals(DestinyLinkedGraphDefinition?other)
 {
     return(other is not null &&
            Description == other.Description &&
            Name == other.Name &&
            (UnlockExpression is not null ? UnlockExpression.DeepEquals(other.UnlockExpression) : other.UnlockExpression is null) &&
            LinkedGraphId == other.LinkedGraphId &&
            LinkedGraphs.DeepEqualsList(other.LinkedGraphs) &&
            Overview == other.Overview);
 }
 public bool DeepEquals(ActivityGraphLinkedGraphEntry other)
 {
     return(other != null &&
            Description == other.Description &&
            Name == other.Name &&
            Overview == other.Overview &&
            LinkedGraphId == other.LinkedGraphId &&
            UnlockExpression.DeepEquals(other.UnlockExpression) &&
            LinkedGraphs.DeepEqualsReadOnlyCollections(other.LinkedGraphs));
 }
예제 #4
0
 public void Update(DestinyLinkedGraphDefinition?other)
 {
     if (other is null)
     {
         return;
     }
     if (Description != other.Description)
     {
         Description = other.Description;
         OnPropertyChanged(nameof(Description));
     }
     if (Name != other.Name)
     {
         Name = other.Name;
         OnPropertyChanged(nameof(Name));
     }
     if (!UnlockExpression.DeepEquals(other.UnlockExpression))
     {
         UnlockExpression.Update(other.UnlockExpression);
         OnPropertyChanged(nameof(UnlockExpression));
     }
     if (LinkedGraphId != other.LinkedGraphId)
     {
         LinkedGraphId = other.LinkedGraphId;
         OnPropertyChanged(nameof(LinkedGraphId));
     }
     if (!LinkedGraphs.DeepEqualsList(other.LinkedGraphs))
     {
         LinkedGraphs = other.LinkedGraphs;
         OnPropertyChanged(nameof(LinkedGraphs));
     }
     if (Overview != other.Overview)
     {
         Overview = other.Overview;
         OnPropertyChanged(nameof(Overview));
     }
 }