public bool Equals(DestinyLocationDefinition input) { if (input == null) { return(false); } return (( VendorHash == input.VendorHash || (VendorHash.Equals(input.VendorHash)) ) && ( LocationReleases == input.LocationReleases || (LocationReleases != null && LocationReleases.SequenceEqual(input.LocationReleases)) ) && ( Hash == input.Hash || (Hash.Equals(input.Hash)) ) && ( Index == input.Index || (Index.Equals(input.Index)) ) && ( Redacted == input.Redacted || (Redacted != null && Redacted.Equals(input.Redacted)) )); }
public void Update(DestinyLocationDefinition?other) { if (other is null) { return; } if (VendorHash != other.VendorHash) { VendorHash = other.VendorHash; OnPropertyChanged(nameof(VendorHash)); } if (!LocationReleases.DeepEqualsList(other.LocationReleases)) { LocationReleases = other.LocationReleases; OnPropertyChanged(nameof(LocationReleases)); } 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 DeepEquals(DestinyLocationDefinition?other) { return(other is not null && VendorHash == other.VendorHash && LocationReleases.DeepEqualsList(other.LocationReleases) && Hash == other.Hash && Index == other.Index && Redacted == other.Redacted); }
public bool DeepEquals(DestinyLocationDefinition other) { return(other != null && LocationReleases.DeepEqualsReadOnlyCollections(other.LocationReleases) && Vendor.DeepEquals(other.Vendor) && Blacklisted == other.Blacklisted && Hash == other.Hash && Index == other.Index && Redacted == other.Redacted); }
public override string ToString() { return($"{Hash} ({LocationReleases.Count} location releases.) {LocationReleases.LastOrDefault()?.DisplayProperties.Name}"); }