public BidProcessingResults Combine(BidProcessingResults subProcessingResults) { return(new BidProcessingResults(SuccessBids.Concat(subProcessingResults.SuccessBids), FailedBids.Concat(subProcessingResults.FailedBids), LeagueActions.Concat(subProcessingResults.LeagueActions), subProcessingResults.UpdatedPublishers, PublisherGames.Concat(subProcessingResults.PublisherGames))); }
public ActionProcessingResults Combine(ActionProcessingResults subProcessingResults) { return(new ActionProcessingResults( SuccessBids.Concat(subProcessingResults.SuccessBids).DistinctBy(x => x.PickupBid.BidID), FailedBids.Concat(subProcessingResults.FailedBids).DistinctBy(x => x.PickupBid.BidID), SuccessDrops.Concat(subProcessingResults.SuccessDrops).DistinctBy(x => x.DropRequestID), FailedDrops.Concat(subProcessingResults.FailedDrops).DistinctBy(x => x.DropRequestID), LeagueActions.Concat(subProcessingResults.LeagueActions).DistinctBy(x => x.ActionInternalID), subProcessingResults.PublisherStateSet, AddedPublisherGames.Concat(subProcessingResults.AddedPublisherGames).DistinctBy(x => x.PublisherGameID), RemovedPublisherGames.Concat(subProcessingResults.RemovedPublisherGames).DistinctBy(x => x.PublisherGame.PublisherGameID))); }