Skip to content

Commit b09b27c

Browse files
committed
Add JavaDoc for the Callbacks
1 parent 2598360 commit b09b27c

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

library/src/main/java/com/proxerme/library/connection/ProxerRequest.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,13 +239,25 @@ public void run() {
239239
* @param <R> The type of the Result.
240240
*/
241241
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+
*/
242248
void onSuccess(R result);
243249
}
244250

245251
/**
246252
* A callback for a unsuccessful request.
247253
*/
248254
public interface ProxerErrorCallback {
255+
256+
/**
257+
* Called upon an error for each Request with the ErrorResult.
258+
*
259+
* @param result The ErrorResult.
260+
*/
249261
void onError(ProxerErrorResult result);
250262
}
251263
}

0 commit comments

Comments
 (0)