public class SteamAPI extends Object
| Constructor and Description |
|---|
SteamAPI(okhttp3.OkHttpClient client,
String key) |
SteamAPI(String key) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This method should be called at the end of your program.
|
<T extends SteamInterface> |
get(Class<T> steamInterface)
Gives the internally used instance of the requested
SteamInterface. |
okhttp3.OkHttpClient |
getClient() |
String |
getKey()
The Steam API key assigned to this instance.
|
public SteamAPI(okhttp3.OkHttpClient client,
String key)
public SteamAPI(String key)
public String getKey()
The Steam API key assigned to this instance.
public okhttp3.OkHttpClient getClient()
public <T extends SteamInterface> T get(Class<T> steamInterface)
Gives the internally used instance of the requested SteamInterface.
T - the type of the Steam InterfacesteamInterface - The steam interface.public void close()
This method should be called at the end of your program. It cancels all calls currently enqueued or executing
requests. It also shuts down the ExecutorService responsible for the client making
all requests by calling ExecutorService.shutdown().
Copyright © 2017. All rights reserved.