public enum SteamHost extends Enum<SteamHost>
Steam offers to different hosts to access their API.
| Enum Constant and Description |
|---|
PARTNER
The host to access the partner API (partner.steam-api.com).
|
PUBLIC
The host to access the public API (api.steampowered.com).
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHost()
Gives the according host.
|
static SteamHost |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SteamHost[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SteamHost PUBLIC
The host to access the public API (api.steampowered.com).
public static final SteamHost PARTNER
The host to access the partner API (partner.steam-api.com).
public static SteamHost[] values()
for (SteamHost c : SteamHost.values()) System.out.println(c);
public static SteamHost valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getHost()
Gives the according host.
Copyright © 2017. All rights reserved.