예제 #1
0
 public bool DeepEquals(GroupV2ClanInfoAndInvestment?other)
 {
     return(other is not null &&
            D2ClanProgressions.DeepEqualsDictionary(other.D2ClanProgressions) &&
            ClanCallsign == other.ClanCallsign &&
            (ClanBannerData is not null ? ClanBannerData.DeepEquals(other.ClanBannerData) : other.ClanBannerData is null));
 }
예제 #2
0
        public bool Equals(GroupV2ClanInfoAndInvestment input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     D2ClanProgressions == input.D2ClanProgressions ||
                     (D2ClanProgressions != null && D2ClanProgressions.SequenceEqual(input.D2ClanProgressions))
                     ) &&
                 (
                     ClanCallsign == input.ClanCallsign ||
                     (ClanCallsign != null && ClanCallsign.Equals(input.ClanCallsign))
                 ) &&
                 (
                     ClanBannerData == input.ClanBannerData ||
                     (ClanBannerData != null && ClanBannerData.Equals(input.ClanBannerData))
                 ));
        }
예제 #3
0
 public void Update(GroupV2ClanInfoAndInvestment?other)
 {
     if (other is null)
     {
         return;
     }
     if (!D2ClanProgressions.DeepEqualsDictionary(other.D2ClanProgressions))
     {
         D2ClanProgressions = other.D2ClanProgressions;
         OnPropertyChanged(nameof(D2ClanProgressions));
     }
     if (ClanCallsign != other.ClanCallsign)
     {
         ClanCallsign = other.ClanCallsign;
         OnPropertyChanged(nameof(ClanCallsign));
     }
     if (!ClanBannerData.DeepEquals(other.ClanBannerData))
     {
         ClanBannerData.Update(other.ClanBannerData);
         OnPropertyChanged(nameof(ClanBannerData));
     }
 }