using System; using System.Collections.Generic; namespace FileInterface.Scheduler { public sealed class WatcherJobConfig { public string Id { get; set; } public string Name { get; set; } public bool Enabled { get; set; } public string SourceDirectory { get; set; } public string SearchPattern { get; set; } public bool IncludeSubdirectories { get; set; } public bool WatchCreated { get; set; } public bool WatchChanged { get; set; } public bool WatchRenamed { get; set; } public int DebounceMilliseconds { get; set; } public int FileReadyRetries { get; set; } public int FileReadyDelayMilliseconds { get; set; } public bool RemoveEmptyLines { get; set; } public string JoinSeparator { get; set; } public string CustomFunction { get; set; } public List InArgs { get; set; } public bool MoveFileAfterSuccess { get; set; } public string MoveTargetDirectory { get; set; } public bool OverwriteTargetFile { get; set; } public WatcherJobConfig() { Id = Guid.NewGuid().ToString("N"); Name = "New watcher"; Enabled = true; SourceDirectory = ""; SearchPattern = "*.*"; IncludeSubdirectories = false; WatchCreated = true; WatchChanged = true; WatchRenamed = true; DebounceMilliseconds = 1000; FileReadyRetries = 10; FileReadyDelayMilliseconds = 250; RemoveEmptyLines = true; JoinSeparator = ";"; CustomFunction = ""; InArgs = new List(); MoveFileAfterSuccess = false; MoveTargetDirectory = ""; OverwriteTargetFile = false; } } }