From f1c87308ead4140db72a63852f2e0e3f5306089c Mon Sep 17 00:00:00 2001 From: Michael Bucari-Tovo Date: Wed, 6 Oct 2021 13:43:19 -0600 Subject: [PATCH] Fixed access modifier. --- FileLiberator/Processable.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FileLiberator/Processable.cs b/FileLiberator/Processable.cs index 9f565d06..3043b07d 100644 --- a/FileLiberator/Processable.cs +++ b/FileLiberator/Processable.cs @@ -24,13 +24,13 @@ namespace FileLiberator public abstract Task ProcessAsync(LibraryBook libraryBook); // when used in foreach: stateful. deferred execution - protected IEnumerable GetValidLibraryBooks(IEnumerable library) + public IEnumerable GetValidLibraryBooks(IEnumerable library) => library.Where(libraryBook => Validate(libraryBook) && (libraryBook.Book.ContentType != ContentType.Episode || FileManager.Configuration.Instance.DownloadEpisodes) ); - protected async Task ProcessSingleAsync(LibraryBook libraryBook, bool validate) + public async Task ProcessSingleAsync(LibraryBook libraryBook, bool validate) { if (validate && !Validate(libraryBook)) return new StatusHandler { "Validation failed" }; @@ -50,7 +50,7 @@ namespace FileLiberator return status; } - protected async Task TryProcessAsync(LibraryBook libraryBook) + public async Task TryProcessAsync(LibraryBook libraryBook) => Validate(libraryBook) ? await ProcessAsync(libraryBook) : new StatusHandler();