public class CsgoServers extends CsgoWebApiInterface
CsgoServers class.
VERSION_1, VERSION_2, VERSION_3| Constructor and Description |
|---|
CsgoServers(SteamWebApiClient client)
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureBuilder(com.google.gson.GsonBuilder builder)
Override this method if you need to perform additional configurations against the builder (e.g.
|
CompletableFuture<CsgoGameServerStatus> |
getGameServerStatus()
getGameServerStatus.
|
CompletableFuture<CsgoGameMapPlaytimeInfo> |
getMapPlaytimeInfo(String interval,
String gameMode,
String mapGroup)
Get game maps playtime information
|
getResultasCollectionOf, asListOf, builder, fromJson, fromJson, handleError, sendRequestpublic CsgoServers(SteamWebApiClient client)
Default Constructor
client - A AbstractRestClient instanceprotected void configureBuilder(com.google.gson.GsonBuilder builder)
Override this method if you need to perform additional configurations against the builder (e.g. Register custom deserializers)
configureBuilder in class AbstractWebApiInterface<SteamWebApiClient,CsgoWebApiRequest,CsgoWebApiResponse>builder - A GsonBuilder instance that will be accessed and configured by a concrete AbstractWebApiInterface implementationpublic CompletableFuture<CsgoGameServerStatus> getGameServerStatus()
getGameServerStatus.
CompletableFuture objectpublic CompletableFuture<CsgoGameMapPlaytimeInfo> getMapPlaytimeInfo(String interval, String gameMode, String mapGroup)
interval - What recent interval is requested, possible values: day, week, monthgameMode - What game mode is requested, possible values: competitive, casualmapGroup - What maps are requested, possible values: operationCompletableFuture object.Copyright © 2016–2024. All rights reserved.