de.SweetCode.SteamAPI.method.methods.SupportGetAssetHistory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of SteamAPI Show documentation
Show all versions of SteamAPI Show documentation
SteamAPI is a wrapper of the Steam Web API.
package de.SweetCode.SteamAPI.method.methods;
import de.SweetCode.SteamAPI.SteamHTTPMethod;
import de.SweetCode.SteamAPI.SteamHost;
import de.SweetCode.SteamAPI.SteamVersion;
import de.SweetCode.SteamAPI.SteamVisibility;
import de.SweetCode.SteamAPI.interfaces.IGameInventory;
import de.SweetCode.SteamAPI.method.SteamMethod;
import de.SweetCode.SteamAPI.method.SteamMethodVersion;
import de.SweetCode.SteamAPI.method.option.Option;
import de.SweetCode.SteamAPI.method.option.OptionTypes;
import de.SweetCode.SteamAPI.method.option.options.AppIDOption;
import de.SweetCode.SteamAPI.method.option.options.KeyOption;
import java.util.Collections;
public class SupportGetAssetHistory extends SteamMethod {
public SupportGetAssetHistory(IGameInventory steamInterface) {
super(
steamInterface,
"SupportGetAssetHistory",
Collections.singletonList(
SteamMethodVersion.create()
.method(SteamHTTPMethod.GET)
.hosts(SteamHost.PUBLIC, SteamHost.PARTNER)
.version(SteamVersion.V_1)
.visibility(SteamVisibility.PUBLISHER)
.add(new KeyOption(false))
.add(new AppIDOption(true))
.add(
Option.create()
.key("assetid")
.description("The asset ID to operate on.")
.optionType(OptionTypes.UINT_64)
.isRequired(true)
.build()
)
.add(
Option.create()
.key("contextid")
.description("The context to fetch history for.")
.optionType(OptionTypes.UINT_64)
.isRequired(true)
.build()
)
.build()
)
);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy