public enum PrefsMessage extends Enum<PrefsMessage> implements Message
| Enum Constant and Description |
|---|
DEFAULT |
GET_PREF |
LIST_PREFS |
SET_PREF |
| Modifier and Type | Method and Description |
|---|---|
static PrefsMessage |
get(int code) |
int |
getID()
Get command id to execute on host, service definitions are available on Scope Interface
|
String |
getServiceName()
Associates a command id with a service name
|
static PrefsMessage |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PrefsMessage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrefsMessage GET_PREF
public static final PrefsMessage LIST_PREFS
public static final PrefsMessage SET_PREF
public static final PrefsMessage DEFAULT
public static PrefsMessage[] values()
for (PrefsMessage c : PrefsMessage.values()) System.out.println(c);
public static PrefsMessage 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 int getID()
Messagepublic String getServiceName()
MessagegetServiceName in interface Messagepublic static PrefsMessage get(int code)
Copyright © 2013. All Rights Reserved.