using ChaosBot.Models; namespace ChaosBot.Services.ProgrammingLanguageInterpreter { internal static class ProgrammingLanguageInterpreterFactory { public static IProgrammingLanguageInterpreter GetInterpreter(CustomCommandType type) { switch (type) { case CustomCommandType.CustomLua: return new LuaProgrammingLanguageInterpreter(); default: return null; } } } }