コード例 #1
0
 public void Update(UserInfoCard?other)
 {
     if (other is null)
     {
         return;
     }
     if (SupplementalDisplayName != other.SupplementalDisplayName)
     {
         SupplementalDisplayName = other.SupplementalDisplayName;
         OnPropertyChanged(nameof(SupplementalDisplayName));
     }
     if (IconPath != other.IconPath)
     {
         IconPath = other.IconPath;
         OnPropertyChanged(nameof(IconPath));
     }
     if (CrossSaveOverride != other.CrossSaveOverride)
     {
         CrossSaveOverride = other.CrossSaveOverride;
         OnPropertyChanged(nameof(CrossSaveOverride));
     }
     if (!ApplicableMembershipTypes.DeepEqualsListNaive(other.ApplicableMembershipTypes))
     {
         ApplicableMembershipTypes = other.ApplicableMembershipTypes;
         OnPropertyChanged(nameof(ApplicableMembershipTypes));
     }
     if (IsPublic != other.IsPublic)
     {
         IsPublic = other.IsPublic;
         OnPropertyChanged(nameof(IsPublic));
     }
     if (MembershipType != other.MembershipType)
     {
         MembershipType = other.MembershipType;
         OnPropertyChanged(nameof(MembershipType));
     }
     if (MembershipId != other.MembershipId)
     {
         MembershipId = other.MembershipId;
         OnPropertyChanged(nameof(MembershipId));
     }
     if (DisplayName != other.DisplayName)
     {
         DisplayName = other.DisplayName;
         OnPropertyChanged(nameof(DisplayName));
     }
     if (BungieGlobalDisplayName != other.BungieGlobalDisplayName)
     {
         BungieGlobalDisplayName = other.BungieGlobalDisplayName;
         OnPropertyChanged(nameof(BungieGlobalDisplayName));
     }
     if (BungieGlobalDisplayNameCode != other.BungieGlobalDisplayNameCode)
     {
         BungieGlobalDisplayNameCode = other.BungieGlobalDisplayNameCode;
         OnPropertyChanged(nameof(BungieGlobalDisplayNameCode));
     }
 }
コード例 #2
0
 public bool DeepEquals(CrossSaveUserMembership?other)
 {
     return(other is not null &&
            CrossSaveOverride == other.CrossSaveOverride &&
            ApplicableMembershipTypes.DeepEqualsListNaive(other.ApplicableMembershipTypes) &&
            IsPublic == other.IsPublic &&
            MembershipType == other.MembershipType &&
            MembershipId == other.MembershipId &&
            DisplayName == other.DisplayName &&
            BungieGlobalDisplayName == other.BungieGlobalDisplayName &&
            BungieGlobalDisplayNameCode == other.BungieGlobalDisplayNameCode);
 }
コード例 #3
0
 public bool DeepEquals(UserInfoCard?other)
 {
     return(other is not null &&
            SupplementalDisplayName == other.SupplementalDisplayName &&
            IconPath == other.IconPath &&
            CrossSaveOverride == other.CrossSaveOverride &&
            ApplicableMembershipTypes.DeepEqualsListNaive(other.ApplicableMembershipTypes) &&
            IsPublic == other.IsPublic &&
            MembershipType == other.MembershipType &&
            MembershipId == other.MembershipId &&
            DisplayName == other.DisplayName &&
            BungieGlobalDisplayName == other.BungieGlobalDisplayName &&
            BungieGlobalDisplayNameCode == other.BungieGlobalDisplayNameCode);
 }
コード例 #4
0
 public bool DeepEquals(DestinyProfileUserInfoCard?other)
 {
     return(other is not null &&
            DateLastPlayed == other.DateLastPlayed &&
            IsOverridden == other.IsOverridden &&
            IsCrossSavePrimary == other.IsCrossSavePrimary &&
            (PlatformSilver is not null ? PlatformSilver.DeepEquals(other.PlatformSilver) : other.PlatformSilver is null) &&
            UnpairedGameVersions == other.UnpairedGameVersions &&
            SupplementalDisplayName == other.SupplementalDisplayName &&
            IconPath == other.IconPath &&
            CrossSaveOverride == other.CrossSaveOverride &&
            ApplicableMembershipTypes.DeepEqualsListNaive(other.ApplicableMembershipTypes) &&
            IsPublic == other.IsPublic &&
            MembershipType == other.MembershipType &&
            MembershipId == other.MembershipId &&
            DisplayName == other.DisplayName &&
            BungieGlobalDisplayName == other.BungieGlobalDisplayName &&
            BungieGlobalDisplayNameCode == other.BungieGlobalDisplayNameCode);
 }
コード例 #5
0
 public void Update(DestinyProfileUserInfoCard?other)
 {
     if (other is null)
     {
         return;
     }
     if (DateLastPlayed != other.DateLastPlayed)
     {
         DateLastPlayed = other.DateLastPlayed;
         OnPropertyChanged(nameof(DateLastPlayed));
     }
     if (IsOverridden != other.IsOverridden)
     {
         IsOverridden = other.IsOverridden;
         OnPropertyChanged(nameof(IsOverridden));
     }
     if (IsCrossSavePrimary != other.IsCrossSavePrimary)
     {
         IsCrossSavePrimary = other.IsCrossSavePrimary;
         OnPropertyChanged(nameof(IsCrossSavePrimary));
     }
     if (!PlatformSilver.DeepEquals(other.PlatformSilver))
     {
         PlatformSilver.Update(other.PlatformSilver);
         OnPropertyChanged(nameof(PlatformSilver));
     }
     if (UnpairedGameVersions != other.UnpairedGameVersions)
     {
         UnpairedGameVersions = other.UnpairedGameVersions;
         OnPropertyChanged(nameof(UnpairedGameVersions));
     }
     if (SupplementalDisplayName != other.SupplementalDisplayName)
     {
         SupplementalDisplayName = other.SupplementalDisplayName;
         OnPropertyChanged(nameof(SupplementalDisplayName));
     }
     if (IconPath != other.IconPath)
     {
         IconPath = other.IconPath;
         OnPropertyChanged(nameof(IconPath));
     }
     if (CrossSaveOverride != other.CrossSaveOverride)
     {
         CrossSaveOverride = other.CrossSaveOverride;
         OnPropertyChanged(nameof(CrossSaveOverride));
     }
     if (!ApplicableMembershipTypes.DeepEqualsListNaive(other.ApplicableMembershipTypes))
     {
         ApplicableMembershipTypes = other.ApplicableMembershipTypes;
         OnPropertyChanged(nameof(ApplicableMembershipTypes));
     }
     if (IsPublic != other.IsPublic)
     {
         IsPublic = other.IsPublic;
         OnPropertyChanged(nameof(IsPublic));
     }
     if (MembershipType != other.MembershipType)
     {
         MembershipType = other.MembershipType;
         OnPropertyChanged(nameof(MembershipType));
     }
     if (MembershipId != other.MembershipId)
     {
         MembershipId = other.MembershipId;
         OnPropertyChanged(nameof(MembershipId));
     }
     if (DisplayName != other.DisplayName)
     {
         DisplayName = other.DisplayName;
         OnPropertyChanged(nameof(DisplayName));
     }
     if (BungieGlobalDisplayName != other.BungieGlobalDisplayName)
     {
         BungieGlobalDisplayName = other.BungieGlobalDisplayName;
         OnPropertyChanged(nameof(BungieGlobalDisplayName));
     }
     if (BungieGlobalDisplayNameCode != other.BungieGlobalDisplayNameCode)
     {
         BungieGlobalDisplayNameCode = other.BungieGlobalDisplayNameCode;
         OnPropertyChanged(nameof(BungieGlobalDisplayNameCode));
     }
 }