f52aa6123b
Replaces generic RawType with ByteDocument in downloaders and context classes, simplifying type usage. Adds builder classes for FailurePredicateOptions, FragmentOptions, SkipPredicateOptions, and UnitDownloaderOptions to improve configuration flexibility. Introduces DownloadTarget enum and SkipPredicate delegate for more granular download control. Refactors Fluent API interfaces and implementations to remove RawType generics and streamline usage. Adds Playwright and Stealth download strategies for extensibility.
28 lines
944 B
C#
28 lines
944 B
C#
namespace Beam.Models;
|
|
|
|
public enum DownloadTarget {
|
|
/// <summary>
|
|
/// Specifies the target as the object directly returned through accessing the URL (whole page).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Default to this mode where possible.
|
|
/// </remarks>
|
|
URL,
|
|
/// <summary>
|
|
/// Specifies the target as an object accessible only through the url (element in page).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Only use this mode if what is needed
|
|
/// cannot be acquired by using <see cref="DownloadTarget.URL"/>
|
|
/// </remarks>
|
|
InURL,
|
|
/// <summary>
|
|
/// Specifies the target as an object that may be retrieved through a user-defined operation on the url
|
|
/// (e.g. javascript triggered downloads).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Only use this mode if what is needed cannot be acquired by either
|
|
/// <see cref="URL"/> or <see cref="InURL"/>
|
|
/// </remarks>
|
|
Complex
|
|
} |