mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-01-13 00:08:48 -05:00
18 lines
531 B
C#
18 lines
531 B
C#
namespace Cleanuparr.Infrastructure.Utilities;
|
|
|
|
/// <summary>
|
|
/// Interface for tracker pattern matching functionality.
|
|
/// </summary>
|
|
public interface ITrackerPatternMatcher
|
|
{
|
|
/// <summary>
|
|
/// Checks if any tracker host matches any of the provided patterns.
|
|
/// </summary>
|
|
bool MatchesAny(IReadOnlyList<string> trackerHosts, IReadOnlyList<string> patterns);
|
|
|
|
/// <summary>
|
|
/// Checks if a tracker host matches a specific pattern.
|
|
/// </summary>
|
|
bool Matches(string trackerHost, string pattern);
|
|
}
|