csharp
public readonly record struct GateAnswer<T>An answer, and the status code it should be sent with.
Fields and properties (4)
public int StatusThe HTTP status.
public T? ValueThe answer, when the status says there is one.
public GateProblem? ProblemWhat was wrong, otherwise.
public bool OkWhether there is a value.
Methods (3)
public GateAnswer(int Status, T? Value, GateProblem? Problem)An answer, and the status code it should be sent with.
public static GateAnswer<T> Yes(T value, int status = 200)An answer.
public static GateAnswer<T> No(int status, string code, string detail)A refusal.
Used by (3)
- GateEndpointsVixen.Live.Gate
- GateServiceVixen.Live.Gate
- GateServiceTestsVixen.Live.Gate.Tests