de.SweetCode.SteamAPI.method.methods.GetCommunityBadgeProgress 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.IPlayerService;
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.KeyOption;
import de.SweetCode.SteamAPI.method.option.options.SteamIDOption;
import java.util.Collections;
public class GetCommunityBadgeProgress extends SteamMethod {
public GetCommunityBadgeProgress(IPlayerService steamInterface) {
super(
steamInterface,
"GetCommunityBadgeProgress",
Collections.singletonList(
SteamMethodVersion.create()
.method(SteamHTTPMethod.GET)
.hosts(SteamHost.PUBLIC, SteamHost.PARTNER)
.version(SteamVersion.V_1)
.visibility(SteamVisibility.ALL)
.add(new KeyOption(true))
.add(new SteamIDOption(true))
.add(
Option.create()
.key("badgeid")
.description("The badge we're asking about.")
.optionType(OptionTypes.INT_32)
.isRequired(true)
.build()
)
.build()
)
);
}
}