示例#1
0
 public bool DeepEquals(DestinyActivityModeDefinition?other)
 {
     return(other is not null &&
            (DisplayProperties is not null ? DisplayProperties.DeepEquals(other.DisplayProperties) : other.DisplayProperties is null) &&
            PgcrImage == other.PgcrImage &&
            ModeType == other.ModeType &&
            ActivityModeCategory == other.ActivityModeCategory &&
            IsTeamBased == other.IsTeamBased &&
            IsAggregateMode == other.IsAggregateMode &&
            ParentHashes.DeepEqualsListNaive(other.ParentHashes) &&
            FriendlyName == other.FriendlyName &&
            ActivityModeMappings.DeepEqualsDictionaryNaive(other.ActivityModeMappings) &&
            Display == other.Display &&
            Order == other.Order &&
            Hash == other.Hash &&
            Index == other.Index &&
            Redacted == other.Redacted);
 }
示例#2
0
 public bool DeepEquals(DestinyActivityModeDefinition other)
 {
     return(other != null &&
            ActivityModeCategory == other.ActivityModeCategory &&
            ActivityModeMappings.DeepEqualsReadOnlyDictionaryWithDefinitionKeyAndSimpleValue(other.ActivityModeMappings) &&
            Display == other.Display &&
            DisplayProperties.DeepEquals(other.DisplayProperties) &&
            FriendlyName == other.FriendlyName &&
            IsAggregateMode == other.IsAggregateMode &&
            IsTeamBased == other.IsTeamBased &&
            ModeType == other.ModeType &&
            Order == other.Order &&
            ParentModes.DeepEqualsReadOnlyCollections(other.ParentModes) &&
            PgcrImage == other.PgcrImage &&
            SupportsFeedFiltering == other.SupportsFeedFiltering &&
            Tier == other.Tier &&
            Blacklisted == other.Blacklisted &&
            Hash == other.Hash &&
            Index == other.Index &&
            Redacted == other.Redacted);
 }
示例#3
0
 public void Update(DestinyActivityModeDefinition?other)
 {
     if (other is null)
     {
         return;
     }
     if (!DisplayProperties.DeepEquals(other.DisplayProperties))
     {
         DisplayProperties.Update(other.DisplayProperties);
         OnPropertyChanged(nameof(DisplayProperties));
     }
     if (PgcrImage != other.PgcrImage)
     {
         PgcrImage = other.PgcrImage;
         OnPropertyChanged(nameof(PgcrImage));
     }
     if (ModeType != other.ModeType)
     {
         ModeType = other.ModeType;
         OnPropertyChanged(nameof(ModeType));
     }
     if (ActivityModeCategory != other.ActivityModeCategory)
     {
         ActivityModeCategory = other.ActivityModeCategory;
         OnPropertyChanged(nameof(ActivityModeCategory));
     }
     if (IsTeamBased != other.IsTeamBased)
     {
         IsTeamBased = other.IsTeamBased;
         OnPropertyChanged(nameof(IsTeamBased));
     }
     if (IsAggregateMode != other.IsAggregateMode)
     {
         IsAggregateMode = other.IsAggregateMode;
         OnPropertyChanged(nameof(IsAggregateMode));
     }
     if (!ParentHashes.DeepEqualsListNaive(other.ParentHashes))
     {
         ParentHashes = other.ParentHashes;
         OnPropertyChanged(nameof(ParentHashes));
     }
     if (FriendlyName != other.FriendlyName)
     {
         FriendlyName = other.FriendlyName;
         OnPropertyChanged(nameof(FriendlyName));
     }
     if (!ActivityModeMappings.DeepEqualsDictionaryNaive(other.ActivityModeMappings))
     {
         ActivityModeMappings = other.ActivityModeMappings;
         OnPropertyChanged(nameof(ActivityModeMappings));
     }
     if (Display != other.Display)
     {
         Display = other.Display;
         OnPropertyChanged(nameof(Display));
     }
     if (Order != other.Order)
     {
         Order = other.Order;
         OnPropertyChanged(nameof(Order));
     }
     if (Hash != other.Hash)
     {
         Hash = other.Hash;
         OnPropertyChanged(nameof(Hash));
     }
     if (Index != other.Index)
     {
         Index = other.Index;
         OnPropertyChanged(nameof(Index));
     }
     if (Redacted != other.Redacted)
     {
         Redacted = other.Redacted;
         OnPropertyChanged(nameof(Redacted));
     }
 }
        public bool Equals(DestinyActivityModeDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     DisplayProperties == input.DisplayProperties ||
                     (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties))
                     ) &&
                 (
                     PgcrImage == input.PgcrImage ||
                     (PgcrImage != null && PgcrImage.Equals(input.PgcrImage))
                 ) &&
                 (
                     ModeType == input.ModeType ||
                     (ModeType != null && ModeType.Equals(input.ModeType))
                 ) &&
                 (
                     ActivityModeCategory == input.ActivityModeCategory ||
                     (ActivityModeCategory != null && ActivityModeCategory.Equals(input.ActivityModeCategory))
                 ) &&
                 (
                     IsTeamBased == input.IsTeamBased ||
                     (IsTeamBased != null && IsTeamBased.Equals(input.IsTeamBased))
                 ) &&
                 (
                     IsAggregateMode == input.IsAggregateMode ||
                     (IsAggregateMode != null && IsAggregateMode.Equals(input.IsAggregateMode))
                 ) &&
                 (
                     ParentHashes == input.ParentHashes ||
                     (ParentHashes != null && ParentHashes.SequenceEqual(input.ParentHashes))
                 ) &&
                 (
                     FriendlyName == input.FriendlyName ||
                     (FriendlyName != null && FriendlyName.Equals(input.FriendlyName))
                 ) &&
                 (
                     ActivityModeMappings == input.ActivityModeMappings ||
                     (ActivityModeMappings != null && ActivityModeMappings.SequenceEqual(input.ActivityModeMappings))
                 ) &&
                 (
                     Display == input.Display ||
                     (Display != null && Display.Equals(input.Display))
                 ) &&
                 (
                     Order == input.Order ||
                     (Order.Equals(input.Order))
                 ) &&
                 (
                     Hash == input.Hash ||
                     (Hash.Equals(input.Hash))
                 ) &&
                 (
                     Index == input.Index ||
                     (Index.Equals(input.Index))
                 ) &&
                 (
                     Redacted == input.Redacted ||
                     (Redacted != null && Redacted.Equals(input.Redacted))
                 ));
        }