NIMSDK-AOS  9.19.0
QChatMessageAntiSpamResult.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.model;
2 
3 import java.io.Serializable;
4 
5 /**
6  * 消息反垃圾结果
7  */
8 public class QChatMessageAntiSpamResult implements Serializable {
9 
10  /**
11  * 消息是否被反垃圾了
12  */
13  private final boolean isAntiSpam;
14  /**
15  * 易盾反垃圾结果
16  */
17  private final String yidunAntiSpamRes;
18 
19  public QChatMessageAntiSpamResult(boolean isAntiSpam,String yidunAntiSpamRes) {
20  this.isAntiSpam = isAntiSpam;
21  this.yidunAntiSpamRes = yidunAntiSpamRes;
22  }
23 
24  /**
25  * 消息是否被反垃圾了
26  * @return
27  */
28  public boolean isAntiSpam() {
29  return isAntiSpam;
30  }
31 
32  /**
33  * 获取易盾反垃圾结果
34  * @return
35  */
36  public String getYidunAntiSpamRes() {
37  return yidunAntiSpamRes;
38  }
39 
40  @Override
41  public String toString() {
42  return "QChatMessageAntiSpamResult{" +
43  "isAntiSpam=" + isAntiSpam +
44  ", yidunAntiSpamRes='" + yidunAntiSpamRes + '\'' +
45  '}';
46  }
47 }
QChatMessageAntiSpamResult(boolean isAntiSpam, String yidunAntiSpamRes)