NIMSDK-AOS  9.16.3
QChatGetReferMessagesResult.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.result;
2 
5 import java.io.Serializable;
6 
7 public class QChatGetReferMessagesResult implements Serializable {
11  private final QChatMessage replyMessage;
15  private final QChatMessage threadMessage;
21  public QChatGetReferMessagesResult(QChatMessage replyMessage, QChatMessage threadMessage) {
22  this.replyMessage = replyMessage;
23  this.threadMessage = threadMessage;
24  }
25 
32  return replyMessage;
33  }
34 
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才有...