using PARR.BLL.Contracts.Interfaces;

namespace PARR.TemplateTaskGenerator.Settings
{
    internal class MqSettings
    {
        public TemplateTaskGenerator TemplateTaskGenerator { get; set; } = new TemplateTaskGenerator();
        public TemplateGeneratorWorker TemplateGeneratorWorker { get; set; } = new TemplateGeneratorWorker();
    }


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


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