NIMSDK-AOS
9.19.0
basesdk
src
com
netease
nimlib
sdk
msg
constant
AttachStatusEnum.java
浏览该文件的文档.
1
package
com.netease.nimlib.sdk.msg.constant;
2
3
/**
4
* 附件传输状态枚举类
5
*/
6
public
enum
AttachStatusEnum
{
7
8
/**
9
* 默认状态,未开始
10
*/
11
def
(0),
12
/**
13
* 正在传输
14
*/
15
transferring
(1),
16
/**
17
* 传输成功
18
*/
19
transferred
(2),
20
21
/**
22
* 传输失败
23
*/
24
fail
(3),
25
26
/**
27
* 传输取消
28
*/
29
cancel
(4);
30
31
private
int
value;
32
33
AttachStatusEnum
(
int
value) {
34
this.value = value;
35
}
36
37
public
static
AttachStatusEnum
statusOfValue
(
int
status) {
38
for
(
AttachStatusEnum
e : values()) {
39
if
(e.getValue() == status) {
40
return
e;
41
}
42
}
43
return
def;
44
}
45
46
public
int
getValue
() {
47
return
value;
48
}
49
}
com.netease.nimlib.sdk.msg.constant.AttachStatusEnum.getValue
int getValue()
Definition:
AttachStatusEnum.java:46
com.netease.nimlib.sdk.msg.constant.AttachStatusEnum.transferred
transferred
传输成功
Definition:
AttachStatusEnum.java:19
com.netease.nimlib.sdk.msg.constant.AttachStatusEnum.transferring
transferring
正在传输
Definition:
AttachStatusEnum.java:15
com.netease.nimlib.sdk.msg.constant.AttachStatusEnum.AttachStatusEnum
AttachStatusEnum(int value)
Definition:
AttachStatusEnum.java:33
com.netease.nimlib.sdk.msg.constant.AttachStatusEnum
附件传输状态枚举类
Definition:
AttachStatusEnum.java:6
com.netease.nimlib.sdk.msg.constant.AttachStatusEnum.fail
fail
传输失败
Definition:
AttachStatusEnum.java:24
com.netease.nimlib.sdk.msg.constant.AttachStatusEnum.cancel
cancel
传输取消
Definition:
AttachStatusEnum.java:29
com.netease.nimlib.sdk.msg.constant.AttachStatusEnum.statusOfValue
static AttachStatusEnum statusOfValue(int status)
Definition:
AttachStatusEnum.java:37
com.netease.nimlib.sdk.msg.constant.AttachStatusEnum.def
def
默认状态,未开始
Definition:
AttachStatusEnum.java:11
生成于 2024年 十月 16日 星期三 10:25:05 , 为 NIMSDK-AOS使用
1.8.13