Allow configuration on AutomationBots.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
16
VAR.ScreenAutomation/Interfaces/IConfiguration.cs
Normal file
16
VAR.ScreenAutomation/Interfaces/IConfiguration.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user