Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Release 1.0.15
Browse files Browse the repository at this point in the history
  • Loading branch information
eloycoto committed Jun 9, 2023
1 parent 181db01 commit 5e60e88
Show file tree
Hide file tree
Showing 35 changed files with 5,349 additions and 5,777 deletions.
2 changes: 1 addition & 1 deletion coverage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<description>Compute aggregated test code coverage</description>
<properties>
<maven.deploy.skip>true</maven.deploy.skip>
<revision>1.0.15-SNAPSHOT</revision>
<revision>1.0.15</revision>
</properties>

<dependencies>
Expand Down
6 changes: 3 additions & 3 deletions notification-service-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>dev.parodos</groupId>
<artifactId>notification-service-sdk</artifactId>
<version>1.0.15-SNAPSHOT</version>
<version>1.0.15</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -55,7 +55,7 @@ Add this dependency to your project's build file:
}
dependencies {
implementation "dev.parodos:notification-service-sdk:1.0.15-SNAPSHOT"
implementation "dev.parodos:notification-service-sdk:1.0.15"
}
```

Expand All @@ -69,7 +69,7 @@ mvn clean package

Then manually install the following JARs:

* `target/notification-service-sdk-1.0.15-SNAPSHOT.jar`
* `target/notification-service-sdk-1.0.15.jar`
* `target/lib/*.jar`

## Getting Started
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,56 +3,60 @@
* 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.
*
* The version of the OpenAPI document: v1.0.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.redhat.parodos.notification.sdk.api;

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 download processing.
* @param bytesRead bytes Read
* @param contentLength content length 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 download processing.
*
* @param bytesRead bytes Read
* @param contentLength content length of the response
* @param done Read end
*/
void onDownloadProgress(long bytesRead, long contentLength, boolean done);
}
Loading

0 comments on commit 5e60e88

Please sign in to comment.