-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae73e50
commit 0b5c374
Showing
189 changed files
with
46,442 additions
and
24,441 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81 changes: 42 additions & 39 deletions
81
client/src/main/generated/com/regula/documentreader/webclient/ApiCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,62 @@ | ||
/* | ||
* Regula Document Reader Web API | ||
* Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core | ||
* | ||
* The version of the OpenAPI document: 7.2.0 | ||
* Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core | ||
* | ||
* The version of the OpenAPI document: 7.4.0 | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
|
||
package com.regula.documentreader.webclient; | ||
|
||
import java.util.List; | ||
import java.io.IOException; | ||
|
||
import java.util.Map; | ||
import java.util.List; | ||
|
||
/** | ||
* Callback for asynchronous API call. | ||
* | ||
* @param <T> The return type | ||
*/ | ||
public interface ApiCallback<T> { | ||
/** | ||
* This is called when the API call fails. | ||
* | ||
* @param e The exception causing the failure | ||
* @param statusCode Status code of the response if available, otherwise it would be 0 | ||
* @param responseHeaders Headers of the response if available, otherwise it would be null | ||
*/ | ||
void onFailure(ApiException e, int statusCode, Map<String, List<String>> responseHeaders); | ||
|
||
/** | ||
* This is called when the API call succeeded. | ||
* | ||
* @param result The result deserialized from response | ||
* @param statusCode Status code of the response | ||
* @param responseHeaders Headers of the response | ||
*/ | ||
void onSuccess(T result, int statusCode, Map<String, List<String>> responseHeaders); | ||
|
||
/** | ||
* This is called when the API upload processing. | ||
* | ||
* @param bytesWritten bytes Written | ||
* @param contentLength content length of request body | ||
* @param done write end | ||
*/ | ||
void onUploadProgress(long bytesWritten, long contentLength, boolean done); | ||
|
||
/** | ||
* This is called when the API downlond processing. | ||
* | ||
* @param bytesRead bytes Read | ||
* @param contentLength content lenngth of the response | ||
* @param done Read end | ||
*/ | ||
void onDownloadProgress(long bytesRead, long contentLength, boolean done); | ||
/** | ||
* This is called when the API call fails. | ||
* | ||
* @param e The exception causing the failure | ||
* @param statusCode Status code of the response if available, otherwise it would be 0 | ||
* @param responseHeaders Headers of the response if available, otherwise it would be null | ||
*/ | ||
void onFailure(ApiException e, int statusCode, Map<String, List<String>> responseHeaders); | ||
|
||
/** | ||
* This is called when the API call succeeded. | ||
* | ||
* @param result The result deserialized from response | ||
* @param statusCode Status code of the response | ||
* @param responseHeaders Headers of the response | ||
*/ | ||
void onSuccess(T result, int statusCode, Map<String, List<String>> responseHeaders); | ||
|
||
/** | ||
* This is called when the API upload processing. | ||
* | ||
* @param bytesWritten bytes Written | ||
* @param contentLength content length of request body | ||
* @param done write end | ||
*/ | ||
void onUploadProgress(long bytesWritten, long contentLength, boolean done); | ||
|
||
/** | ||
* This is called when the API downlond processing. | ||
* | ||
* @param bytesRead bytes Read | ||
* @param contentLength content lenngth of the response | ||
* @param done Read end | ||
*/ | ||
void onDownloadProgress(long bytesRead, long contentLength, boolean done); | ||
} |
Oops, something went wrong.