public class AudioAttachment extends FileAttachment
displayName, extension, forceUpload, md5, nosTokenSceneKey, path, size, url
Constructor and Description |
---|
AudioAttachment() |
AudioAttachment(java.lang.String attach) |
Modifier and Type | Method and Description |
---|---|
boolean |
getAutoTransform() |
long |
getDuration()
Get the duration of the audio file
|
java.lang.String |
getText() |
protected void |
load(JSONObject json) |
protected void |
save(JSONObject json) |
void |
setAutoTransform(boolean autoTransform) |
void |
setDuration(long duration)
Set the playback duration for the audio file
|
void |
setText(java.lang.String text) |
protected NimStorageType |
storageType() |
getDisplayName, getExpire, getExtension, getFileName, getMd5, getNosTokenSceneKey, getPath, getPathForSave, getSize, getThumbPath, getThumbPathForSave, getUrl, isForceUpload, setDisplayName, setExtension, setForceUpload, setMd5, setNosTokenSceneKey, setPath, setSize, setUrl, toJson
public AudioAttachment()
public AudioAttachment(java.lang.String attach)
public long getDuration()
public void setDuration(long duration)
public boolean getAutoTransform()
public void setAutoTransform(boolean autoTransform)
public java.lang.String getText()
public void setText(java.lang.String text)
protected NimStorageType storageType()
storageType
in class FileAttachment
protected void save(JSONObject json)
save
in class FileAttachment
protected void load(JSONObject json)
load
in class FileAttachment