source search refactoring
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user