using FinlyticCore.Dtos.News;
namespace FinlyticNews.Adapters.Discovery;
///
/// Abstract base class representing an adapter capable of extracting article URLs from web content.
///
public abstract class ArticleDiscoveryAdapter
{
///
/// Gets the unique adapter keyword name used for matching (e.g. "rss", "html").
///
public abstract string Name { get; }
///
/// Extracts a list of absolute article URLs from the retrieved web/feed page content.
///
/// The raw text or XML content loaded from the source.
/// The original URL of the source page (used to resolve relative links).
/// A list of resolved absolute URLs.
public abstract List ExtractUrls(string content, string sourceUrl);
}