public enum SteamVersion extends Enum<SteamVersion>
The steam API is divided into interfaces, methods and versions. - This class represents the abstract idea of the Steam Interface. A part of the Steam Web API is that methods which can be called can have various versions. This enum provides all of them, which allows the developer to specify which version of the method they wanna access.
| Enum Constant and Description |
|---|
V_1
Representing the 'v1' version.
|
V_2
Representing the 'v2' version.
|
V_3
Representing the 'v3' version.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHumanReadable()
Gives a human readable version of the version name.
|
String |
getUrlVersion()
Gives the value which can be used to create requests.
|
static SteamVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SteamVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SteamVersion V_1
Representing the 'v1' version.
public static final SteamVersion V_2
Representing the 'v2' version.
public static final SteamVersion V_3
Representing the 'v3' version.
public static SteamVersion[] values()
for (SteamVersion c : SteamVersion.values()) System.out.println(c);
public static SteamVersion 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 getUrlVersion()
Gives the value which can be used to create requests.
public String getHumanReadable()
Gives a human readable version of the version name. - The syntax of the string is: Version {number}.
Copyright © 2017. All rights reserved.