VoiceMessage

public final class VoiceMessage extends MediaMessageContent

high definition Voice message.

Inherits MediaMessageContent. This message will store and count toward Unread message count.

Inherits from MediaMessageContent properties:

  • localUri Local Voice File path

  • remoteUri Remote Voice File download URL

  • name Voice File name

Constructors

Link copied to clipboard

Properties

Link copied to clipboard
private Integer duration

Voice Duration (Unit: seconds)

Inherited properties

Link copied to clipboard
private Long destructTime

after reading i.e. burn-after-reading destroy When time (Unit: seconds), message Read after passing This When destroy after time

Link copied to clipboard
private String extra

Message content extra data (follow message Send, Sync Remote)

Link copied to clipboard
private Boolean isDestruct

Whether after reading i.e. burn message

Link copied to clipboard
private String localUri

Media Content Local Path

Link copied to clipboard

@ mention Info

Link copied to clipboard
private String name

Media Content File name

Link copied to clipboard
private String remoteUri

Media Content Upload Server after Remote URL

Functions

Link copied to clipboard
public final Integer getDuration()

Voice Duration (Unit: seconds)

Link copied to clipboard
public final Unit setDuration(Integer duration)

Voice Duration (Unit: seconds)

Link copied to clipboard
public String toString()

Inherited functions

Link copied to clipboard
public final Long getDestructTime()

after reading i.e. burn-after-reading destroy When time (Unit: seconds), message Read after passing This When destroy after time

Link copied to clipboard
public final String getExtra()

Message content extra data (follow message Send, Sync Remote)

Link copied to clipboard
public final String getLocalUri()

Media Content Local Path

Link copied to clipboard

@ mention Info

Link copied to clipboard
public final String getName()

Media Content File name

Link copied to clipboard
public final String getRemoteUri()

Media Content Upload Server after Remote URL

Link copied to clipboard
public final Boolean isDestruct()

Whether after reading i.e. burn message

Link copied to clipboard
public final Unit setDestruct(Boolean isDestruct)

Whether after reading i.e. burn message

Link copied to clipboard
public final Unit setDestructTime(Long destructTime)

after reading i.e. burn-after-reading destroy When time (Unit: seconds), message Read after passing This When destroy after time

Link copied to clipboard
public final Unit setExtra(String extra)

Message content extra data (follow message Send, Sync Remote)

Link copied to clipboard
public final Unit setLocalUri(String localUri)

Media Content Local Path

Link copied to clipboard
public final Unit setMentionedInfo(MentionedInfo mentionedInfo)

@ mention Info

Link copied to clipboard
public final Unit setName(String name)

Media Content File name

Link copied to clipboard
public final Unit setRemoteUri(String remoteUri)

Media Content Upload Server after Remote URL