public void Update(DestinyCharacterActivitiesComponent?other) { if (other is null) { return; } if (DateActivityStarted != other.DateActivityStarted) { DateActivityStarted = other.DateActivityStarted; OnPropertyChanged(nameof(DateActivityStarted)); } if (!AvailableActivities.DeepEqualsList(other.AvailableActivities)) { AvailableActivities = other.AvailableActivities; OnPropertyChanged(nameof(AvailableActivities)); } if (CurrentActivityHash != other.CurrentActivityHash) { CurrentActivityHash = other.CurrentActivityHash; OnPropertyChanged(nameof(CurrentActivityHash)); } if (CurrentActivityModeHash != other.CurrentActivityModeHash) { CurrentActivityModeHash = other.CurrentActivityModeHash; OnPropertyChanged(nameof(CurrentActivityModeHash)); } if (CurrentActivityModeType != other.CurrentActivityModeType) { CurrentActivityModeType = other.CurrentActivityModeType; OnPropertyChanged(nameof(CurrentActivityModeType)); } if (!CurrentActivityModeHashes.DeepEqualsListNaive(other.CurrentActivityModeHashes)) { CurrentActivityModeHashes = other.CurrentActivityModeHashes; OnPropertyChanged(nameof(CurrentActivityModeHashes)); } if (!CurrentActivityModeTypes.DeepEqualsListNaive(other.CurrentActivityModeTypes)) { CurrentActivityModeTypes = other.CurrentActivityModeTypes; OnPropertyChanged(nameof(CurrentActivityModeTypes)); } if (CurrentPlaylistActivityHash != other.CurrentPlaylistActivityHash) { CurrentPlaylistActivityHash = other.CurrentPlaylistActivityHash; OnPropertyChanged(nameof(CurrentPlaylistActivityHash)); } if (LastCompletedStoryHash != other.LastCompletedStoryHash) { LastCompletedStoryHash = other.LastCompletedStoryHash; OnPropertyChanged(nameof(LastCompletedStoryHash)); } }
public bool DeepEquals(DestinyCharacterActivitiesComponent?other) { return(other is not null && DateActivityStarted == other.DateActivityStarted && AvailableActivities.DeepEqualsList(other.AvailableActivities) && CurrentActivityHash == other.CurrentActivityHash && CurrentActivityModeHash == other.CurrentActivityModeHash && CurrentActivityModeType == other.CurrentActivityModeType && CurrentActivityModeHashes.DeepEqualsListNaive(other.CurrentActivityModeHashes) && CurrentActivityModeTypes.DeepEqualsListNaive(other.CurrentActivityModeTypes) && CurrentPlaylistActivityHash == other.CurrentPlaylistActivityHash && LastCompletedStoryHash == other.LastCompletedStoryHash); }
public bool Equals(DestinyCharacterActivitiesComponent input) { if (input == null) { return(false); } return (( DateActivityStarted == input.DateActivityStarted || (DateActivityStarted != null && DateActivityStarted.Equals(input.DateActivityStarted)) ) && ( AvailableActivities == input.AvailableActivities || (AvailableActivities != null && AvailableActivities.SequenceEqual(input.AvailableActivities)) ) && ( CurrentActivityHash == input.CurrentActivityHash || (CurrentActivityHash.Equals(input.CurrentActivityHash)) ) && ( CurrentActivityModeHash == input.CurrentActivityModeHash || (CurrentActivityModeHash.Equals(input.CurrentActivityModeHash)) ) && ( CurrentActivityModeType == input.CurrentActivityModeType || (CurrentActivityModeType.Equals(input.CurrentActivityModeType)) ) && ( CurrentActivityModeHashes == input.CurrentActivityModeHashes || (CurrentActivityModeHashes != null && CurrentActivityModeHashes.SequenceEqual(input.CurrentActivityModeHashes)) ) && ( CurrentActivityModeTypes == input.CurrentActivityModeTypes || (CurrentActivityModeTypes != null && CurrentActivityModeTypes.SequenceEqual(input.CurrentActivityModeTypes)) ) && ( CurrentPlaylistActivityHash == input.CurrentPlaylistActivityHash || (CurrentPlaylistActivityHash.Equals(input.CurrentPlaylistActivityHash)) ) && ( LastCompletedStoryHash == input.LastCompletedStoryHash || (LastCompletedStoryHash.Equals(input.LastCompletedStoryHash)) )); }