Linked Plugin List and Plugin Install endpoints between web and console

This commit is contained in:
2024-12-15 22:49:45 +02:00
parent a12aa66660
commit 424bf2196f
13 changed files with 180 additions and 19 deletions

View File

@@ -1,8 +1,18 @@
using System.Text.Json.Serialization;
namespace DiscordBotWebUI.Models;
public class PluginModel
{
public string PluginName { get; set; }
public string PluginAuthor { get; set; }
public string PluginDescription { get; set; }
public string Name { get; set; }
public string Author { get; set; }
public string Description { get; set; }
[JsonConstructor]
public PluginModel(string name, string author, string description)
{
Name = name;
Author = author;
Description = description;
}
}