Esempio n. 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));
 }
Esempio n. 2
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));
     }
 }