예제 #1
0
 public void Update(DestinyRecordTitleBlock?other)
 {
     if (other is null)
     {
         return;
     }
     if (HasTitle != other.HasTitle)
     {
         HasTitle = other.HasTitle;
         OnPropertyChanged(nameof(HasTitle));
     }
     if (!TitlesByGender.DeepEqualsDictionaryNaive(other.TitlesByGender))
     {
         TitlesByGender = other.TitlesByGender;
         OnPropertyChanged(nameof(TitlesByGender));
     }
     if (!TitlesByGenderHash.DeepEqualsDictionaryNaive(other.TitlesByGenderHash))
     {
         TitlesByGenderHash = other.TitlesByGenderHash;
         OnPropertyChanged(nameof(TitlesByGenderHash));
     }
     if (GildingTrackingRecordHash != other.GildingTrackingRecordHash)
     {
         GildingTrackingRecordHash = other.GildingTrackingRecordHash;
         OnPropertyChanged(nameof(GildingTrackingRecordHash));
     }
 }
예제 #2
0
 public bool DeepEquals(DestinyRecordTitleBlock?other)
 {
     return(other is not null &&
            HasTitle == other.HasTitle &&
            TitlesByGender.DeepEqualsDictionaryNaive(other.TitlesByGender) &&
            TitlesByGenderHash.DeepEqualsDictionaryNaive(other.TitlesByGenderHash) &&
            GildingTrackingRecordHash == other.GildingTrackingRecordHash);
 }