public class SteamMethodVersion extends Object
A SteamMethod can have various versions supporting different Options, Steam Versions
and/or Steam Hosts.
| Modifier and Type | Class and Description |
|---|---|
static class |
SteamMethodVersion.Builder
A builder pattern class to buildRequest easier SteamMethodVersion.
|
| Constructor and Description |
|---|
SteamMethodVersion(SteamHTTPMethod method,
List<SteamHost> hosts,
SteamVersion version,
SteamVisibility visibility)
Creates a new SteamMethodVersion instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Option option)
Adds a option if the option does not exist yet.
|
static SteamMethodVersion.Builder |
create()
Creates a new instance of
SteamMethodVersion.Builder. |
Option |
get(String key)
Gives the option related to the key.
|
List<SteamHost> |
getHosts()
All supported hosts.
|
SteamHTTPMethod |
getMethod()
The supported HTTP request method.
|
SteamVersion |
getVersion()
The version these options belong to.
|
SteamVisibility |
getVisibility()
Gives the visibility of the method.
|
boolean |
verify(SteamMethod steamMethod,
SteamHost host,
Input input)
Verifies if the input fits these SteamMethodVersion.
|
public SteamMethodVersion(SteamHTTPMethod method, List<SteamHost> hosts, SteamVersion version, SteamVisibility visibility)
Creates a new SteamMethodVersion instance.
method - The supported HTTP request method.hosts - All supported hosts.version - The version the options belong to.visibility - The visibility of the method.public SteamHTTPMethod getMethod()
The supported HTTP request method.
public SteamVersion getVersion()
The version these options belong to.
public SteamVisibility getVisibility()
Gives the visibility of the method.
public Option get(String key)
Gives the option related to the key.
key - The key of the option.public void add(Option option)
Adds a option if the option does not exist yet.
option - The option to add.public boolean verify(SteamMethod steamMethod, SteamHost host, Input input)
Verifies if the input fits these SteamMethodVersion.
steamMethod - The SteamMethod calling the verify function.host - The host which is supposed to receive the provided input.input - The provided input.public static SteamMethodVersion.Builder create()
Creates a new instance of SteamMethodVersion.Builder.
Copyright © 2017. All rights reserved.