Example #1
0
 public static OkObjectResult Fail(PayloadCode code)
 {
     return(new OkObjectResult(new Payload()
     {
         code = code,
     }));
 }
Example #2
0
        public Payloader OnFail(PayloadCode code)
        {
            Debug.Log(code);

            fail?.Invoke(code);

            return(this);
        }
Example #3
0
 public Payload(PayloadCode payloadCode, byte[] content)
 {
     PayloadCode = payloadCode;
     Content = content;
 }
Example #4
0
 public static object[] Fail(PayloadCode code)
 {
     return(new object[] { code });
 }