Ejemplo n.º 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(DestinyRecordComponent?other)
 {
     return(other is not null &&
            State == other.State &&
            Objectives.DeepEqualsList(other.Objectives) &&
            IntervalObjectives.DeepEqualsList(other.IntervalObjectives) &&
            IntervalsRedeemedCount == other.IntervalsRedeemedCount &&
            CompletedCount == other.CompletedCount &&
            RewardVisibilty.DeepEqualsListNaive(other.RewardVisibilty));
 }
Ejemplo n.º 3
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));
     }
 }
 public void Update(DestinyRecordComponent?other)
 {
     if (other is null)
     {
         return;
     }
     if (State != other.State)
     {
         State = other.State;
         OnPropertyChanged(nameof(State));
     }
     if (!Objectives.DeepEqualsList(other.Objectives))
     {
         Objectives = other.Objectives;
         OnPropertyChanged(nameof(Objectives));
     }
     if (!IntervalObjectives.DeepEqualsList(other.IntervalObjectives))
     {
         IntervalObjectives = other.IntervalObjectives;
         OnPropertyChanged(nameof(IntervalObjectives));
     }
     if (IntervalsRedeemedCount != other.IntervalsRedeemedCount)
     {
         IntervalsRedeemedCount = other.IntervalsRedeemedCount;
         OnPropertyChanged(nameof(IntervalsRedeemedCount));
     }
     if (CompletedCount != other.CompletedCount)
     {
         CompletedCount = other.CompletedCount;
         OnPropertyChanged(nameof(CompletedCount));
     }
     if (!RewardVisibilty.DeepEqualsListNaive(other.RewardVisibilty))
     {
         RewardVisibilty = other.RewardVisibilty;
         OnPropertyChanged(nameof(RewardVisibilty));
     }
 }