public enum ReceiverGroup extends Enum<ReceiverGroup>
| Enum Constant and Description |
|---|
ALL
房间内所有玩家均是事件接收人,包括事件发送者
|
MASTER
只有房间 Master 为事件接收人
|
OTHERS
房间内除了事件发送者外都为事件接收人
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getCode() |
static ReceiverGroup |
of(byte code) |
static ReceiverGroup |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReceiverGroup[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReceiverGroup OTHERS
public static final ReceiverGroup ALL
public static final ReceiverGroup MASTER
public static ReceiverGroup[] values()
for (ReceiverGroup c : ReceiverGroup.values()) System.out.println(c);
public static ReceiverGroup 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 byte getCode()
public static ReceiverGroup of(byte code)
Copyright © 2019 LeanCloud. All rights reserved.