2021-12-15 09:50:45 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace PettingZoo.Core.Generator
|
|
|
|
|
{
|
2021-12-31 17:48:04 +00:00
|
|
|
|
public interface IExampleGenerator
|
2021-12-15 09:50:45 +00:00
|
|
|
|
{
|
2021-12-31 17:48:04 +00:00
|
|
|
|
void Select(object? ownerWindow, Action<IExample> onExampleSelected);
|
2021-12-15 09:50:45 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2021-12-31 17:48:04 +00:00
|
|
|
|
public interface IExample
|
2021-12-15 09:50:45 +00:00
|
|
|
|
{
|
2021-12-31 17:48:04 +00:00
|
|
|
|
string Generate();
|
|
|
|
|
}
|
|
|
|
|
|
2021-12-15 09:50:45 +00:00
|
|
|
|
|
2021-12-31 17:48:04 +00:00
|
|
|
|
public interface IClassTypeExample : IExample
|
|
|
|
|
{
|
|
|
|
|
public string AssemblyName { get; }
|
|
|
|
|
public string? Namespace { get; }
|
|
|
|
|
public string ClassName { get; }
|
|
|
|
|
|
|
|
|
|
public string FullClassName => !string.IsNullOrEmpty(Namespace) ? Namespace + "." : "" + ClassName;
|
2021-12-15 09:50:45 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2021-12-31 17:48:04 +00:00
|
|
|
|
/*
|
|
|
|
|
public interface IValidatingExample : IExample
|
2021-12-15 09:50:45 +00:00
|
|
|
|
{
|
2021-12-31 17:48:04 +00:00
|
|
|
|
bool Validate(string payload, out string validationMessage);
|
2021-12-15 09:50:45 +00:00
|
|
|
|
}
|
2021-12-31 17:48:04 +00:00
|
|
|
|
*/
|
2021-12-15 09:50:45 +00:00
|
|
|
|
}
|