public enum DatabaseType extends java.lang.Enum<DatabaseType>
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDownloadUrl(java.lang.String game,
long timestamp)
Gets the URL to request the database type at a specific time.
|
java.lang.String |
getStringForUrl() |
java.lang.String |
getTimestampUrl(java.lang.String game)
Gets URL needed to get the timestamp
|
static DatabaseType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DatabaseType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DatabaseType COMPLETE
public static final DatabaseType WEEKLY
public static final DatabaseType DAILY
public static final DatabaseType HOURLY
public static DatabaseType[] values()
for (DatabaseType c : DatabaseType.values()) System.out.println(c);
public static DatabaseType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getStringForUrl()
public java.lang.String getTimestampUrl(java.lang.String game)
public java.lang.String getDownloadUrl(java.lang.String game, long timestamp)