mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-26 23:49:02 -07:00
Radicade Public Code
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
namespace RadicadeServer.RecNet.Responses
|
||||
{
|
||||
public class Failure
|
||||
{
|
||||
public bool success { get; set; } = false;
|
||||
|
||||
public string error { get; set; } = string.Empty;
|
||||
|
||||
public Failure(string why)
|
||||
{
|
||||
success = false;
|
||||
error = string.IsNullOrWhiteSpace(why) ? "request failed" : why;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user