Chat SDK for Unity and Windows v1.2.1
Public Member Functions | Public Attributes | List of all members
AgoraChat.MessageBody.VoiceBody Class Reference
Inheritance diagram for AgoraChat.MessageBody.VoiceBody:
AgoraChat.MessageBody.FileBody AgoraChat.IMessageBody

Public Member Functions

 VoiceBody (string localPath, string displayName, int duration, long fileSize=0)
 
- Public Member Functions inherited from AgoraChat.MessageBody.FileBody
 FileBody (string localPath, string displayName="", long fileSize=0)
 

Public Attributes

int Duration
 
- Public Attributes inherited from AgoraChat.MessageBody.FileBody
string LocalPath
 
string DisplayName
 
string Secret
 
string RemotePath
 
long FileSize
 
DownLoadStatus DownStatus = DownLoadStatus.PENDING
 
- Public Attributes inherited from AgoraChat.IMessageBody
MessageBodyType Type
 

Additional Inherited Members

- Properties inherited from AgoraChat.IMessageBody
long OperationTime [get, set]
 
string OperatorId [get, set]
 
long OperationCount [get, set]
 

Detailed Description

The voice message body.

Constructor & Destructor Documentation

◆ VoiceBody()

AgoraChat.MessageBody.VoiceBody.VoiceBody ( string  localPath,
string  displayName,
int  duration,
long  fileSize = 0 
)

The voice message body constructor.

Parameters
localPathThe local path of the voice message.
displayNameThe display name of the voice message.
durationThe voice duration in seconds.
fileSizeThe size of the voice file, in bytes.

Member Data Documentation

◆ Duration

int AgoraChat.MessageBody.VoiceBody.Duration

The voice duration in seconds.