public enum Locality extends Enum<Locality>
If locality of your message is set to USER, then the ability will only be executed if its being called in a user private chat.
| Enum Constant and Description |
|---|
ALL
Ability would be valid for groups and private user chats
|
GROUP
Only group chats
|
USER
Only user chats
|
| Modifier and Type | Method and Description |
|---|---|
static Locality |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Locality[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Locality ALL
public static final Locality USER
public static final Locality GROUP
public static Locality[] values()
for (Locality c : Locality.values()) System.out.println(c);
public static Locality 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 nullCopyright © 2017. All rights reserved.