public static void Send(JsonRequest data, Action<JsonResponse> successCallback, Action<Exception> failureCallback) { Request request = new Request(data, successCallback, failureCallback); request.SendRequest(); }
public static extern void Send(JsonRequest data, Action<JsonResponse> successCallback);
private Request(JsonRequest data, Action<JsonResponse> successCallback, Action<Exception> failureCallback) { this.data = data; this.successCallback = successCallback; this.failureCallback = failureCallback; }
public static extern void Send(JsonRequest data);
public bool CanHandle(JsonRequest jsonRequest) { return jsonRequest.type == GetHandleRequestType().Name; }