using Microsoft.AspNetCore.Http;

namespace LAPS_XMLQC_Service.Models
{
    public class SearchRequest : RegexOption
    {
        public string DirectoryPath { get; set; }
        public string SearchTerm { get; set; }
        public string ReplacementText { get; set; }         
        public string FileType { get; set; }      
    }

    public class UploadRequest  : RegexOption
    {
        public IFormFileCollection Files { get; set; }
        public string SearchTerm { get; set; }
        public string FileType { get; set; }
    }        

    public class RegexOption
    {
        public bool CaseInsensitive { get; set; } = false;
        public bool SingleLine { get; set; } = false;
        public bool MultiLine { get; set; } = false;
        public bool IgnoreWhitespace { get; set; } = false;
        public bool ExplicitCapture { get; set; } = false;
    }

}
