Linked Plugin List and Plugin Install endpoints between web and console
This commit is contained in:
16
DiscordBotWebUI/ServerCommunication/ApiResponse.cs
Normal file
16
DiscordBotWebUI/ServerCommunication/ApiResponse.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace DiscordBotWebUI.ServerCommunication;
|
||||
|
||||
public class ApiResponse
|
||||
{
|
||||
public bool Success { get; }
|
||||
public string Message { get; }
|
||||
|
||||
[JsonConstructor]
|
||||
public ApiResponse(string message, bool success)
|
||||
{
|
||||
Message = message;
|
||||
Success = success;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user