Apply review suggestions

This commit is contained in:
Shadowghost
2026-02-25 14:51:53 +01:00
parent 100d6bb38c
commit b7da5c1860
8 changed files with 184 additions and 97 deletions

View File

@@ -1,3 +1,4 @@
using System.IO;
using System.Threading;
using System.Threading.Tasks;
@@ -12,6 +13,12 @@ public interface ISchedulesDirectService
/// Gets the available countries from the Schedules Direct API, using a file cache.
/// </summary>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>The raw JSON response bytes.</returns>
Task<byte[]> GetAvailableCountries(CancellationToken cancellationToken);
/// <returns>A stream containing the raw JSON response.</returns>
Task<Stream> GetAvailableCountries(CancellationToken cancellationToken);
/// <summary>
/// Gets a value indicating whether the Schedules Direct daily image download limit is currently active.
/// </summary>
/// <returns><c>true</c> if the image limit has been hit and has not yet reset; otherwise <c>false</c>.</returns>
bool IsImageDailyLimitActive();
}