NIMSDK-AOS  10.9.71
Public 成员函数 | 所有成员列表
com.netease.nimlib.sdk.v2.chatroom.option.V2NIMChatroomMessageListOption类 参考

聊天室消息查询选项 更多...

类 com.netease.nimlib.sdk.v2.chatroom.option.V2NIMChatroomMessageListOption 继承关系图:

Public 成员函数

 V2NIMChatroomMessageListOption ()
 
 V2NIMChatroomMessageListOption (V2NIMMessageQueryDirection direction, List< V2NIMMessageType > messageTypes, long beginTime, int limit)
 
V2NIMMessageQueryDirection getDirection ()
 获取消息查询方向 更多...
 
List< V2NIMMessageTypegetMessageTypes ()
 获取查询消息的类型列表 更多...
 
long getBeginTime ()
 获取消息查询开始时间 更多...
 
int getLimit ()
 获取每次查询条数 更多...
 
void setDirection (V2NIMMessageQueryDirection direction)
 设置消息查询方向 更多...
 
void setMessageTypes (List< V2NIMMessageType > messageTypes)
 设置查询消息的类型列表 更多...
 
void setBeginTime (long beginTime)
 设置消息查询开始时间 更多...
 
void setLimit (int limit)
 设置每次查询条数 更多...
 
boolean isValid ()
 

详细描述

聊天室消息查询选项

在文件 V2NIMChatroomMessageListOption.java11 行定义.

构造及析构函数说明

com.netease.nimlib.sdk.v2.chatroom.option.V2NIMChatroomMessageListOption.V2NIMChatroomMessageListOption ( )

在文件 V2NIMChatroomMessageListOption.java29 行定义.

com.netease.nimlib.sdk.v2.chatroom.option.V2NIMChatroomMessageListOption.V2NIMChatroomMessageListOption ( V2NIMMessageQueryDirection  direction,
List< V2NIMMessageType messageTypes,
long  beginTime,
int  limit 
)
参数
direction消息查询方向
messageTypes根据消息类型查询消息, 为null或空列表, 则表示查询所有消息类型
beginTime消息查询开始时间,首次传0,单位毫秒
limit每次查询条数

在文件 V2NIMChatroomMessageListOption.java39 行定义.

成员函数说明

long com.netease.nimlib.sdk.v2.chatroom.option.V2NIMChatroomMessageListOption.getBeginTime ( )

获取消息查询开始时间

返回
消息查询开始时间

在文件 V2NIMChatroomMessageListOption.java71 行定义.

V2NIMMessageQueryDirection com.netease.nimlib.sdk.v2.chatroom.option.V2NIMChatroomMessageListOption.getDirection ( )

获取消息查询方向

返回
消息查询方向

在文件 V2NIMChatroomMessageListOption.java50 行定义.

int com.netease.nimlib.sdk.v2.chatroom.option.V2NIMChatroomMessageListOption.getLimit ( )

获取每次查询条数

返回
每次查询条数

在文件 V2NIMChatroomMessageListOption.java82 行定义.

List<V2NIMMessageType> com.netease.nimlib.sdk.v2.chatroom.option.V2NIMChatroomMessageListOption.getMessageTypes ( )

获取查询消息的类型列表

返回
查询消息的类型列表

在文件 V2NIMChatroomMessageListOption.java63 行定义.

boolean com.netease.nimlib.sdk.v2.chatroom.option.V2NIMChatroomMessageListOption.isValid ( )

在文件 V2NIMChatroomMessageListOption.java121 行定义.

void com.netease.nimlib.sdk.v2.chatroom.option.V2NIMChatroomMessageListOption.setBeginTime ( long  beginTime)

设置消息查询开始时间

参数
beginTime消息查询开始时间

在文件 V2NIMChatroomMessageListOption.java109 行定义.

void com.netease.nimlib.sdk.v2.chatroom.option.V2NIMChatroomMessageListOption.setDirection ( V2NIMMessageQueryDirection  direction)

设置消息查询方向

参数
direction消息查询方向

在文件 V2NIMChatroomMessageListOption.java93 行定义.

void com.netease.nimlib.sdk.v2.chatroom.option.V2NIMChatroomMessageListOption.setLimit ( int  limit)

设置每次查询条数

参数
limit每次查询条数

在文件 V2NIMChatroomMessageListOption.java117 行定义.

void com.netease.nimlib.sdk.v2.chatroom.option.V2NIMChatroomMessageListOption.setMessageTypes ( List< V2NIMMessageType messageTypes)

设置查询消息的类型列表

参数
messageTypes查询消息的类型列表

在文件 V2NIMChatroomMessageListOption.java101 行定义.


该类的文档由以下文件生成: