NIMSDK-AOS
10.6.0
basesdk
src
com
netease
nimlib
sdk
nos
model
NosTransferProgress.java
浏览该文件的文档.
1
package
com.netease.nimlib.sdk.nos.model;
2
3
import
java.io.Serializable;
4
8
public
class
NosTransferProgress
implements
Serializable {
9
10
private
final
String key;
11
private
final
long
transferred;
12
private
final
long
total;
13
21
public
NosTransferProgress
(String key,
long
transferred,
long
total) {
22
this.key = key;
23
this.transferred = transferred;
24
this.total = total;
25
}
26
32
public
String
getKey
() {
33
return
key;
34
}
35
41
public
long
getTransferred
() {
42
return
transferred;
43
}
44
50
public
long
getTotal
() {
51
return
total;
52
}
53
}
com.netease.nimlib.sdk.nos.model.NosTransferProgress.getKey
String getKey()
获取文件的唯一标识(上传时key是文件路径,下载时key为URL)
Definition:
NosTransferProgress.java:32
com.netease.nimlib.sdk.nos.model.NosTransferProgress
NOS文件传输进度
Definition:
NosTransferProgress.java:8
com.netease.nimlib.sdk.nos.model.NosTransferProgress.getTransferred
long getTransferred()
获取已经传输的字节数
Definition:
NosTransferProgress.java:41
com.netease.nimlib.sdk.nos.model.NosTransferProgress.getTotal
long getTotal()
获取文件总长度
Definition:
NosTransferProgress.java:50
com.netease.nimlib.sdk.nos.model.NosTransferProgress.NosTransferProgress
NosTransferProgress(String key, long transferred, long total)
构造函数
Definition:
NosTransferProgress.java:21
生成于 2024年 十一月 19日 星期二 20:07:49 , 为 NIMSDK-AOS使用
1.8.13