NIMSDK-AOS
9.19.0
basesdk
src
com
netease
nimlib
sdk
msg
model
AttachmentProgress.java
浏览该文件的文档.
1
package
com.netease.nimlib.sdk.msg.model;
2
3
import
java.io.Serializable;
4
5
/**
6
* 附件发送/接收进度通知
7
*/
8
public
class
AttachmentProgress
implements
Serializable {
9
10
private
final
String uuid;
11
private
final
long
transferred;
12
private
final
long
total;
13
14
/**
15
* 构造函数
16
* @param uuid 消息的UUID
17
* @param transferred 消息附件文件当前已传输的字节数
18
* @param total 消息附件文件总大小
19
*/
20
public
AttachmentProgress
(String uuid,
long
transferred,
long
total) {
21
this.uuid = uuid;
22
this.transferred = transferred;
23
this.total = total;
24
}
25
26
/**
27
* 获取附件对应的消息的uuid
28
* @return uuid
29
*/
30
public
String
getUuid
() {
31
return
uuid;
32
}
33
34
/**
35
* 获取已经传输的字节数
36
* @return 已经传输的字节数
37
*/
38
public
long
getTransferred
() {
39
return
transferred;
40
}
41
42
/**
43
* 获取文件总长度
44
* @return 文件总长度
45
*/
46
public
long
getTotal
() {
47
return
total;
48
}
49
}
com.netease.nimlib.sdk.msg.model.AttachmentProgress.getUuid
String getUuid()
获取附件对应的消息的uuid
Definition:
AttachmentProgress.java:30
com.netease.nimlib.sdk.msg.model.AttachmentProgress
附件发送/接收进度通知
Definition:
AttachmentProgress.java:8
com.netease.nimlib.sdk.msg.model.AttachmentProgress.AttachmentProgress
AttachmentProgress(String uuid, long transferred, long total)
构造函数
Definition:
AttachmentProgress.java:20
com.netease.nimlib.sdk.msg.model.AttachmentProgress.getTransferred
long getTransferred()
获取已经传输的字节数
Definition:
AttachmentProgress.java:38
com.netease.nimlib.sdk.msg.model.AttachmentProgress.getTotal
long getTotal()
获取文件总长度
Definition:
AttachmentProgress.java:46
生成于 2024年 十月 16日 星期三 10:25:05 , 为 NIMSDK-AOS使用
1.8.13