Chat SDK for Unity and Windows v1.2.0
Public 成员函数 | Public 属性 | 所有成员列表
AgoraChat.MessageBody.FileBody类 参考
类 AgoraChat.MessageBody.FileBody 继承关系图:
AgoraChat.IMessageBody AgoraChat.MessageBody.ImageBody AgoraChat.MessageBody.VideoBody AgoraChat.MessageBody.VoiceBody

Public 成员函数

 FileBody (string localPath, string displayName="", long fileSize=0)
 

Public 属性

string LocalPath
 
string DisplayName
 
string Secret
 
string RemotePath
 
long FileSize
 
DownLoadStatus DownStatus = DownLoadStatus.PENDING
 
- Public 属性 继承自 AgoraChat.IMessageBody
MessageBodyType Type
 

额外继承的成员函数

- 属性 继承自 AgoraChat.IMessageBody
long OperationTime [get, set]
 
string OperatorId [get, set]
 
long OperationCount [get, set]
 

详细描述

文件消息体。

构造及析构函数说明

◆ FileBody()

AgoraChat.MessageBody.FileBody.FileBody ( string  localPath,
string  displayName = "",
long  fileSize = 0 
)

文件消息体构造方法。

参数
localPath文件的本地路径。
displayName文件的显示名称。
fileSize文件大小,单位为字节。

类成员变量说明

◆ LocalPath

string AgoraChat.MessageBody.FileBody.LocalPath

文件的本地路径。

◆ DisplayName

string AgoraChat.MessageBody.FileBody.DisplayName

文件显示名称。

◆ Secret

string AgoraChat.MessageBody.FileBody.Secret

文件下载密钥。

◆ RemotePath

string AgoraChat.MessageBody.FileBody.RemotePath

文件在服务器上的保存路径。

◆ FileSize

long AgoraChat.MessageBody.FileBody.FileSize

文件大小,单位为字节。

◆ DownStatus

DownLoadStatus AgoraChat.MessageBody.FileBody.DownStatus = DownLoadStatus.PENDING

文件下载状态。