Exemple #1
0
 public bool DeepEquals(DestinyLinkedProfilesResponse?other)
 {
     return(other is not null &&
            Profiles.DeepEqualsList(other.Profiles) &&
            (BnetMembership is not null ? BnetMembership.DeepEquals(other.BnetMembership) : other.BnetMembership is null) &&
            ProfilesWithErrors.DeepEqualsList(other.ProfilesWithErrors));
 }
Exemple #2
0
        public bool Equals(DestinyLinkedProfilesResponse input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Profiles == input.Profiles ||
                     (Profiles != null && Profiles.SequenceEqual(input.Profiles))
                     ) &&
                 (
                     BnetMembership == input.BnetMembership ||
                     (BnetMembership != null && BnetMembership.Equals(input.BnetMembership))
                 ) &&
                 (
                     ProfilesWithErrors == input.ProfilesWithErrors ||
                     (ProfilesWithErrors != null && ProfilesWithErrors.SequenceEqual(input.ProfilesWithErrors))
                 ));
        }
Exemple #3
0
 public void Update(DestinyLinkedProfilesResponse?other)
 {
     if (other is null)
     {
         return;
     }
     if (!Profiles.DeepEqualsList(other.Profiles))
     {
         Profiles = other.Profiles;
         OnPropertyChanged(nameof(Profiles));
     }
     if (!BnetMembership.DeepEquals(other.BnetMembership))
     {
         BnetMembership.Update(other.BnetMembership);
         OnPropertyChanged(nameof(BnetMembership));
     }
     if (!ProfilesWithErrors.DeepEqualsList(other.ProfilesWithErrors))
     {
         ProfilesWithErrors = other.ProfilesWithErrors;
         OnPropertyChanged(nameof(ProfilesWithErrors));
     }
 }