CombineMessage

public final class CombineMessage extends MediaMessageContent

Merge-forward (combined) message.

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

Inherits from MediaMessageContent properties:

  • localPath Local merge message file path

  • remoteUrl Remote merge message file download URL

  • name Merge message file name

Constructors

Link copied to clipboard

Properties

Link copied to clipboard
private final ChannelType channelType

Source channel type of the forwarded messages.

Link copied to clipboard
private final String jsonMsgKey

Key for fetching remote combined message payload.

Link copied to clipboard
private final List<CombineMsgItem> msgList

List of individual forwarded message items.

Link copied to clipboard
private Integer msgNum

Total number of forwarded messages.

Link copied to clipboard
private List<String> nameList

Sender name list (deduplicated for direct channels, group name for group channels).

Link copied to clipboard
private List<String> summaryList

Summary content list for display preview.

Inherited properties

Link copied to clipboard
private Long destructTime

Auto-destruct duration in seconds after the message is read.

Link copied to clipboard
private String extra

Extra data attached to the message content (sent along with the message, synced remotely).

Link copied to clipboard
private Boolean isDestruct

Whether this is a burn-after-reading message.

Link copied to clipboard
private String localPath

Local file path of the media content.

Link copied to clipboard

Mention (@) info.

Link copied to clipboard
private String name

Media content file name.

Link copied to clipboard
private String remoteUrl

Remote URL of the media content after upload.

Functions

Link copied to clipboard
public final ChannelType getChannelType()

Source channel type of the forwarded messages.

Link copied to clipboard
public final String getJsonMsgKey()

Key for fetching remote combined message payload.

Link copied to clipboard
public final List<CombineMsgItem> getMsgList()

List of individual forwarded message items.

Link copied to clipboard
public final Integer getMsgNum()

Total number of forwarded messages.

Link copied to clipboard
public final List<String> getNameList()

Sender name list (deduplicated for direct channels, group name for group channels).

Link copied to clipboard
public final List<String> getSummaryList()

Summary content list for display preview.

Link copied to clipboard
public final Unit setMsgNum(Integer msgNum)

Total number of forwarded messages.

Link copied to clipboard
public final Unit setNameList(List<String> nameList)

Sender name list (deduplicated for direct channels, group name for group channels).

Link copied to clipboard
public final Unit setSummaryList(List<String> summaryList)

Summary content list for display preview.

Link copied to clipboard
public String toString()

Inherited functions

Link copied to clipboard
public final Long getDestructTime()

Auto-destruct duration in seconds after the message is read.

Link copied to clipboard
public final String getExtra()

Extra data attached to the message content (sent along with the message, synced remotely).

Link copied to clipboard
public final String getLocalPath()

Local file path of the media content.

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 getRemoteUrl()

Remote URL of the media content after upload.

Link copied to clipboard
public final Boolean isDestruct()

Whether this is a burn-after-reading message.

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

Whether this is a burn-after-reading message.

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

Auto-destruct duration in seconds after the message is read.

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

Extra data attached to the message content (sent along with the message, synced remotely).

Link copied to clipboard
public final Unit setLocalPath(String localPath)

Local file path of the media content.

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 setRemoteUrl(String remoteUrl)

Remote URL of the media content after upload.