JCSDK-iOS
构造函数 | 属性 | 所有成员列表
JCStorageItem类 参考

#import <JCStorageItem.h>

构造函数

(void) - setFileId: [implementation]
 设置文件唯一标识符 更多...
 
(void) - setUri: [implementation]
 设置文件链接,上传文件可获得 更多...
 
(void) - setPath: [implementation]
 设置文件本地路径,发送时表明发送文件路径,接收时表明文件下载保存路径 更多...
 
(void) - setDirection: [implementation]
 设置上传还是下载,参见 JCStorageItemDirection 更多...
 
(void) - setState: [implementation]
 设置传输状态,参见 JCStorageItemState 更多...
 
(void) - setError: [implementation]
 设置错误码,当文件状态未 JCStorageStateFail 时有效,参见 JCStorageReason 更多...
 
(void) - setProgress: [implementation]
 设置文件传输进度 更多...
 
(void) - setSessId: [implementation]
 
(void) - setFileSize: [implementation]
 

属性

NSString * fileId
 
NSString * uri
 
NSString * path
 
JCStorageItemDirection direction
 
JCStorageItemState state
 
JCStorageReason error
 
int progress
 
int fileSize
 
unsigned int sessId [implementation]
 文件sdk标识
 
unsigned int cookie [implementation]
 cookie
 

详细描述

文件消息对象类

函数文档

◆ setDirection:

- (void) setDirection: (JCStorageItemDirection direction
implementation

设置上传还是下载,参见 JCStorageItemDirection

参数
direction上传还是下载

◆ setError:

- (void) setError: (JCStorageReason error
implementation

设置错误码,当文件状态未 JCStorageStateFail 时有效,参见 JCStorageReason

参数
error错误码

◆ setFileId:

- (void) setFileId: (NSString *)  fileId
implementation

设置文件唯一标识符

参数
fileId文件唯一标识符

◆ setPath:

- (void) setPath: (NSString *)  path
implementation

设置文件本地路径,发送时表明发送文件路径,接收时表明文件下载保存路径

参数
path文件本地路径

◆ setProgress:

- (void) setProgress: (int)  progress
implementation

设置文件传输进度

参数
progress文件传输进度

◆ setState:

- (void) setState: (JCStorageItemState state
implementation

设置传输状态,参见 JCStorageItemState

参数
state传输状态

◆ setUri:

- (void) setUri: (NSString *)  uri
implementation

设置文件链接,上传文件可获得

参数
uri文件链接

属性说明

◆ direction

- (JCStorageItemDirection) direction
readnonatomicassign

文件传输方向

◆ error

- (JCStorageReason) error
readnonatomicassign

文件传输失败的原因

当文件状态为 JCStorageItemStateFail 时有效,参见 JCStorageReason 错误原因

◆ fileId

- (NSString*) fileId
readnonatomiccopy

文件唯一标识符

◆ fileSize

- (int) fileSize
readnonatomicassign

文件大小

◆ path

- (NSString*) path
readnonatomiccopy

文件本地路径

注解
发送时表明发送文件路径,接收时表明文件下载保存路径

◆ progress

- (int) progress
readnonatomicassign

文件传输进度

◆ state

- (JCStorageItemState) state
readnonatomicassign

传输状态,参见 JCStorageItemState

◆ uri

- (NSString*) uri
readnonatomiccopy

文件链接,上传文件可获得