예제 #1
0
 public bool DeepEquals(DestinyRecordIntervalBlock?other)
 {
     return(other is not null &&
            IntervalObjectives.DeepEqualsList(other.IntervalObjectives) &&
            IntervalRewards.DeepEqualsList(other.IntervalRewards) &&
            OriginalObjectiveArrayInsertionIndex == other.OriginalObjectiveArrayInsertionIndex);
 }
 public bool DeepEquals(RecordIntervalInfo other)
 {
     return(other != null &&
            IntervalObjectives.DeepEqualsReadOnlyCollections(other.IntervalObjectives) &&
            IntervalRewards.DeepEqualsReadOnlyCollections(other.IntervalRewards) &&
            IsIntervalVersionedFromNormalRecord == other.IsIntervalVersionedFromNormalRecord &&
            OriginalObjectiveArrayInsertionIndex == other.OriginalObjectiveArrayInsertionIndex);
 }
예제 #3
0
        public bool Equals(DestinyRecordIntervalBlock input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     IntervalObjectives == input.IntervalObjectives ||
                     (IntervalObjectives != null && IntervalObjectives.SequenceEqual(input.IntervalObjectives))
                     ) &&
                 (
                     IntervalRewards == input.IntervalRewards ||
                     (IntervalRewards != null && IntervalRewards.SequenceEqual(input.IntervalRewards))
                 ) &&
                 (
                     OriginalObjectiveArrayInsertionIndex == input.OriginalObjectiveArrayInsertionIndex ||
                     (OriginalObjectiveArrayInsertionIndex.Equals(input.OriginalObjectiveArrayInsertionIndex))
                 ));
        }
예제 #4
0
 public void Update(DestinyRecordIntervalBlock?other)
 {
     if (other is null)
     {
         return;
     }
     if (!IntervalObjectives.DeepEqualsList(other.IntervalObjectives))
     {
         IntervalObjectives = other.IntervalObjectives;
         OnPropertyChanged(nameof(IntervalObjectives));
     }
     if (!IntervalRewards.DeepEqualsList(other.IntervalRewards))
     {
         IntervalRewards = other.IntervalRewards;
         OnPropertyChanged(nameof(IntervalRewards));
     }
     if (OriginalObjectiveArrayInsertionIndex != other.OriginalObjectiveArrayInsertionIndex)
     {
         OriginalObjectiveArrayInsertionIndex = other.OriginalObjectiveArrayInsertionIndex;
         OnPropertyChanged(nameof(OriginalObjectiveArrayInsertionIndex));
     }
 }