Exemple #1
0
 public bool DeepEquals(CoreSettingsConfiguration?other)
 {
     return(other is not null &&
            Environment == other.Environment &&
            Systems.DeepEqualsDictionary(other.Systems) &&
            IgnoreReasons.DeepEqualsList(other.IgnoreReasons) &&
            ForumCategories.DeepEqualsList(other.ForumCategories) &&
            GroupAvatars.DeepEqualsList(other.GroupAvatars) &&
            DestinyMembershipTypes.DeepEqualsList(other.DestinyMembershipTypes) &&
            RecruitmentPlatformTags.DeepEqualsList(other.RecruitmentPlatformTags) &&
            RecruitmentMiscTags.DeepEqualsList(other.RecruitmentMiscTags) &&
            RecruitmentActivities.DeepEqualsList(other.RecruitmentActivities) &&
            UserContentLocales.DeepEqualsList(other.UserContentLocales) &&
            SystemContentLocales.DeepEqualsList(other.SystemContentLocales) &&
            ClanBannerDecals.DeepEqualsList(other.ClanBannerDecals) &&
            ClanBannerDecalColors.DeepEqualsList(other.ClanBannerDecalColors) &&
            ClanBannerGonfalons.DeepEqualsList(other.ClanBannerGonfalons) &&
            ClanBannerGonfalonColors.DeepEqualsList(other.ClanBannerGonfalonColors) &&
            ClanBannerGonfalonDetails.DeepEqualsList(other.ClanBannerGonfalonDetails) &&
            ClanBannerGonfalonDetailColors.DeepEqualsList(other.ClanBannerGonfalonDetailColors) &&
            ClanBannerStandards.DeepEqualsList(other.ClanBannerStandards) &&
            (Destiny2CoreSettings is not null ? Destiny2CoreSettings.DeepEquals(other.Destiny2CoreSettings) : other.Destiny2CoreSettings is null) &&
            (EmailSettings is not null ? EmailSettings.DeepEquals(other.EmailSettings) : other.EmailSettings is null) &&
            FireteamActivities.DeepEqualsList(other.FireteamActivities));
 }
Exemple #2
0
 public void Update(CoreSettingsConfiguration?other)
 {
     if (other is null)
     {
         return;
     }
     if (Environment != other.Environment)
     {
         Environment = other.Environment;
         OnPropertyChanged(nameof(Environment));
     }
     if (!Systems.DeepEqualsDictionary(other.Systems))
     {
         Systems = other.Systems;
         OnPropertyChanged(nameof(Systems));
     }
     if (!IgnoreReasons.DeepEqualsList(other.IgnoreReasons))
     {
         IgnoreReasons = other.IgnoreReasons;
         OnPropertyChanged(nameof(IgnoreReasons));
     }
     if (!ForumCategories.DeepEqualsList(other.ForumCategories))
     {
         ForumCategories = other.ForumCategories;
         OnPropertyChanged(nameof(ForumCategories));
     }
     if (!GroupAvatars.DeepEqualsList(other.GroupAvatars))
     {
         GroupAvatars = other.GroupAvatars;
         OnPropertyChanged(nameof(GroupAvatars));
     }
     if (!DestinyMembershipTypes.DeepEqualsList(other.DestinyMembershipTypes))
     {
         DestinyMembershipTypes = other.DestinyMembershipTypes;
         OnPropertyChanged(nameof(DestinyMembershipTypes));
     }
     if (!RecruitmentPlatformTags.DeepEqualsList(other.RecruitmentPlatformTags))
     {
         RecruitmentPlatformTags = other.RecruitmentPlatformTags;
         OnPropertyChanged(nameof(RecruitmentPlatformTags));
     }
     if (!RecruitmentMiscTags.DeepEqualsList(other.RecruitmentMiscTags))
     {
         RecruitmentMiscTags = other.RecruitmentMiscTags;
         OnPropertyChanged(nameof(RecruitmentMiscTags));
     }
     if (!RecruitmentActivities.DeepEqualsList(other.RecruitmentActivities))
     {
         RecruitmentActivities = other.RecruitmentActivities;
         OnPropertyChanged(nameof(RecruitmentActivities));
     }
     if (!UserContentLocales.DeepEqualsList(other.UserContentLocales))
     {
         UserContentLocales = other.UserContentLocales;
         OnPropertyChanged(nameof(UserContentLocales));
     }
     if (!SystemContentLocales.DeepEqualsList(other.SystemContentLocales))
     {
         SystemContentLocales = other.SystemContentLocales;
         OnPropertyChanged(nameof(SystemContentLocales));
     }
     if (!ClanBannerDecals.DeepEqualsList(other.ClanBannerDecals))
     {
         ClanBannerDecals = other.ClanBannerDecals;
         OnPropertyChanged(nameof(ClanBannerDecals));
     }
     if (!ClanBannerDecalColors.DeepEqualsList(other.ClanBannerDecalColors))
     {
         ClanBannerDecalColors = other.ClanBannerDecalColors;
         OnPropertyChanged(nameof(ClanBannerDecalColors));
     }
     if (!ClanBannerGonfalons.DeepEqualsList(other.ClanBannerGonfalons))
     {
         ClanBannerGonfalons = other.ClanBannerGonfalons;
         OnPropertyChanged(nameof(ClanBannerGonfalons));
     }
     if (!ClanBannerGonfalonColors.DeepEqualsList(other.ClanBannerGonfalonColors))
     {
         ClanBannerGonfalonColors = other.ClanBannerGonfalonColors;
         OnPropertyChanged(nameof(ClanBannerGonfalonColors));
     }
     if (!ClanBannerGonfalonDetails.DeepEqualsList(other.ClanBannerGonfalonDetails))
     {
         ClanBannerGonfalonDetails = other.ClanBannerGonfalonDetails;
         OnPropertyChanged(nameof(ClanBannerGonfalonDetails));
     }
     if (!ClanBannerGonfalonDetailColors.DeepEqualsList(other.ClanBannerGonfalonDetailColors))
     {
         ClanBannerGonfalonDetailColors = other.ClanBannerGonfalonDetailColors;
         OnPropertyChanged(nameof(ClanBannerGonfalonDetailColors));
     }
     if (!ClanBannerStandards.DeepEqualsList(other.ClanBannerStandards))
     {
         ClanBannerStandards = other.ClanBannerStandards;
         OnPropertyChanged(nameof(ClanBannerStandards));
     }
     if (!Destiny2CoreSettings.DeepEquals(other.Destiny2CoreSettings))
     {
         Destiny2CoreSettings.Update(other.Destiny2CoreSettings);
         OnPropertyChanged(nameof(Destiny2CoreSettings));
     }
     if (!EmailSettings.DeepEquals(other.EmailSettings))
     {
         EmailSettings.Update(other.EmailSettings);
         OnPropertyChanged(nameof(EmailSettings));
     }
     if (!FireteamActivities.DeepEqualsList(other.FireteamActivities))
     {
         FireteamActivities = other.FireteamActivities;
         OnPropertyChanged(nameof(FireteamActivities));
     }
 }
Exemple #3
0
        public bool Equals(CoreSettingsConfiguration input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Environment == input.Environment ||
                     (Environment != null && Environment.Equals(input.Environment))
                     ) &&
                 (
                     Systems == input.Systems ||
                     (Systems != null && Systems.SequenceEqual(input.Systems))
                 ) &&
                 (
                     IgnoreReasons == input.IgnoreReasons ||
                     (IgnoreReasons != null && IgnoreReasons.SequenceEqual(input.IgnoreReasons))
                 ) &&
                 (
                     ForumCategories == input.ForumCategories ||
                     (ForumCategories != null && ForumCategories.SequenceEqual(input.ForumCategories))
                 ) &&
                 (
                     GroupAvatars == input.GroupAvatars ||
                     (GroupAvatars != null && GroupAvatars.SequenceEqual(input.GroupAvatars))
                 ) &&
                 (
                     DestinyMembershipTypes == input.DestinyMembershipTypes ||
                     (DestinyMembershipTypes != null && DestinyMembershipTypes.SequenceEqual(input.DestinyMembershipTypes))
                 ) &&
                 (
                     RecruitmentPlatformTags == input.RecruitmentPlatformTags ||
                     (RecruitmentPlatformTags != null && RecruitmentPlatformTags.SequenceEqual(input.RecruitmentPlatformTags))
                 ) &&
                 (
                     RecruitmentMiscTags == input.RecruitmentMiscTags ||
                     (RecruitmentMiscTags != null && RecruitmentMiscTags.SequenceEqual(input.RecruitmentMiscTags))
                 ) &&
                 (
                     RecruitmentActivities == input.RecruitmentActivities ||
                     (RecruitmentActivities != null && RecruitmentActivities.SequenceEqual(input.RecruitmentActivities))
                 ) &&
                 (
                     UserContentLocales == input.UserContentLocales ||
                     (UserContentLocales != null && UserContentLocales.SequenceEqual(input.UserContentLocales))
                 ) &&
                 (
                     SystemContentLocales == input.SystemContentLocales ||
                     (SystemContentLocales != null && SystemContentLocales.SequenceEqual(input.SystemContentLocales))
                 ) &&
                 (
                     ClanBannerDecals == input.ClanBannerDecals ||
                     (ClanBannerDecals != null && ClanBannerDecals.SequenceEqual(input.ClanBannerDecals))
                 ) &&
                 (
                     ClanBannerDecalColors == input.ClanBannerDecalColors ||
                     (ClanBannerDecalColors != null && ClanBannerDecalColors.SequenceEqual(input.ClanBannerDecalColors))
                 ) &&
                 (
                     ClanBannerGonfalons == input.ClanBannerGonfalons ||
                     (ClanBannerGonfalons != null && ClanBannerGonfalons.SequenceEqual(input.ClanBannerGonfalons))
                 ) &&
                 (
                     ClanBannerGonfalonColors == input.ClanBannerGonfalonColors ||
                     (ClanBannerGonfalonColors != null && ClanBannerGonfalonColors.SequenceEqual(input.ClanBannerGonfalonColors))
                 ) &&
                 (
                     ClanBannerGonfalonDetails == input.ClanBannerGonfalonDetails ||
                     (ClanBannerGonfalonDetails != null && ClanBannerGonfalonDetails.SequenceEqual(input.ClanBannerGonfalonDetails))
                 ) &&
                 (
                     ClanBannerGonfalonDetailColors == input.ClanBannerGonfalonDetailColors ||
                     (ClanBannerGonfalonDetailColors != null && ClanBannerGonfalonDetailColors.SequenceEqual(input.ClanBannerGonfalonDetailColors))
                 ) &&
                 (
                     ClanBannerStandards == input.ClanBannerStandards ||
                     (ClanBannerStandards != null && ClanBannerStandards.SequenceEqual(input.ClanBannerStandards))
                 ) &&
                 (
                     Destiny2CoreSettings == input.Destiny2CoreSettings ||
                     (Destiny2CoreSettings != null && Destiny2CoreSettings.Equals(input.Destiny2CoreSettings))
                 ) &&
                 (
                     EmailSettings == input.EmailSettings ||
                     (EmailSettings != null && EmailSettings.Equals(input.EmailSettings))
                 ) &&
                 (
                     FireteamActivities == input.FireteamActivities ||
                     (FireteamActivities != null && FireteamActivities.SequenceEqual(input.FireteamActivities))
                 ));
        }