Skip to content

Commit

Permalink
Added missing java doc for CCServerListRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianMichael committed Jan 1, 2024
1 parent 9fc0b65 commit 97d0bc8
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,18 @@
import java.net.http.HttpResponse;
import java.util.concurrent.CompletableFuture;

/**
* This class is used to get the server list from the ClassiCube server list. It is used by {@link de.florianmichael.classic4j.ClassiCubeHandler}.
*/
public class CCServerListRequest {

/**
* Sends a request to the ClassiCube server list to get the server list.
*
* @param client The HttpClient to use.
* @param account The account to use for the request.
* @return A CompletableFuture containing the response.
*/
public static CompletableFuture<CCServerList> send(final HttpClient client, final CCAccount account) {
return CompletableFuture.supplyAsync(() -> {
final HttpRequest request = WebUtils.buildWithCookies(account.cookieStore, HttpRequest.newBuilder().GET().uri(ClassiCubeHandler.SERVER_LIST_INFO_URI));
Expand Down

0 comments on commit 97d0bc8

Please sign in to comment.