MessageDirection

public enum MessageDirection

消息方向枚举。

Entries

Link copied to clipboard

发送

Link copied to clipboard

接收

Properties

Link copied to clipboard
public final int value

Functions

Link copied to clipboard
public int getValue()
获取消息方向的值。
Link copied to clipboard
public static Message.MessageDirection setValue(int code)
设置消息方向。
Link copied to clipboard
public static Message.MessageDirection valueOf(String name)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.