public static OkObjectResult Fail(PayloadCode code) { return(new OkObjectResult(new Payload() { code = code, })); }
public Payloader OnFail(PayloadCode code) { Debug.Log(code); fail?.Invoke(code); return(this); }
public Payload(PayloadCode payloadCode, byte[] content) { PayloadCode = payloadCode; Content = content; }
public static object[] Fail(PayloadCode code) { return(new object[] { code }); }