23 lines
649 B
C#
23 lines
649 B
C#
using PluginManager.Others;
|
|
|
|
namespace PluginManager.Loaders;
|
|
|
|
public class PluginLoadResultData
|
|
{
|
|
public string PluginName { get; init; }
|
|
public PluginType PluginType { get; init; }
|
|
public string? ErrorMessage { get; init; }
|
|
public bool IsSuccess { get; init; }
|
|
|
|
public object? Plugin { get; init; }
|
|
|
|
public PluginLoadResultData(string pluginName, PluginType pluginType, bool isSuccess, string? errorMessage = null, object plugin = null)
|
|
{
|
|
PluginName = pluginName;
|
|
PluginType = pluginType;
|
|
IsSuccess = isSuccess;
|
|
ErrorMessage = errorMessage;
|
|
Plugin = plugin;
|
|
}
|
|
}
|