Class SteamApps
- java.lang.Object
-
- in.dragonbra.javasteam.handlers.ClientMsgHandler
-
- in.dragonbra.javasteam.steam.handlers.steamapps.SteamApps
-
public class SteamApps extends ClientMsgHandler
This handler is used for interacting with apps and packages on the Steam network.
-
-
Field Summary
-
Fields inherited from class in.dragonbra.javasteam.handlers.ClientMsgHandler
client
-
-
Constructor Summary
Constructors Constructor Description SteamApps()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JobIDcheckAppBetaPassword(int app, java.lang.String password)Submit a beta password for a given app to retrieve any betas and their encryption keys.JobIDgetAppOwnershipTicket(int appId)Requests an app ownership ticket for the specified AppID.JobIDgetCDNAuthToken(int app, int depot, java.lang.String hostName)Request product information for an app or package Results are returned in aCDNAuthTokenCallbackcallback.JobIDgetDepotDecryptionKey(int depotId, int appId)Request the depot decryption key for a specified DepotID.JobIDgetLegacyGameKey(int appId)Request the legacy CD game keys for the requested appid.voidhandleMsg(IPacketMsg packetMsg)Handles a client message.JobIDpicsGetAccessTokens(java.lang.Integer app, java.lang.Integer _package)Request PICS access tokens for an app or package.JobIDpicsGetAccessTokens(java.lang.Iterable<java.lang.Integer> appIds, java.lang.Iterable<java.lang.Integer> packageIds)Request PICS access tokens for a list of app ids and package ids Results are returned in aPICSTokensCallbackcallback.JobIDpicsGetChangesSince()Request changes for apps and packages since a given change number Results are returned in aPICSChangesCallbackcallback.JobIDpicsGetChangesSince(int lastChangeNumber)Request changes for apps and packages since a given change number Results are returned in aPICSChangesCallbackcallback.JobIDpicsGetChangesSince(int lastChangeNumber, boolean sendAppChangeList)Request changes for apps and packages since a given change number Results are returned in aPICSChangesCallbackcallback.JobIDpicsGetChangesSince(int lastChangeNumber, boolean sendAppChangeList, boolean sendPackageChangelist)Request changes for apps and packages since a given change number Results are returned in aPICSChangesCallbackcallback.JobIDpicsGetProductInfo(PICSRequest app, PICSRequest _package)Request product information for an app or package Results are returned in aPICSProductInfoCallbackcallback.JobIDpicsGetProductInfo(PICSRequest app, PICSRequest _package, boolean metaDataOnly)Request product information for an app or package Results are returned in aPICSProductInfoCallbackcallback.JobIDpicsGetProductInfo(java.lang.Iterable<PICSRequest> apps, java.lang.Iterable<PICSRequest> packages)Request product information for a list of apps or packages Results are returned in aPICSProductInfoCallbackcallback.JobIDpicsGetProductInfo(java.lang.Iterable<PICSRequest> apps, java.lang.Iterable<PICSRequest> packages, boolean metaDataOnly)Request product information for a list of apps or packages Results are returned in aPICSProductInfoCallbackcallback.JobIDrequestFreeLicense(int app)Request a free license for given appid, can be used for free on demand apps Results are returned in aFreeLicenseCallbackcallback.JobIDrequestFreeLicense(java.lang.Iterable<java.lang.Integer> apps)Request a free license for given appids, can be used for free on demand apps Results are returned in aFreeLicenseCallbackcallback.-
Methods inherited from class in.dragonbra.javasteam.handlers.ClientMsgHandler
getClient, isExpectDisconnection, setExpectDisconnection, setup
-
-
-
-
Method Detail
-
getAppOwnershipTicket
public JobID getAppOwnershipTicket(int appId)
Requests an app ownership ticket for the specified AppID. Results are returned in aAppOwnershipTicketCallbackcallback.- Parameters:
appId- The appid to request the ownership ticket of.- Returns:
- The Job ID of the request. This can be used to find the appropriate
AppOwnershipTicketCallback.
-
getDepotDecryptionKey
public JobID getDepotDecryptionKey(int depotId, int appId)
Request the depot decryption key for a specified DepotID. Results are returned in aDepotKeyCallbackcallback.- Parameters:
depotId- The DepotID to request a decryption key for.appId- The AppID parent of the DepotID.- Returns:
- The Job ID of the request. This can be used to find the appropriate
DepotKeyCallback.
-
picsGetAccessTokens
public JobID picsGetAccessTokens(java.lang.Integer app, java.lang.Integer _package)
Request PICS access tokens for an app or package. Results are returned in aPICSTokensCallbackcallback.- Parameters:
app- App id to request access token for._package- Package id to request access token for.- Returns:
- The Job ID of the request. This can be used to find the appropriate
PICSTokensCallback.
-
picsGetAccessTokens
public JobID picsGetAccessTokens(java.lang.Iterable<java.lang.Integer> appIds, java.lang.Iterable<java.lang.Integer> packageIds)
Request PICS access tokens for a list of app ids and package ids Results are returned in aPICSTokensCallbackcallback.- Parameters:
appIds- List of app ids to request access tokens for.packageIds- List of package ids to request access tokens for.- Returns:
- The Job ID of the request. This can be used to find the appropriate
PICSTokensCallback.
-
picsGetChangesSince
public JobID picsGetChangesSince()
Request changes for apps and packages since a given change number Results are returned in aPICSChangesCallbackcallback.- Returns:
- The Job ID of the request. This can be used to find the appropriate
PICSChangesCallback.
-
picsGetChangesSince
public JobID picsGetChangesSince(int lastChangeNumber)
Request changes for apps and packages since a given change number Results are returned in aPICSChangesCallbackcallback.- Parameters:
lastChangeNumber- Last change number seen.- Returns:
- The Job ID of the request. This can be used to find the appropriate
PICSChangesCallback.
-
picsGetChangesSince
public JobID picsGetChangesSince(int lastChangeNumber, boolean sendAppChangeList)
Request changes for apps and packages since a given change number Results are returned in aPICSChangesCallbackcallback.- Parameters:
lastChangeNumber- Last change number seen.sendAppChangeList- Whether to send app changes.- Returns:
- The Job ID of the request. This can be used to find the appropriate
PICSChangesCallback.
-
picsGetChangesSince
public JobID picsGetChangesSince(int lastChangeNumber, boolean sendAppChangeList, boolean sendPackageChangelist)
Request changes for apps and packages since a given change number Results are returned in aPICSChangesCallbackcallback.- Parameters:
lastChangeNumber- Last change number seen.sendAppChangeList- Whether to send app changes.sendPackageChangelist- Whether to send package changes.- Returns:
- The Job ID of the request. This can be used to find the appropriate
PICSChangesCallback.
-
picsGetProductInfo
public JobID picsGetProductInfo(PICSRequest app, PICSRequest _package)
Request product information for an app or package Results are returned in aPICSProductInfoCallbackcallback.- Parameters:
app- App id requested._package- Package id requested.- Returns:
- The Job ID of the request. This can be used to find the appropriate
PICSProductInfoCallback.
-
picsGetProductInfo
public JobID picsGetProductInfo(PICSRequest app, PICSRequest _package, boolean metaDataOnly)
Request product information for an app or package Results are returned in aPICSProductInfoCallbackcallback.- Parameters:
app- App id requested._package- Package id requested.metaDataOnly- Whether to send only meta data.- Returns:
- The Job ID of the request. This can be used to find the appropriate
PICSProductInfoCallback.
-
picsGetProductInfo
public JobID picsGetProductInfo(java.lang.Iterable<PICSRequest> apps, java.lang.Iterable<PICSRequest> packages)
Request product information for a list of apps or packages Results are returned in aPICSProductInfoCallbackcallback.- Parameters:
apps- List of app ids requested.packages- List of package ids requested.- Returns:
- The Job ID of the request. This can be used to find the appropriate
PICSProductInfoCallback.
-
picsGetProductInfo
public JobID picsGetProductInfo(java.lang.Iterable<PICSRequest> apps, java.lang.Iterable<PICSRequest> packages, boolean metaDataOnly)
Request product information for a list of apps or packages Results are returned in aPICSProductInfoCallbackcallback.- Parameters:
apps- List ofPICSRequestrequests for apps.packages- List ofPICSRequestrequests for packages.metaDataOnly- Whether to send only metadata.- Returns:
- The Job ID of the request. This can be used to find the appropriate
PICSProductInfoCallback.
-
getCDNAuthToken
public JobID getCDNAuthToken(int app, int depot, java.lang.String hostName)
Request product information for an app or package Results are returned in aCDNAuthTokenCallbackcallback.- Parameters:
app- App id requested.depot- Depot id requested.hostName- CDN host name being requested.- Returns:
- The Job ID of the request. This can be used to find the appropriate
CDNAuthTokenCallback.
-
requestFreeLicense
public JobID requestFreeLicense(int app)
Request a free license for given appid, can be used for free on demand apps Results are returned in aFreeLicenseCallbackcallback.- Parameters:
app- The app to request a free license for.- Returns:
- The Job ID of the request. This can be used to find the appropriate
FreeLicenseCallback.
-
requestFreeLicense
public JobID requestFreeLicense(java.lang.Iterable<java.lang.Integer> apps)
Request a free license for given appids, can be used for free on demand apps Results are returned in aFreeLicenseCallbackcallback.- Parameters:
apps- The apps to request a free license for.- Returns:
- The Job ID of the request. This can be used to find the appropriate
FreeLicenseCallback.
-
checkAppBetaPassword
public JobID checkAppBetaPassword(int app, java.lang.String password)
Submit a beta password for a given app to retrieve any betas and their encryption keys. Results are returned in aCheckAppBetaPasswordCallbackcallback.- Parameters:
app- App id requested.password- Password to check.- Returns:
- The Job ID of the request. This can be used to find the appropriate
CheckAppBetaPasswordCallback.
-
getLegacyGameKey
public JobID getLegacyGameKey(int appId)
Request the legacy CD game keys for the requested appid.- Parameters:
appId- The AppID to request game keys for.- Returns:
- The Job ID of the request. This can be used to find the appropriate
LegacyGameKeyCallback
-
handleMsg
public void handleMsg(IPacketMsg packetMsg)
Description copied from class:ClientMsgHandlerHandles a client message. This should not be called directly.- Specified by:
handleMsgin classClientMsgHandler- Parameters:
packetMsg- The packet message that contains the data.
-
-