We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2598360 commit b09b27cCopy full SHA for b09b27c
1 file changed
library/src/main/java/com/proxerme/library/connection/ProxerRequest.java
@@ -239,13 +239,25 @@ public void run() {
239
* @param <R> The type of the Result.
240
*/
241
public interface ProxerCallback<R extends ProxerResult> {
242
+
243
+ /**
244
+ * Called upon success for each Request with the result.
245
+ *
246
+ * @param result The result specified through the type parameter.
247
+ */
248
void onSuccess(R result);
249
}
250
251
/**
252
* A callback for a unsuccessful request.
253
254
public interface ProxerErrorCallback {
255
256
257
+ * Called upon an error for each Request with the ErrorResult.
258
259
+ * @param result The ErrorResult.
260
261
void onError(ProxerErrorResult result);
262
263
0 commit comments