NIMSDK-AOS  9.21.15
ChatRoomMessage.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.chatroom.model;
2 
5 import java.util.List;
6 
7 /**
8  * 聊天室消息
9  */
10 public interface ChatRoomMessage extends IMMessage {
11 
12  /**
13  * 获取聊天室消息扩展属性
14  *
15  * @return 聊天室消息扩展属性
16  */
18 
19  /**
20  * 获取聊天室消息配置
21  *
22  * @return 聊天室消息配置
23  */
25 
26  /**
27  * 设置聊天室消息配置
28  *
29  * @param config 聊天室消息配置
30  */
32 
33  /**
34  * 是否是高优先级消息
35  */
36  boolean isHighPriorityMessage();
37 
38  /**
39  * 获取 消息的目标标签表达式
40  * @return
41  */
42  String getNotifyTargetTags();
43 
44  /**
45  * 设置 消息的目标标签表达式
46  * @param notifyTargetTags
47  */
48  void setNotifyTargetTags(String notifyTargetTags);
49 
50  /**
51  * 设置坐标X
52  * @param locX
53  */
54  void setLocX(Double locX);
55 
56  /**
57  * 设置坐标Y
58  * @param locY
59  */
60  void setLocY(Double locY);
61 
62  /**
63  * 设置坐标Z
64  * @param locZ
65  */
66  void setLocZ(Double locZ);
67 
68  /**
69  * 设置消息接收者账户列表
70  */
71  void setToAccounts(List<String> accounts);
72 
73  /**
74  * 获取路由抄送相关配置
75  *
76  * @return 路由抄送相关配置
77  */
79 }
NIMMessageRouteConfig getRouteConfig()
获取路由抄送相关配置
聊天室消息的配置选项,主要用于设定发消息不存历史记录开关。
boolean isHighPriorityMessage()
是否是高优先级消息
NIM消息实体数据结构。 第三方APP不要调用设置类接口,调用之后不会被持久化
Definition: IMMessage.java:10
void setChatRoomConfig(CustomChatRoomMessageConfig config)
设置聊天室消息配置
String getNotifyTargetTags()
获取 消息的目标标签表达式
CustomChatRoomMessageConfig getChatRoomConfig()
获取聊天室消息配置
void setNotifyTargetTags(String notifyTargetTags)
设置 消息的目标标签表达式
void setToAccounts(List< String > accounts)
设置消息接收者账户列表
ChatRoomMessageExtension getChatRoomMessageExtension()
获取聊天室消息扩展属性