Allow configuration on AutomationBots.

This commit is contained in:
2019-11-05 17:34:50 +01:00
parent 474757af5e
commit 0457466bd0
12 changed files with 575 additions and 170 deletions

View File

@@ -5,7 +5,8 @@ namespace VAR.ScreenAutomation.Interfaces
public interface IAutomationBot
{
string Name { get; }
void Init(IOutputHandler output);
IConfiguration GetDefaultConfiguration();
void Init(IOutputHandler output, IConfiguration config);
Bitmap Process(Bitmap bmpInput, IOutputHandler output);
string ResponseKeys();
}

View File

@@ -0,0 +1,16 @@
using System.Collections.Generic;
namespace VAR.ScreenAutomation.Interfaces
{
public interface IConfiguration
{
IEnumerable<string> GetKeys();
void Clear();
bool Get(string key, bool defaultValue);
int Get(string key, int defaultValue);
string Get(string key, string defaultValue);
void Set(string key, bool value);
void Set(string key, int value);
void Set(string key, string value);
}
}