コード例 #1
0
 public bool DeepEquals(DestinyReportOffensePgcrRequest?other)
 {
     return(other is not null &&
            ReasonCategoryHashes.DeepEqualsListNaive(other.ReasonCategoryHashes) &&
            ReasonHashes.DeepEqualsListNaive(other.ReasonHashes) &&
            OffendingCharacterId == other.OffendingCharacterId);
 }
コード例 #2
0
 public void Update(DestinyReportOffensePgcrRequest?other)
 {
     if (other is null)
     {
         return;
     }
     if (!ReasonCategoryHashes.DeepEqualsListNaive(other.ReasonCategoryHashes))
     {
         ReasonCategoryHashes = other.ReasonCategoryHashes;
         OnPropertyChanged(nameof(ReasonCategoryHashes));
     }
     if (!ReasonHashes.DeepEqualsListNaive(other.ReasonHashes))
     {
         ReasonHashes = other.ReasonHashes;
         OnPropertyChanged(nameof(ReasonHashes));
     }
     if (OffendingCharacterId != other.OffendingCharacterId)
     {
         OffendingCharacterId = other.OffendingCharacterId;
         OnPropertyChanged(nameof(OffendingCharacterId));
     }
 }