ClearSubChannelMessagesParams

Clear sub-channel history message Parameter.

Used for com.nexconn.chat.channel.CommunitySubChannel.clearSubChannelMessages Clear sub-channel specified When time Before message.

Usage Example:

// Clear sub-channel specified When time Before message (Local only)
val params = ClearSubChannelMessagesParams(timestamp = System.currentTimeMillis() - 86400000)
subChannel.clearMessages(params) { error ->
if (error == null) {
// Cleared successfully
}
}

// Clear sub-channel specified When time Before message (Local + Remote)
val params = ClearSubChannelMessagesParams(
timestamp = System.currentTimeMillis() - 86400000,
policy = MessageOperationPolicy.LOCAL_REMOTE
)
subChannel.clearMessages(params) { error ->
// ...
}

Parameters

policy

消息操作策略,默认仅本地

Constructors

Properties

Link copied to clipboard
Link copied to clipboard
private final Long timestamp

Functions

Link copied to clipboard
Link copied to clipboard
public final Long getTimestamp()