RemoteHistoryMessageParams

public final class RemoteHistoryMessageParams

Remote history message query parameters.

Used for com.nexconn.chat.channel.BaseChannel.getRemoteHistoryMessages Query Remote history message.

*Note: This Feature need In enable history in developer console message cloud storage Feature. Not supported chatroom.

val params = RemoteHistoryMessageParams().apply {
dateTime = System.currentTimeMillis()
count = 20
order = RemoteHistoryMessageParams.PullOrder.DESCEND
includeLocalExistMessage = false
}
channel.getRemoteHistoryMessages(params) { messages, error ->
if (error == null && messages != null) {
if (error == null && messages!= null) {
}
}

Constructors

Types

Link copied to clipboard

Value range: 0 < count <= 100, Default 20.

Properties

Link copied to clipboard
private Integer count

Default is 0, Indicates starting from the latest message.

Link copied to clipboard
private Long dateTime

Ascending, Get compare Timestamp Update message (When time ascending).

Link copied to clipboard
private Boolean includeLocalExistMessage

Default is PullOrder.DESCEND.

Link copied to clipboard

Value range: 0 < count <= 100, Default 20.

Functions

Link copied to clipboard
public final Integer getCount()

Default is 0, Indicates starting from the latest message.

Link copied to clipboard
public final Long getDateTime()

Ascending, Get compare Timestamp Update message (When time ascending).

Link copied to clipboard
public final Boolean getIncludeLocalExistMessage()

Default is PullOrder.DESCEND.

Link copied to clipboard

Value range: 0 < count <= 100, Default 20.

Link copied to clipboard
public final Unit setCount(Integer count)

Default is 0, Indicates starting from the latest message.

Link copied to clipboard
public final Unit setDateTime(Long dateTime)

Ascending, Get compare Timestamp Update message (When time ascending).

Link copied to clipboard
public final Unit setIncludeLocalExistMessage(Boolean includeLocalExistMessage)

Default is PullOrder.DESCEND.

Link copied to clipboard

Value range: 0 < count <= 100, Default 20.

Link copied to clipboard
public String toString()