public DirectResponse(DirectRequest request) { Action = request.Action; Method = request.Method; Tid = request.Tid; Type = request.Type; }
public DirectResponse(DirectRequest request, JToken result) : this(request) { Result = result; }
public DirectResponse(DirectRequest request, Exception e) : this(request) { Type = "exception"; Message = e.Message; Where = e.ToString(); }