# MessageDirection

public enum MessageDirection

消息方向枚举。

## Entries

SEND
Link copied to clipboard
SEND

发送

RECEIVE
Link copied to clipboard
RECEIVE

接收

## Properties

value
Link copied to clipboard
public final int value

## Functions

getValue
Link copied to clipboard
public int getValue()
获取消息方向的值。
setValue
Link copied to clipboard
public static Message.MessageDirection setValue(int code)
设置消息方向。
valueOf
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.)

values
Link copied to clipboard
public static Array<Message.MessageDirection> values()

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.