namespace PageFetcher.Models; /// /// Result of a page fetch operation. /// public sealed class FetchPageResponse { /// Final URL after any redirects. public string Url { get; set; } = string.Empty; /// HTTP status code returned by the page. 0 on network failure. public int StatusCode { get; set; } /// Full rendered HTML as returned by Playwright. public string Html { get; set; } = string.Empty; /// Plain text extracted from the HTML (script/style stripped, whitespace normalised). public string Text { get; set; } = string.Empty; /// Whether the fetch succeeded. false on timeout or network error. public bool Success { get; set; } /// Exception message when is false. public string? Error { get; set; } }