Mark van Renswoude
c75ea0cc62
Fixed class name missing when selecting from Tapeti class Added Filter to class selection dialog Fixed or removed some minor todo's
32 lines
678 B
C#
32 lines
678 B
C#
using System;
|
|
using PettingZoo.Core.Validation;
|
|
|
|
namespace PettingZoo.Core.Generator
|
|
{
|
|
public interface IExampleGenerator
|
|
{
|
|
void Select(object? ownerWindow, Action<IExample> onExampleSelected);
|
|
}
|
|
|
|
|
|
public interface IExample
|
|
{
|
|
string Generate();
|
|
}
|
|
|
|
|
|
public interface IClassTypeExample : IExample
|
|
{
|
|
public string AssemblyName { get; }
|
|
public string? Namespace { get; }
|
|
public string ClassName { get; }
|
|
|
|
public string FullClassName => (!string.IsNullOrEmpty(Namespace) ? Namespace + "." : "") + ClassName;
|
|
}
|
|
|
|
|
|
public interface IValidatingExample : IExample, IPayloadValidator
|
|
{
|
|
}
|
|
}
|