|
3 | 3 | * This is the API documentation for the Parodos Notification Service. It provides operations to send out and check notification. The endpoints are secured with oAuth2/OpenID and cannot be accessed without a valid token. |
4 | 4 | * |
5 | 5 | * The version of the OpenAPI document: v1.0.0 |
6 | | - * |
| 6 | + * |
7 | 7 | * |
8 | 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). |
9 | 9 | * https://openapi-generator.tech |
10 | 10 | * Do not edit the class manually. |
11 | 11 | */ |
12 | 12 |
|
| 13 | + |
13 | 14 | package com.redhat.parodos.notification.sdk.api; |
14 | 15 |
|
15 | | -import java.util.List; |
| 16 | +import java.io.IOException; |
| 17 | + |
16 | 18 | import java.util.Map; |
| 19 | +import java.util.List; |
17 | 20 |
|
18 | 21 | /** |
19 | 22 | * Callback for asynchronous API call. |
20 | 23 | * |
21 | 24 | * @param <T> The return type |
22 | 25 | */ |
23 | 26 | public interface ApiCallback<T> { |
24 | | - |
25 | | - /** |
26 | | - * This is called when the API call fails. |
27 | | - * @param e The exception causing the failure |
28 | | - * @param statusCode Status code of the response if available, otherwise it would be 0 |
29 | | - * @param responseHeaders Headers of the response if available, otherwise it would be |
30 | | - * null |
31 | | - */ |
32 | | - void onFailure(ApiException e, int statusCode, Map<String, List<String>> responseHeaders); |
33 | | - |
34 | | - /** |
35 | | - * This is called when the API call succeeded. |
36 | | - * @param result The result deserialized from response |
37 | | - * @param statusCode Status code of the response |
38 | | - * @param responseHeaders Headers of the response |
39 | | - */ |
40 | | - void onSuccess(T result, int statusCode, Map<String, List<String>> responseHeaders); |
41 | | - |
42 | | - /** |
43 | | - * This is called when the API upload processing. |
44 | | - * @param bytesWritten bytes Written |
45 | | - * @param contentLength content length of request body |
46 | | - * @param done write end |
47 | | - */ |
48 | | - void onUploadProgress(long bytesWritten, long contentLength, boolean done); |
49 | | - |
50 | | - /** |
51 | | - * This is called when the API download processing. |
52 | | - * @param bytesRead bytes Read |
53 | | - * @param contentLength content length of the response |
54 | | - * @param done Read end |
55 | | - */ |
56 | | - void onDownloadProgress(long bytesRead, long contentLength, boolean done); |
57 | | - |
| 27 | + /** |
| 28 | + * This is called when the API call fails. |
| 29 | + * |
| 30 | + * @param e The exception causing the failure |
| 31 | + * @param statusCode Status code of the response if available, otherwise it would be 0 |
| 32 | + * @param responseHeaders Headers of the response if available, otherwise it would be null |
| 33 | + */ |
| 34 | + void onFailure(ApiException e, int statusCode, Map<String, List<String>> responseHeaders); |
| 35 | + |
| 36 | + /** |
| 37 | + * This is called when the API call succeeded. |
| 38 | + * |
| 39 | + * @param result The result deserialized from response |
| 40 | + * @param statusCode Status code of the response |
| 41 | + * @param responseHeaders Headers of the response |
| 42 | + */ |
| 43 | + void onSuccess(T result, int statusCode, Map<String, List<String>> responseHeaders); |
| 44 | + |
| 45 | + /** |
| 46 | + * This is called when the API upload processing. |
| 47 | + * |
| 48 | + * @param bytesWritten bytes Written |
| 49 | + * @param contentLength content length of request body |
| 50 | + * @param done write end |
| 51 | + */ |
| 52 | + void onUploadProgress(long bytesWritten, long contentLength, boolean done); |
| 53 | + |
| 54 | + /** |
| 55 | + * This is called when the API download processing. |
| 56 | + * |
| 57 | + * @param bytesRead bytes Read |
| 58 | + * @param contentLength content length of the response |
| 59 | + * @param done Read end |
| 60 | + */ |
| 61 | + void onDownloadProgress(long bytesRead, long contentLength, boolean done); |
58 | 62 | } |
0 commit comments