Exemplo n.º 1
0
 public void Update(DestinyPublicMilestoneActivity?other)
 {
     if (other is null)
     {
         return;
     }
     if (ActivityHash != other.ActivityHash)
     {
         ActivityHash = other.ActivityHash;
         OnPropertyChanged(nameof(ActivityHash));
     }
     if (!ModifierHashes.DeepEqualsListNaive(other.ModifierHashes))
     {
         ModifierHashes = other.ModifierHashes;
         OnPropertyChanged(nameof(ModifierHashes));
     }
     if (!Variants.DeepEqualsList(other.Variants))
     {
         Variants = other.Variants;
         OnPropertyChanged(nameof(Variants));
     }
     if (ActivityModeHash != other.ActivityModeHash)
     {
         ActivityModeHash = other.ActivityModeHash;
         OnPropertyChanged(nameof(ActivityModeHash));
     }
     if (ActivityModeType != other.ActivityModeType)
     {
         ActivityModeType = other.ActivityModeType;
         OnPropertyChanged(nameof(ActivityModeType));
     }
 }
Exemplo n.º 2
0
 public bool DeepEquals(DestinyPublicMilestoneActivity?other)
 {
     return(other is not null &&
            ActivityHash == other.ActivityHash &&
            ModifierHashes.DeepEqualsListNaive(other.ModifierHashes) &&
            Variants.DeepEqualsList(other.Variants) &&
            ActivityModeHash == other.ActivityModeHash &&
            ActivityModeType == other.ActivityModeType);
 }