Пример #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 Equals(DestinyRecordTitleBlock input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     HasTitle == input.HasTitle ||
                     (HasTitle != null && HasTitle.Equals(input.HasTitle))
                     ) &&
                 (
                     TitlesByGender == input.TitlesByGender ||
                     (TitlesByGender != null && TitlesByGender.SequenceEqual(input.TitlesByGender))
                 ) &&
                 (
                     TitlesByGenderHash == input.TitlesByGenderHash ||
                     (TitlesByGenderHash != null && TitlesByGenderHash.SequenceEqual(input.TitlesByGenderHash))
                 ) &&
                 (
                     GildingTrackingRecordHash == input.GildingTrackingRecordHash ||
                     (GildingTrackingRecordHash.Equals(input.GildingTrackingRecordHash))
                 ));
        }
 public bool DeepEquals(RecordTitleInfo other)
 {
     return(other != null &&
            HasTitle == other.HasTitle &&
            TitlesByGender.DeepEqualsReadOnlyDictionaryWithSimpleKeyAndSimpleValue(other.TitlesByGender) &&
            TitlesByGenderHash.DeepEqualsReadOnlyDictionaryWithDefinitionKeyAndSimpleValue(other.TitlesByGenderHash) &&
            GildingTrackingRecord.DeepEquals(other.GildingTrackingRecord));
 }
Пример #4
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);
 }