Ejemplo n.º 1
0
 public bool DeepEquals(DestinyHistoricalStatsActivity?other)
 {
     return(other is not null &&
            ReferenceId == other.ReferenceId &&
            DirectorActivityHash == other.DirectorActivityHash &&
            InstanceId == other.InstanceId &&
            Mode == other.Mode &&
            Modes.DeepEqualsListNaive(other.Modes) &&
            IsPrivate == other.IsPrivate &&
            MembershipType == other.MembershipType);
 }
 public bool DeepEquals(DestinyHistoricalStatsDefinition?other)
 {
     return(other is not null &&
            StatId == other.StatId &&
            Group == other.Group &&
            PeriodTypes.DeepEqualsListNaive(other.PeriodTypes) &&
            Modes.DeepEqualsListNaive(other.Modes) &&
            Category == other.Category &&
            StatName == other.StatName &&
            StatNameAbbr == other.StatNameAbbr &&
            StatDescription == other.StatDescription &&
            UnitType == other.UnitType &&
            IconImage == other.IconImage &&
            MergeMethod == other.MergeMethod &&
            UnitLabel == other.UnitLabel &&
            Weight == other.Weight &&
            MedalTierHash == other.MedalTierHash);
 }
Ejemplo n.º 3
0
 public void Update(DestinyHistoricalStatsActivity?other)
 {
     if (other is null)
     {
         return;
     }
     if (ReferenceId != other.ReferenceId)
     {
         ReferenceId = other.ReferenceId;
         OnPropertyChanged(nameof(ReferenceId));
     }
     if (DirectorActivityHash != other.DirectorActivityHash)
     {
         DirectorActivityHash = other.DirectorActivityHash;
         OnPropertyChanged(nameof(DirectorActivityHash));
     }
     if (InstanceId != other.InstanceId)
     {
         InstanceId = other.InstanceId;
         OnPropertyChanged(nameof(InstanceId));
     }
     if (Mode != other.Mode)
     {
         Mode = other.Mode;
         OnPropertyChanged(nameof(Mode));
     }
     if (!Modes.DeepEqualsListNaive(other.Modes))
     {
         Modes = other.Modes;
         OnPropertyChanged(nameof(Modes));
     }
     if (IsPrivate != other.IsPrivate)
     {
         IsPrivate = other.IsPrivate;
         OnPropertyChanged(nameof(IsPrivate));
     }
     if (MembershipType != other.MembershipType)
     {
         MembershipType = other.MembershipType;
         OnPropertyChanged(nameof(MembershipType));
     }
 }
 public void Update(DestinyHistoricalStatsDefinition?other)
 {
     if (other is null)
     {
         return;
     }
     if (StatId != other.StatId)
     {
         StatId = other.StatId;
         OnPropertyChanged(nameof(StatId));
     }
     if (Group != other.Group)
     {
         Group = other.Group;
         OnPropertyChanged(nameof(Group));
     }
     if (!PeriodTypes.DeepEqualsListNaive(other.PeriodTypes))
     {
         PeriodTypes = other.PeriodTypes;
         OnPropertyChanged(nameof(PeriodTypes));
     }
     if (!Modes.DeepEqualsListNaive(other.Modes))
     {
         Modes = other.Modes;
         OnPropertyChanged(nameof(Modes));
     }
     if (Category != other.Category)
     {
         Category = other.Category;
         OnPropertyChanged(nameof(Category));
     }
     if (StatName != other.StatName)
     {
         StatName = other.StatName;
         OnPropertyChanged(nameof(StatName));
     }
     if (StatNameAbbr != other.StatNameAbbr)
     {
         StatNameAbbr = other.StatNameAbbr;
         OnPropertyChanged(nameof(StatNameAbbr));
     }
     if (StatDescription != other.StatDescription)
     {
         StatDescription = other.StatDescription;
         OnPropertyChanged(nameof(StatDescription));
     }
     if (UnitType != other.UnitType)
     {
         UnitType = other.UnitType;
         OnPropertyChanged(nameof(UnitType));
     }
     if (IconImage != other.IconImage)
     {
         IconImage = other.IconImage;
         OnPropertyChanged(nameof(IconImage));
     }
     if (MergeMethod != other.MergeMethod)
     {
         MergeMethod = other.MergeMethod;
         OnPropertyChanged(nameof(MergeMethod));
     }
     if (UnitLabel != other.UnitLabel)
     {
         UnitLabel = other.UnitLabel;
         OnPropertyChanged(nameof(UnitLabel));
     }
     if (Weight != other.Weight)
     {
         Weight = other.Weight;
         OnPropertyChanged(nameof(Weight));
     }
     if (MedalTierHash != other.MedalTierHash)
     {
         MedalTierHash = other.MedalTierHash;
         OnPropertyChanged(nameof(MedalTierHash));
     }
 }