NIMSDK-AOS
9.19.0
basesdk
src
com
netease
nimlib
sdk
msg
constant
MsgDirectionEnum.java
浏览该文件的文档.
1
2
package
com.netease.nimlib.sdk.msg.constant;
3
4
/**
5
* 消息方向枚举
6
*/
7
public
enum
MsgDirectionEnum
{
8
/**
9
* 发出去的消息
10
*/
11
Out
(0),
12
/**
13
* 接收到的消息
14
*/
15
In
(1);
16
17
private
int
value;
18
19
MsgDirectionEnum
(
int
value) {
20
this.value = value;
21
}
22
23
public
int
getValue
() {
24
return
value;
25
}
26
27
public
static
MsgDirectionEnum
directionOfValue
(
int
value) {
28
for
(
MsgDirectionEnum
direction : values()){
29
if
(direction.getValue() == value) {
30
return
direction;
31
}
32
}
33
return
Out;
34
}
35
}
com.netease.nimlib.sdk.msg.constant.MsgDirectionEnum.directionOfValue
static MsgDirectionEnum directionOfValue(int value)
Definition:
MsgDirectionEnum.java:27
com.netease.nimlib.sdk.msg.constant.MsgDirectionEnum.Out
Out
发出去的消息
Definition:
MsgDirectionEnum.java:11
com.netease.nimlib.sdk.msg.constant.MsgDirectionEnum.In
In
接收到的消息
Definition:
MsgDirectionEnum.java:15
com.netease.nimlib.sdk.msg.constant.MsgDirectionEnum.getValue
int getValue()
Definition:
MsgDirectionEnum.java:23
com.netease.nimlib.sdk.msg.constant.MsgDirectionEnum.MsgDirectionEnum
MsgDirectionEnum(int value)
Definition:
MsgDirectionEnum.java:19
com.netease.nimlib.sdk.msg.constant.MsgDirectionEnum
消息方向枚举
Definition:
MsgDirectionEnum.java:7
生成于 2024年 十月 16日 星期三 10:25:05 , 为 NIMSDK-AOS使用
1.8.13