using ChaosBot.Models; namespace ChaosBot.Services.ProgrammingLanguageInterpreter { public static class ProgrammingLanguageInterpreterFacade { public static void Interpret(CustomCommand customCommand) { IProgrammingLanguageInterpreter interpreter = ProgrammingLanguageInterpreterFactory.GetInterpreter(customCommand.Type); interpreter.Interpret(customCommand.Content); } } }