-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove submodules and restore clients (#228)
- Loading branch information
Showing
537 changed files
with
62,290 additions
and
75 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
This file was deleted.
Oops, something went wrong.
Submodule algoliasearch-client-java-2
deleted from
bd8719
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
*.class | ||
|
||
# Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
|
||
# Package Files # | ||
*.jar | ||
*.war | ||
*.ear | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
|
||
# build files | ||
**/target | ||
target | ||
.gradle | ||
build | ||
|
||
.openapi-generator |
25 changes: 25 additions & 0 deletions
25
clients/algoliasearch-client-java-2/.openapi-generator-ignore
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# OpenAPI Generator Ignore | ||
# Generated by openapi-generator https://github.com/openapitools/openapi-generator | ||
|
||
# Use this file to prevent files from being overwritten by the generator. | ||
# The patterns follow closely to .gitignore or .dockerignore. | ||
|
||
api/** | ||
docs/** | ||
gradle/** | ||
src/** | ||
README.md | ||
|
||
.travis.yml | ||
build.sbt | ||
gradle.properties | ||
git_push.sh | ||
pom.xml | ||
gradle* | ||
|
||
# Selective source file | ||
algoliasearch-core/com/algolia/auth/** | ||
algoliasearch-core/com/algolia/Configuration.java | ||
algoliasearch-core/com/algolia/Server*.java | ||
algoliasearch-core/com/algolia/StringUtil.java | ||
algoliasearch-core/com/algolia/GzipRequestInterceptor.java |
55 changes: 55 additions & 0 deletions
55
clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package com.algolia; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
/** | ||
* 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); | ||
} |
Oops, something went wrong.