source search refactoring

This commit is contained in:
2024-03-03 13:59:13 +01:00
Unverified
parent 2b4df248eb
commit 2da59382a3
7 changed files with 130 additions and 68 deletions

View File

@@ -4,13 +4,17 @@ using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using VDownload.Models;
namespace VDownload.Sources.Common
{
public struct SearchRegex
public class SearchRegex<TFunc> where TFunc : Delegate
{
public Regex Regex { get; set; }
public Func<string, Task<object>> SearchFunction { get; set; }
#region PROPERTIES
public required Regex Regex { get; init; }
public TFunc SearchFunction { get; set; }
#endregion
}
}