コード例 #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 bool Equals(DestinyReportOffensePgcrRequest input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     ReasonCategoryHashes == input.ReasonCategoryHashes ||
                     (ReasonCategoryHashes != null && ReasonCategoryHashes.SequenceEqual(input.ReasonCategoryHashes))
                     ) &&
                 (
                     ReasonHashes == input.ReasonHashes ||
                     (ReasonHashes != null && ReasonHashes.SequenceEqual(input.ReasonHashes))
                 ) &&
                 (
                     OffendingCharacterId == input.OffendingCharacterId ||
                     (OffendingCharacterId.Equals(input.OffendingCharacterId))
                 ));
        }
コード例 #3
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));
     }
 }