chore: refactor to separate files

This commit is contained in:
Stevan Freeborn
2024-08-12 12:42:16 -05:00
parent 75287e2d4c
commit 0353852330
6 changed files with 36 additions and 17 deletions
@@ -1,9 +1,5 @@
namespace SanctionsSearch.Worker.Services;
interface IOfacFileService
{
}
class OfacFileService(
HttpClient client,
ILogger<OfacFileService> logger,
@@ -14,16 +10,3 @@ class OfacFileService(
private readonly ILogger<OfacFileService> _logger = logger ?? throw new ArgumentNullException(nameof(logger));
private readonly OfacFileServiceOptions _options = options?.Value ?? throw new ArgumentNullException(nameof(options));
}
class OfacFileServiceOptions
{
public string Url { get; set; } = string.Empty;
public string SdnFileName { get; set; } = string.Empty;
public string AddressFileName { get; set; } = string.Empty;
public string AltNamesFileName { get; set; } = string.Empty;
public string CommentsFileName { get; set; } = string.Empty;
public string ConPrimaryNameFileName { get; set; } = string.Empty;
public string ConAddressesFileName { get; set; } = string.Empty;
public string ConAltNamesFileName { get; set; } = string.Empty;
public string ConCommentsFileName { get; set; } = string.Empty;
}