mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-26 07:29:00 -07:00
16 lines
298 B
C#
16 lines
298 B
C#
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;
|
|
}
|
|
}
|
|
}
|