Files
i2p 773d05f8f1
Pulsar .NET 9.0 Windows Release / build (push) Waiting to run
Mirror to Codeberg and Gitea / mirror (push) Waiting to run
initial commit
2026-08-27 10:57:58 -06:00

30 lines
977 B
C#

using System;
namespace Pulsar.Common.Plugins
{
public interface IUniversalPlugin
{
string PluginId { get; }
string Version { get; }
string[] SupportedCommands { get; }
void Initialize(Object initData);
PluginResult ExecuteCommand(string command, Object parameters);
void Cleanup();
bool IsComplete { get; }
}
public class PluginResult
{
public bool Success { get; set; }
public string Message { get; set; }
// I haven't tested this too much but I would try and make sure
// that you only use primitive data types in this or well known data types
// Don't send back classes that can't be deserialized due to them not being in
// Pulsar.Server or Pulsar.Common. Otherwise you will get serialization issues.
public Object Data { get; set; }
public bool ShouldUnload { get; set; }
public string NextCommand { get; set; }
}
}