Пример #1
0
 public bool DeepEquals(DestinyVendorInteractionDefinition?other)
 {
     return(other is not null &&
            InteractionIndex == other.InteractionIndex &&
            Replies.DeepEqualsList(other.Replies) &&
            VendorCategoryIndex == other.VendorCategoryIndex &&
            QuestlineItemHash == other.QuestlineItemHash &&
            SackInteractionList.DeepEqualsList(other.SackInteractionList) &&
            UiInteractionType == other.UiInteractionType &&
            InteractionType == other.InteractionType &&
            RewardBlockLabel == other.RewardBlockLabel &&
            RewardVendorCategoryIndex == other.RewardVendorCategoryIndex &&
            FlavorLineOne == other.FlavorLineOne &&
            FlavorLineTwo == other.FlavorLineTwo &&
            (HeaderDisplayProperties is not null ? HeaderDisplayProperties.DeepEquals(other.HeaderDisplayProperties) : other.HeaderDisplayProperties is null) &&
            Instructions == other.Instructions);
 }
 public bool DeepEquals(VendorInteraction other)
 {
     return(other != null &&
            InteractionIndex == other.InteractionIndex &&
            Replies.DeepEqualsReadOnlyCollections(other.Replies) &&
            VendorCategoryIndex == other.VendorCategoryIndex &&
            QuestlineItem.DeepEquals(other.QuestlineItem) &&
            SackInteractionList.DeepEqualsReadOnlyCollections(other.SackInteractionList) &&
            UiInteractionType == other.UiInteractionType &&
            InteractionType == other.InteractionType &&
            RewardBlockLabel == other.RewardBlockLabel &&
            RewardVendorCategoryIndex == other.RewardVendorCategoryIndex &&
            FlavorLineOne == other.FlavorLineOne &&
            FlavorLineTwo == other.FlavorLineTwo &&
            HeaderDisplayProperties.DeepEquals(other.HeaderDisplayProperties) &&
            Instructions == other.Instructions);
 }
        public bool Equals(DestinyVendorInteractionDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     InteractionIndex == input.InteractionIndex ||
                     (InteractionIndex.Equals(input.InteractionIndex))
                     ) &&
                 (
                     Replies == input.Replies ||
                     (Replies != null && Replies.SequenceEqual(input.Replies))
                 ) &&
                 (
                     VendorCategoryIndex == input.VendorCategoryIndex ||
                     (VendorCategoryIndex.Equals(input.VendorCategoryIndex))
                 ) &&
                 (
                     QuestlineItemHash == input.QuestlineItemHash ||
                     (QuestlineItemHash.Equals(input.QuestlineItemHash))
                 ) &&
                 (
                     SackInteractionList == input.SackInteractionList ||
                     (SackInteractionList != null && SackInteractionList.SequenceEqual(input.SackInteractionList))
                 ) &&
                 (
                     UiInteractionType == input.UiInteractionType ||
                     (UiInteractionType.Equals(input.UiInteractionType))
                 ) &&
                 (
                     InteractionType == input.InteractionType ||
                     (InteractionType != null && InteractionType.Equals(input.InteractionType))
                 ) &&
                 (
                     RewardBlockLabel == input.RewardBlockLabel ||
                     (RewardBlockLabel != null && RewardBlockLabel.Equals(input.RewardBlockLabel))
                 ) &&
                 (
                     RewardVendorCategoryIndex == input.RewardVendorCategoryIndex ||
                     (RewardVendorCategoryIndex.Equals(input.RewardVendorCategoryIndex))
                 ) &&
                 (
                     FlavorLineOne == input.FlavorLineOne ||
                     (FlavorLineOne != null && FlavorLineOne.Equals(input.FlavorLineOne))
                 ) &&
                 (
                     FlavorLineTwo == input.FlavorLineTwo ||
                     (FlavorLineTwo != null && FlavorLineTwo.Equals(input.FlavorLineTwo))
                 ) &&
                 (
                     HeaderDisplayProperties == input.HeaderDisplayProperties ||
                     (HeaderDisplayProperties != null && HeaderDisplayProperties.Equals(input.HeaderDisplayProperties))
                 ) &&
                 (
                     Instructions == input.Instructions ||
                     (Instructions != null && Instructions.Equals(input.Instructions))
                 ));
        }
Пример #4
0
 public void Update(DestinyVendorInteractionDefinition?other)
 {
     if (other is null)
     {
         return;
     }
     if (InteractionIndex != other.InteractionIndex)
     {
         InteractionIndex = other.InteractionIndex;
         OnPropertyChanged(nameof(InteractionIndex));
     }
     if (!Replies.DeepEqualsList(other.Replies))
     {
         Replies = other.Replies;
         OnPropertyChanged(nameof(Replies));
     }
     if (VendorCategoryIndex != other.VendorCategoryIndex)
     {
         VendorCategoryIndex = other.VendorCategoryIndex;
         OnPropertyChanged(nameof(VendorCategoryIndex));
     }
     if (QuestlineItemHash != other.QuestlineItemHash)
     {
         QuestlineItemHash = other.QuestlineItemHash;
         OnPropertyChanged(nameof(QuestlineItemHash));
     }
     if (!SackInteractionList.DeepEqualsList(other.SackInteractionList))
     {
         SackInteractionList = other.SackInteractionList;
         OnPropertyChanged(nameof(SackInteractionList));
     }
     if (UiInteractionType != other.UiInteractionType)
     {
         UiInteractionType = other.UiInteractionType;
         OnPropertyChanged(nameof(UiInteractionType));
     }
     if (InteractionType != other.InteractionType)
     {
         InteractionType = other.InteractionType;
         OnPropertyChanged(nameof(InteractionType));
     }
     if (RewardBlockLabel != other.RewardBlockLabel)
     {
         RewardBlockLabel = other.RewardBlockLabel;
         OnPropertyChanged(nameof(RewardBlockLabel));
     }
     if (RewardVendorCategoryIndex != other.RewardVendorCategoryIndex)
     {
         RewardVendorCategoryIndex = other.RewardVendorCategoryIndex;
         OnPropertyChanged(nameof(RewardVendorCategoryIndex));
     }
     if (FlavorLineOne != other.FlavorLineOne)
     {
         FlavorLineOne = other.FlavorLineOne;
         OnPropertyChanged(nameof(FlavorLineOne));
     }
     if (FlavorLineTwo != other.FlavorLineTwo)
     {
         FlavorLineTwo = other.FlavorLineTwo;
         OnPropertyChanged(nameof(FlavorLineTwo));
     }
     if (!HeaderDisplayProperties.DeepEquals(other.HeaderDisplayProperties))
     {
         HeaderDisplayProperties.Update(other.HeaderDisplayProperties);
         OnPropertyChanged(nameof(HeaderDisplayProperties));
     }
     if (Instructions != other.Instructions)
     {
         Instructions = other.Instructions;
         OnPropertyChanged(nameof(Instructions));
     }
 }