ECFileMessageBody Class Reference

Inherits from ECMessageBody : NSObject
Declared in ECFileMessageBody.h

Overview

附件消息体

  displayName

文件消息体的显示名

@property (nonatomic, strong) NSString *displayName

Declared In

ECFileMessageBody.h

  serverTime

服务器时间

@property (nonatomic, strong) NSString *serverTime

Declared In

ECFileMessageBody.h

  localPath

文件消息体的本地文件路径

@property (nonatomic, strong) NSString *localPath

Declared In

ECFileMessageBody.h

  remotePath

文件消息体的服务器远程文件路径

@property (nonatomic, strong) NSString *remotePath

Declared In

ECFileMessageBody.h

  fileLength

文件消息体的文件长度, 以字节为单位

@property (nonatomic) long long fileLength

Declared In

ECFileMessageBody.h

  isCompress

是否对文件进行压缩,默认是YES

@property (nonatomic) BOOL isCompress

Declared In

ECFileMessageBody.h

  mediaDownloadStatus

附件是否下载完成

@property (nonatomic) ECMediaDownloadStatus mediaDownloadStatus

Declared In

ECFileMessageBody.h

– initWithFile:displayName:

以文件路径构造文件对象

- (id)initWithFile:(NSString *)filePath displayName:(NSString *)displayName

Parameters

filePath

磁盘文件全路径

displayName

文件对象的显示名

Return Value

文件对象

Discussion

@method

Declared In

ECFileMessageBody.h