using SharedLibraryCore.Interfaces; using System.Collections.Generic; namespace SharedLibraryCore.Configuration { public class ServerConfiguration : IBaseConfiguration { public string IPAddress { get; set; } public short Port { get; set; } public string Password { get; set; } public List Rules { get; set; } public List AutoMessages { get; set; } public bool UseT6MParser { get; set; } public bool UseIW5MParser { get; set; } public string ManualLogPath { get; set; } public IBaseConfiguration Generate() { UseT6MParser = Utilities.PromptBool(Utilities.CurrentLocalization.LocalizationSet["SETUP_SERVER_USET6M"]); if (!UseT6MParser) UseIW5MParser = Utilities.PromptBool(Utilities.CurrentLocalization.LocalizationSet["SETUP_SERVER_USEIW5M"]); if (UseIW5MParser) ManualLogPath = Utilities.PromptString(Utilities.CurrentLocalization.LocalizationSet["SETUP_SERVER_MANUALLOG"]); return this; } public string Name() => "ServerConfiguration"; } }