NIMSDK-AOS  10.5.0
QChatReplyMessageParam.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.param;
2 
3 import androidx.annotation.NonNull;
5 
9 public class QChatReplyMessageParam {
10 
14  @NonNull
15  private final QChatMessage message;
19  @NonNull
20  private final QChatMessage replyMessage;
24  private boolean resend = false;
25 
31  public QChatReplyMessageParam(@NonNull QChatSendMessageParam sendMessageParam, @NonNull QChatMessage replyMessage) {
32  this.message = sendMessageParam.toQChatMessage();
33  this.replyMessage = replyMessage;
34  }
35 
42  public QChatReplyMessageParam(@NonNull QChatMessage message, @NonNull QChatMessage replyMessage, boolean resend) {
43  this.message = message;
44  this.replyMessage = replyMessage;
45  this.resend = resend;
46  }
47 
48  @NonNull
50  return message;
51  }
52 
53  @NonNull
55  return replyMessage;
56  }
57 
58  public boolean isResend() {
59  return resend;
60  }
61 }
QChatReplyMessageParam(@NonNull QChatSendMessageParam sendMessageParam, @NonNull QChatMessage replyMessage)
QChatReplyMessageParam(@NonNull QChatMessage message, @NonNull QChatMessage replyMessage, boolean resend)