Radicade Public Code

This commit is contained in:
JogmansonReal
2026-10-16 23:33:13 -07:00
commit 55175acdf6
832 changed files with 363261 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
namespace RadicadeServer.RecNet.Responses
{
public class Success
{
internal static readonly Success Ok = new Success(true, null, null);
internal static Success Error(string why) => new Success(false, why, null);
public bool success { get; set; }
public string error { get; set; } = string.Empty;
public object? value { get; set; }
public Success(bool success, string? error, object? value) {
this.success = success;
this.error = error ?? string.Empty;
this.value = value;
}
}
}