SearchRequest.cs 885 B

1234567891011121314151617181920212223242526272829
  1. using Microsoft.AspNetCore.Http;
  2. namespace LAPS_XMLQC_Service.Models
  3. {
  4. public class SearchRequest : RegexOption
  5. {
  6. public string DirectoryPath { get; set; }
  7. public string SearchTerm { get; set; }
  8. public string ReplacementText { get; set; }
  9. public string FileType { get; set; }
  10. }
  11. public class UploadRequest : RegexOption
  12. {
  13. public IFormFileCollection Files { get; set; }
  14. public string SearchTerm { get; set; }
  15. public string FileType { get; set; }
  16. }
  17. public class RegexOption
  18. {
  19. public bool CaseInsensitive { get; set; } = false;
  20. public bool SingleLine { get; set; } = false;
  21. public bool MultiLine { get; set; } = false;
  22. public bool IgnoreWhitespace { get; set; } = false;
  23. public bool ExplicitCapture { get; set; } = false;
  24. }
  25. }