using PARR.Domain.Settings;

namespace PARR.EsppTemplateSync.Settings
{
    internal class GlobalSettings
    {
        public MqSettings? MqSettings { get; set; }

        public StorageSettings? StorageSettings { get; set; }
        //public List<string>? IgnoreTemplateFields { get; set; }
        public string ParsingSeparator { get; set; } = "<|>";
    }

    internal class MqSettings : IMqSettings
    {
        public string HostName { get; init; } = string.Empty;
        public string QueueName { get; init; } = string.Empty;
        public string User { get; init; } = string.Empty;
        public string Password { get; init; } = string.Empty;
        public ushort? PrefetchCount { get; init; } = 0;
    }

    internal class StorageSettings
    {
        public int CheckIntervalSeconds { get; set; } = 5;
    }
}
