public abstract class SteamInterface extends Object
The steam API is divided into interfaces, methods and versions. - This class represents the abstract idea of the Steam Interface.
| Constructor and Description |
|---|
SteamInterface(SteamAPI steam,
String name)
A constructor to create a SteamInterface.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(SteamMethod method)
Adds a method to the interface.
|
<T extends SteamMethod> |
get(Class<T> method)
Gives a method according to the provided class IF the method belongs to this interface.
|
Map<Class<? extends SteamMethod>,SteamMethod> |
getMethods()
Gives a list of all related
methods. |
String |
getName()
Gives the name of the interface which can be directly used in URLs to access the API.
|
SteamAPI |
getSteam()
Gives the Steam API instance this interface belongs to.
|
public String getName()
Gives the name of the interface which can be directly used in URLs to access the API.
public SteamAPI getSteam()
Gives the Steam API instance this interface belongs to.
public Map<Class<? extends SteamMethod>,SteamMethod> getMethods()
Gives a list of all related methods.
public <T extends SteamMethod> T get(Class<T> method)
Gives a method according to the provided class IF the method belongs to this interface.
T - the Steam Method typemethod - The method to search for.public void add(SteamMethod method)
Adds a method to the interface.
method - The method to add.Copyright © 2017. All rights reserved.