コード例 #1
0
 public void Update(DestinyItemComponentSetOfint64?other)
 {
     if (other is null)
     {
         return;
     }
     if (!Instances.DeepEquals(other.Instances))
     {
         Instances.Update(other.Instances);
         OnPropertyChanged(nameof(Instances));
     }
     if (!RenderData.DeepEquals(other.RenderData))
     {
         RenderData.Update(other.RenderData);
         OnPropertyChanged(nameof(RenderData));
     }
     if (!Stats.DeepEquals(other.Stats))
     {
         Stats.Update(other.Stats);
         OnPropertyChanged(nameof(Stats));
     }
     if (!Sockets.DeepEquals(other.Sockets))
     {
         Sockets.Update(other.Sockets);
         OnPropertyChanged(nameof(Sockets));
     }
     if (!ReusablePlugs.DeepEquals(other.ReusablePlugs))
     {
         ReusablePlugs.Update(other.ReusablePlugs);
         OnPropertyChanged(nameof(ReusablePlugs));
     }
     if (!PlugObjectives.DeepEquals(other.PlugObjectives))
     {
         PlugObjectives.Update(other.PlugObjectives);
         OnPropertyChanged(nameof(PlugObjectives));
     }
     if (!TalentGrids.DeepEquals(other.TalentGrids))
     {
         TalentGrids.Update(other.TalentGrids);
         OnPropertyChanged(nameof(TalentGrids));
     }
     if (!PlugStates.DeepEquals(other.PlugStates))
     {
         PlugStates.Update(other.PlugStates);
         OnPropertyChanged(nameof(PlugStates));
     }
     if (!Objectives.DeepEquals(other.Objectives))
     {
         Objectives.Update(other.Objectives);
         OnPropertyChanged(nameof(Objectives));
     }
     if (!Perks.DeepEquals(other.Perks))
     {
         Perks.Update(other.Perks);
         OnPropertyChanged(nameof(Perks));
     }
 }
コード例 #2
0
 public bool DeepEquals(DestinyItemComponentSetOfint64?other)
 {
     return(other is not null &&
            (Instances is not null ? Instances.DeepEquals(other.Instances) : other.Instances is null) &&
            (RenderData is not null ? RenderData.DeepEquals(other.RenderData) : other.RenderData is null) &&
            (Stats is not null ? Stats.DeepEquals(other.Stats) : other.Stats is null) &&
            (Sockets is not null ? Sockets.DeepEquals(other.Sockets) : other.Sockets is null) &&
            (ReusablePlugs is not null ? ReusablePlugs.DeepEquals(other.ReusablePlugs) : other.ReusablePlugs is null) &&
            (PlugObjectives is not null ? PlugObjectives.DeepEquals(other.PlugObjectives) : other.PlugObjectives is null) &&
            (TalentGrids is not null ? TalentGrids.DeepEquals(other.TalentGrids) : other.TalentGrids is null) &&
            (PlugStates is not null ? PlugStates.DeepEquals(other.PlugStates) : other.PlugStates is null) &&
            (Objectives is not null ? Objectives.DeepEquals(other.Objectives) : other.Objectives is null) &&
            (Perks is not null ? Perks.DeepEquals(other.Perks) : other.Perks is null));
 }
コード例 #3
0
 public bool DeepEquals(DestinyItemResponse?other)
 {
     return(other is not null &&
            CharacterId == other.CharacterId &&
            (Item is not null ? Item.DeepEquals(other.Item) : other.Item is null) &&
            (Instance is not null ? Instance.DeepEquals(other.Instance) : other.Instance is null) &&
            (Objectives is not null ? Objectives.DeepEquals(other.Objectives) : other.Objectives is null) &&
            (Perks is not null ? Perks.DeepEquals(other.Perks) : other.Perks is null) &&
            (RenderData is not null ? RenderData.DeepEquals(other.RenderData) : other.RenderData is null) &&
            (Stats is not null ? Stats.DeepEquals(other.Stats) : other.Stats is null) &&
            (TalentGrid is not null ? TalentGrid.DeepEquals(other.TalentGrid) : other.TalentGrid is null) &&
            (Sockets is not null ? Sockets.DeepEquals(other.Sockets) : other.Sockets is null) &&
            (ReusablePlugs is not null ? ReusablePlugs.DeepEquals(other.ReusablePlugs) : other.ReusablePlugs is null) &&
            (PlugObjectives is not null ? PlugObjectives.DeepEquals(other.PlugObjectives) : other.PlugObjectives is null));
 }
コード例 #4
0
 public bool DeepEquals(DestinyCharacterResponse?other)
 {
     return(other is not null &&
            (Inventory is not null ? Inventory.DeepEquals(other.Inventory) : other.Inventory is null) &&
            (Character is not null ? Character.DeepEquals(other.Character) : other.Character is null) &&
            (Progressions is not null ? Progressions.DeepEquals(other.Progressions) : other.Progressions is null) &&
            (RenderData is not null ? RenderData.DeepEquals(other.RenderData) : other.RenderData is null) &&
            (Activities is not null ? Activities.DeepEquals(other.Activities) : other.Activities is null) &&
            (Equipment is not null ? Equipment.DeepEquals(other.Equipment) : other.Equipment is null) &&
            (Kiosks is not null ? Kiosks.DeepEquals(other.Kiosks) : other.Kiosks is null) &&
            (PlugSets is not null ? PlugSets.DeepEquals(other.PlugSets) : other.PlugSets is null) &&
            (PresentationNodes is not null ? PresentationNodes.DeepEquals(other.PresentationNodes) : other.PresentationNodes is null) &&
            (Records is not null ? Records.DeepEquals(other.Records) : other.Records is null) &&
            (Collectibles is not null ? Collectibles.DeepEquals(other.Collectibles) : other.Collectibles is null) &&
            (ItemComponents is not null ? ItemComponents.DeepEquals(other.ItemComponents) : other.ItemComponents is null) &&
            (UninstancedItemComponents is not null ? UninstancedItemComponents.DeepEquals(other.UninstancedItemComponents) : other.UninstancedItemComponents is null) &&
            (CurrencyLookups is not null ? CurrencyLookups.DeepEquals(other.CurrencyLookups) : other.CurrencyLookups is null));
 }
コード例 #5
0
 public void Update(DestinyCharacterResponse?other)
 {
     if (other is null)
     {
         return;
     }
     if (!Inventory.DeepEquals(other.Inventory))
     {
         Inventory.Update(other.Inventory);
         OnPropertyChanged(nameof(Inventory));
     }
     if (!Character.DeepEquals(other.Character))
     {
         Character.Update(other.Character);
         OnPropertyChanged(nameof(Character));
     }
     if (!Progressions.DeepEquals(other.Progressions))
     {
         Progressions.Update(other.Progressions);
         OnPropertyChanged(nameof(Progressions));
     }
     if (!RenderData.DeepEquals(other.RenderData))
     {
         RenderData.Update(other.RenderData);
         OnPropertyChanged(nameof(RenderData));
     }
     if (!Activities.DeepEquals(other.Activities))
     {
         Activities.Update(other.Activities);
         OnPropertyChanged(nameof(Activities));
     }
     if (!Equipment.DeepEquals(other.Equipment))
     {
         Equipment.Update(other.Equipment);
         OnPropertyChanged(nameof(Equipment));
     }
     if (!Kiosks.DeepEquals(other.Kiosks))
     {
         Kiosks.Update(other.Kiosks);
         OnPropertyChanged(nameof(Kiosks));
     }
     if (!PlugSets.DeepEquals(other.PlugSets))
     {
         PlugSets.Update(other.PlugSets);
         OnPropertyChanged(nameof(PlugSets));
     }
     if (!PresentationNodes.DeepEquals(other.PresentationNodes))
     {
         PresentationNodes.Update(other.PresentationNodes);
         OnPropertyChanged(nameof(PresentationNodes));
     }
     if (!Records.DeepEquals(other.Records))
     {
         Records.Update(other.Records);
         OnPropertyChanged(nameof(Records));
     }
     if (!Collectibles.DeepEquals(other.Collectibles))
     {
         Collectibles.Update(other.Collectibles);
         OnPropertyChanged(nameof(Collectibles));
     }
     if (!ItemComponents.DeepEquals(other.ItemComponents))
     {
         ItemComponents.Update(other.ItemComponents);
         OnPropertyChanged(nameof(ItemComponents));
     }
     if (!UninstancedItemComponents.DeepEquals(other.UninstancedItemComponents))
     {
         UninstancedItemComponents.Update(other.UninstancedItemComponents);
         OnPropertyChanged(nameof(UninstancedItemComponents));
     }
     if (!CurrencyLookups.DeepEquals(other.CurrencyLookups))
     {
         CurrencyLookups.Update(other.CurrencyLookups);
         OnPropertyChanged(nameof(CurrencyLookups));
     }
 }
コード例 #6
0
 public void Update(DestinyItemResponse?other)
 {
     if (other is null)
     {
         return;
     }
     if (CharacterId != other.CharacterId)
     {
         CharacterId = other.CharacterId;
         OnPropertyChanged(nameof(CharacterId));
     }
     if (!Item.DeepEquals(other.Item))
     {
         Item.Update(other.Item);
         OnPropertyChanged(nameof(Item));
     }
     if (!Instance.DeepEquals(other.Instance))
     {
         Instance.Update(other.Instance);
         OnPropertyChanged(nameof(Instance));
     }
     if (!Objectives.DeepEquals(other.Objectives))
     {
         Objectives.Update(other.Objectives);
         OnPropertyChanged(nameof(Objectives));
     }
     if (!Perks.DeepEquals(other.Perks))
     {
         Perks.Update(other.Perks);
         OnPropertyChanged(nameof(Perks));
     }
     if (!RenderData.DeepEquals(other.RenderData))
     {
         RenderData.Update(other.RenderData);
         OnPropertyChanged(nameof(RenderData));
     }
     if (!Stats.DeepEquals(other.Stats))
     {
         Stats.Update(other.Stats);
         OnPropertyChanged(nameof(Stats));
     }
     if (!TalentGrid.DeepEquals(other.TalentGrid))
     {
         TalentGrid.Update(other.TalentGrid);
         OnPropertyChanged(nameof(TalentGrid));
     }
     if (!Sockets.DeepEquals(other.Sockets))
     {
         Sockets.Update(other.Sockets);
         OnPropertyChanged(nameof(Sockets));
     }
     if (!ReusablePlugs.DeepEquals(other.ReusablePlugs))
     {
         ReusablePlugs.Update(other.ReusablePlugs);
         OnPropertyChanged(nameof(ReusablePlugs));
     }
     if (!PlugObjectives.DeepEquals(other.PlugObjectives))
     {
         PlugObjectives.Update(other.PlugObjectives);
         OnPropertyChanged(nameof(PlugObjectives));
     }
 }