de.SweetCode.SteamAPI.method.methods.RequestPlayerGameBan 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.SteamInterface;
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 de.SweetCode.SteamAPI.method.option.options.SteamIDOption;
import java.util.Collections;
public class RequestPlayerGameBan extends SteamMethod {
public RequestPlayerGameBan(SteamInterface steamInterface) {
super(
steamInterface,
"ReportPlayerCheating",
Collections.singletonList(
SteamMethodVersion.create()
.method(SteamHTTPMethod.POST)
.hosts(SteamHost.PUBLIC, SteamHost.PARTNER)
.version(SteamVersion.V_1)
.visibility(SteamVisibility.PUBLISHER)
.add(new KeyOption(true))
.add(new SteamIDOption(true))
.add(new AppIDOption(true))
.add(
Option.create()
.key("reportid")
.description("The reportid originally used to report cheating.")
.optionType(OptionTypes.UINT_64)
.isRequired(true)
.build()
)
.add(
Option.create()
.key("cheatdescription")
.description("Text describing cheating infraction.")
.optionType(OptionTypes.STRING)
.isRequired(true)
.build()
)
.add(
Option.create()
.key("duration")
.description("Ban duration requested in seconds.")
.optionType(OptionTypes.UINT_32)
.isRequired(true)
.build()
)
.add(
Option.create()
.key("delayban")
.description("Delay the ban according to default ban delay rules.")
.optionType(OptionTypes.BOOL)
.isRequired(true)
.build()
)
.add(
Option.create()
.key("flags")
.description("Additional information about the ban request.")
.optionType(OptionTypes.UINT_32)
.isRequired(false)
.build()
)
.build()
)
);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy