private static void WriteOutputFiles(DlcOwnership ownershipDetails, string outputDirPath, bool convertUnicodeCharacters) { var dlcListWriter = new DlcListWriter(new StringCleaner(false, convertUnicodeCharacters, false, false)); dlcListWriter.WriteOfficialDlcToFile(ownershipDetails.MissingOfficialDlc, Path.Combine(outputDirPath, "missing.csv")); dlcListWriter.WriteSongPackInfoToFile(ownershipDetails.SongPacks, Path.Combine(outputDirPath, "songpacks.csv")); dlcListWriter.WriteDlcListToFile(ownershipDetails.UnknownExisting, Path.Combine(outputDirPath, "unmatchedExisting.csv")); }
public DlcOwnership Calculate(OfficialDlcList dlcList, ExistingDlcList existingList) { var rv = new DlcOwnership(); var dlcMatches = _dlcMatchCalculator.GetDlcMatches(dlcList.DlcList, existingList.DlcList); rv.MissingOfficialDlc = dlcMatches.Where(x => x.MatchResult == MatchResultType.UnmatchedLeftDlc).Select(x => x.LeftDlc).ToList(); rv.UnknownExisting = dlcMatches.Where(x => x.MatchResult == MatchResultType.UnmatchedRightDlc).Select(x => x.RightDlc).ToList(); rv.SongPacks = CreateSongPackDetails(dlcList.DlcList, dlcMatches); return(rv); }