public class Appdates
extends java.lang.Object
BulkDetailsRequest.
NOTE: the official way of doing this seems to be via
Libraries.
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULTBATCHSIZE
Not sure if there's a maximum size for bulk details requests, but better be
safe than sorry.
|
| Constructor and Description |
|---|
Appdates()
Make requests with the default batchsize.
|
Appdates(int maxBatchSize) |
| Modifier and Type | Method and Description |
|---|---|
Appdates |
add(java.lang.String packageName,
int localVersion)
Register an app for checking.
|
java.util.HashMap<java.lang.String,java.lang.Integer> |
check(DfeApi api)
Check all registered apps for updates.
|
public static final int DEFAULTBATCHSIZE
public Appdates(int maxBatchSize)
maxBatchSize - split requests into buckets of no more than this many entries.public Appdates()
public Appdates add(java.lang.String packageName, int localVersion)
packageName - app idlocalVersion - versioncodepublic java.util.HashMap<java.lang.String,java.lang.Integer> check(DfeApi api) throws org.apache.hc.client5.http.ClientProtocolException, java.io.IOException
api - for talking to Play.org.apache.hc.client5.http.ClientProtocolExceptionjava.io.IOException