NIMSDK-AOS  9.16.0
Public 成员函数 | 所有成员列表
com.netease.nimlib.sdk.chatroom.model.GetMessagesByTagsParam类 参考

Public 成员函数

 GetMessagesByTagsParam (long roomId, @NonNull List< String > tags)
 构造函数 更多...
 
long getRoomId ()
 
List< String > getTags ()
 
List< MsgTypeEnumgetTypes ()
 只查询指定消息类型的 更多...
 
void setTypes (List< MsgTypeEnum > types)
 设置消息类型限制,只查询指定消息类型的消息 更多...
 
Long getFromTime ()
 起始时间限制,只查询≥起始时间的消息 更多...
 
void setFromTime (Long fromTime)
 设置起始时间限制,只查询≥起始时间的消息 更多...
 
Long getToTime ()
 结束时间限制,只查询≤结束时间的消息 更多...
 
void setToTime (Long toTime)
 设置结束时间限制,只查询≤结束时间的消息 更多...
 
Integer getLimit ()
 数量限制,只结果只包含前面指定条数的消息 更多...
 
void setLimit (Integer limit)
 设置数量限制,只结果只包含前面指定条数的消息 更多...
 
Boolean getReverse ()
 查询顺序 更多...
 
void setReverse (Boolean reverse)
 设置查询顺序 更多...
 
String toString ()
 

详细描述

在文件 GetMessagesByTagsParam.java8 行定义.

构造及析构函数说明

◆ GetMessagesByTagsParam()

com.netease.nimlib.sdk.chatroom.model.GetMessagesByTagsParam.GetMessagesByTagsParam ( long  roomId,
@NonNull List< String >  tags 
)

构造函数

参数
roomId聊天室ID
tags标签

在文件 GetMessagesByTagsParam.java46 行定义.

成员函数说明

◆ getFromTime()

Long com.netease.nimlib.sdk.chatroom.model.GetMessagesByTagsParam.getFromTime ( )

起始时间限制,只查询≥起始时间的消息

返回
起始时间ms

在文件 GetMessagesByTagsParam.java85 行定义.

◆ getLimit()

Integer com.netease.nimlib.sdk.chatroom.model.GetMessagesByTagsParam.getLimit ( )

数量限制,只结果只包含前面指定条数的消息

返回
最大消息数量

在文件 GetMessagesByTagsParam.java117 行定义.

◆ getReverse()

Boolean com.netease.nimlib.sdk.chatroom.model.GetMessagesByTagsParam.getReverse ( )

查询顺序

返回
是否反向

在文件 GetMessagesByTagsParam.java133 行定义.

◆ getRoomId()

long com.netease.nimlib.sdk.chatroom.model.GetMessagesByTagsParam.getRoomId ( )
返回
聊天室ID

在文件 GetMessagesByTagsParam.java54 行定义.

◆ getTags()

List<String> com.netease.nimlib.sdk.chatroom.model.GetMessagesByTagsParam.getTags ( )
返回
标签

在文件 GetMessagesByTagsParam.java61 行定义.

◆ getToTime()

Long com.netease.nimlib.sdk.chatroom.model.GetMessagesByTagsParam.getToTime ( )

结束时间限制,只查询≤结束时间的消息

返回
结束时间

在文件 GetMessagesByTagsParam.java101 行定义.

◆ getTypes()

List<MsgTypeEnum> com.netease.nimlib.sdk.chatroom.model.GetMessagesByTagsParam.getTypes ( )

只查询指定消息类型的

返回
消息类型

在文件 GetMessagesByTagsParam.java69 行定义.

◆ setFromTime()

void com.netease.nimlib.sdk.chatroom.model.GetMessagesByTagsParam.setFromTime ( Long  fromTime)

设置起始时间限制,只查询≥起始时间的消息

参数
fromTime起始时间ms

在文件 GetMessagesByTagsParam.java93 行定义.

◆ setLimit()

void com.netease.nimlib.sdk.chatroom.model.GetMessagesByTagsParam.setLimit ( Integer  limit)

设置数量限制,只结果只包含前面指定条数的消息

参数
limit最大消息数量

在文件 GetMessagesByTagsParam.java125 行定义.

◆ setReverse()

void com.netease.nimlib.sdk.chatroom.model.GetMessagesByTagsParam.setReverse ( Boolean  reverse)

设置查询顺序

参数
reverse是否反向

在文件 GetMessagesByTagsParam.java141 行定义.

◆ setToTime()

void com.netease.nimlib.sdk.chatroom.model.GetMessagesByTagsParam.setToTime ( Long  toTime)

设置结束时间限制,只查询≤结束时间的消息

参数
toTime结束时间ms

在文件 GetMessagesByTagsParam.java109 行定义.

◆ setTypes()

void com.netease.nimlib.sdk.chatroom.model.GetMessagesByTagsParam.setTypes ( List< MsgTypeEnum types)

设置消息类型限制,只查询指定消息类型的消息

参数
types消息类型

在文件 GetMessagesByTagsParam.java77 行定义.

◆ toString()

String com.netease.nimlib.sdk.chatroom.model.GetMessagesByTagsParam.toString ( )

在文件 GetMessagesByTagsParam.java146 行定义.


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