rbleattler_IISLogManager/src/IISLogManager.CLI/FilterConfiguration.cs
namespace IISLogManager.CLI;

public class FilterConfiguration {
	public FilterState FilterState { get; set; }
	public DateTime FromDate { get; set; }
	public DateTime ToDate { get; set; }

	public FilterConfiguration() { }

	public FilterConfiguration(FilterState filterState, DateTime fromDate, DateTime toDate) {
		FilterState = filterState;
		FromDate = fromDate;
		ToDate = toDate.AddDays(1).AddSeconds(-1);
	}

	public void SetToDate(string dateString) {
		ToDate = DateTime.Parse(dateString);
	}

	public void SetFromDate(string dateString) {
		FromDate = DateTime.Parse(dateString);
	}
}