public bool DeepEquals(GroupV2Card?other) { return(other is not null && GroupId == other.GroupId && Name == other.Name && GroupType == other.GroupType && CreationDate == other.CreationDate && About == other.About && Motto == other.Motto && MemberCount == other.MemberCount && Locale == other.Locale && MembershipOption == other.MembershipOption && Capabilities == other.Capabilities && (ClanInfo is not null ? ClanInfo.DeepEquals(other.ClanInfo) : other.ClanInfo is null) && AvatarPath == other.AvatarPath && Theme == other.Theme); }
public void Update(GroupV2Card?other) { if (other is null) { return; } if (GroupId != other.GroupId) { GroupId = other.GroupId; OnPropertyChanged(nameof(GroupId)); } if (Name != other.Name) { Name = other.Name; OnPropertyChanged(nameof(Name)); } if (GroupType != other.GroupType) { GroupType = other.GroupType; OnPropertyChanged(nameof(GroupType)); } if (CreationDate != other.CreationDate) { CreationDate = other.CreationDate; OnPropertyChanged(nameof(CreationDate)); } if (About != other.About) { About = other.About; OnPropertyChanged(nameof(About)); } if (Motto != other.Motto) { Motto = other.Motto; OnPropertyChanged(nameof(Motto)); } if (MemberCount != other.MemberCount) { MemberCount = other.MemberCount; OnPropertyChanged(nameof(MemberCount)); } if (Locale != other.Locale) { Locale = other.Locale; OnPropertyChanged(nameof(Locale)); } if (MembershipOption != other.MembershipOption) { MembershipOption = other.MembershipOption; OnPropertyChanged(nameof(MembershipOption)); } if (Capabilities != other.Capabilities) { Capabilities = other.Capabilities; OnPropertyChanged(nameof(Capabilities)); } if (!ClanInfo.DeepEquals(other.ClanInfo)) { ClanInfo.Update(other.ClanInfo); OnPropertyChanged(nameof(ClanInfo)); } if (AvatarPath != other.AvatarPath) { AvatarPath = other.AvatarPath; OnPropertyChanged(nameof(AvatarPath)); } if (Theme != other.Theme) { Theme = other.Theme; OnPropertyChanged(nameof(Theme)); } }