public enum IgnoredMessageCode extends Enum<IgnoredMessageCode>
Enum Constant and Description |
---|
ARTIST_IGNORED |
DAILY_SCROBBLE_LIMIT_EXCEEDED |
TIMESTAMP_TOO_NEW |
TIMESTAMP_TOO_OLD |
TRACK_IGNORED |
Modifier and Type | Field and Description |
---|---|
private int |
codeId
The ignored message error id returned by the Last.fm API.
|
private static Map<Integer,IgnoredMessageCode> |
idToCodeMap
A map which maps error codes against their corresponding enums for lookups by code.
|
Modifier and Type | Method and Description |
---|---|
private int |
getCodeId() |
static IgnoredMessageCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IgnoredMessageCode |
valueOfCode(int code)
Gets the IgnoredMessage enum value for the passed Last.fm error code.
|
static IgnoredMessageCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IgnoredMessageCode ARTIST_IGNORED
public static final IgnoredMessageCode TRACK_IGNORED
public static final IgnoredMessageCode TIMESTAMP_TOO_OLD
public static final IgnoredMessageCode TIMESTAMP_TOO_NEW
public static final IgnoredMessageCode DAILY_SCROBBLE_LIMIT_EXCEEDED
private int codeId
private static Map<Integer,IgnoredMessageCode> idToCodeMap
public static IgnoredMessageCode[] values()
for (IgnoredMessageCode c : IgnoredMessageCode.values()) System.out.println(c);
public static IgnoredMessageCode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static IgnoredMessageCode valueOfCode(int code)
code
- The Last.fm error code.private int getCodeId()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses