NIMSDK-AOS  9.19.0
QChatGetReferMessagesResult.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.result;
2 
5 import java.io.Serializable;
6 
7 public class QChatGetReferMessagesResult implements Serializable {
8  /**
9  * 被回复的消息
10  */
11  private final QChatMessage replyMessage;
12  /**
13  * 根消息
14  */
15  private final QChatMessage threadMessage;
16  /**
17  *
18  * @param replyMessage 被回复的消息
19  * @param threadMessage 根消息
20  */
21  public QChatGetReferMessagesResult(QChatMessage replyMessage, QChatMessage threadMessage) {
22  this.replyMessage = replyMessage;
23  this.threadMessage = threadMessage;
24  }
25 
26  /**
27  * 获取被回复的消息,查询时消息引用类型为
28  * {@link QChatMessageReferType#REPLAY}或者{@link QChatMessageReferType#ALL}才有值
29  * @return
30  */
32  return replyMessage;
33  }
34 
35  /**
36  * 获取根消息,查询时消息引用类型为
37  * {@link QChatMessageReferType#THREAD}或者{@link QChatMessageReferType#ALL}才有值
38  * @return
39  */
41  return threadMessage;
42  }
43 
44  @Override
45  public String toString() {
46  return "QChatGetReferMessagesResult{" +
47  "replyMessage=" + replyMessage +
48  ", threadMessage=" + threadMessage +
49  '}';
50  }
51 }
QChatMessage getThreadMessage()
获取根消息,查询时消息引用类型为 QChatMessageReferType#THREAD或者QChatMessageReferType#ALL才有值 ...
QChatGetReferMessagesResult(QChatMessage replyMessage, QChatMessage threadMessage)
QChatMessage getReplyMessage()
获取被回复的消息,查询时消息引用类型为 QChatMessageReferType#REPLAY或者QChatMessageReferType#ALL才有...