Import from internal git
This commit is contained in:
8
Core/Interfaces/IController.cs
Normal file
8
Core/Interfaces/IController.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using Core.Events;
|
||||
|
||||
namespace Core.Interfaces;
|
||||
|
||||
public interface IController
|
||||
{
|
||||
public DisplayEmitter Emitter { get; set; }
|
||||
}
|
||||
7
Core/Interfaces/IDataSourceLoader.cs
Normal file
7
Core/Interfaces/IDataSourceLoader.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace Core.Interfaces;
|
||||
|
||||
public interface IDataSourceLoader
|
||||
{
|
||||
public void LoadAppsettings();
|
||||
|
||||
}
|
||||
6
Core/Interfaces/IExporter.cs
Normal file
6
Core/Interfaces/IExporter.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Core.Interfaces;
|
||||
|
||||
public interface IExporter
|
||||
{
|
||||
public void Export();
|
||||
}
|
||||
14
Core/Interfaces/IGeneratorDirector.cs
Normal file
14
Core/Interfaces/IGeneratorDirector.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Core.Settings;
|
||||
|
||||
namespace Core.Interfaces;
|
||||
|
||||
public interface IGeneratorDirector<T> where T : ISpecFile
|
||||
{
|
||||
public Task DotnetServer(T file, DotnetConfig config);
|
||||
|
||||
public Task DotnetClient(T file, DotnetConfig config);
|
||||
|
||||
public Task Java(T file, JavaConfig config);
|
||||
|
||||
public Task Javascript(T file, JavascriptConfig config);
|
||||
}
|
||||
12
Core/Interfaces/IRepositoryRequest.cs
Normal file
12
Core/Interfaces/IRepositoryRequest.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Core.Dto;
|
||||
using Core.SpecConfig;
|
||||
|
||||
namespace Core.Interfaces;
|
||||
|
||||
public interface IRepositoryRequest
|
||||
{
|
||||
public Task<List<PackageDataDto>> GetVersions(Language language, string packageName);
|
||||
|
||||
public Task<bool> DeleteVersion(string id);
|
||||
|
||||
}
|
||||
14
Core/Interfaces/IView.cs
Normal file
14
Core/Interfaces/IView.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace Core.Interfaces;
|
||||
|
||||
public interface IView
|
||||
{
|
||||
void Exception(string message);
|
||||
|
||||
void Warning(string message);
|
||||
|
||||
void Info(string message);
|
||||
|
||||
void Success(string message);
|
||||
|
||||
void Progress(int percentage);
|
||||
}
|
||||
Reference in New Issue
Block a user