NIMSDK-AOS  9.21.0
QChatMessageReferType.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.enums;
2 
3 /**
4  * 消息引用类型
5  */
6 public enum QChatMessageReferType {
7  /**
8  * 回复的
9  */
10  REPLAY(1),
11  /**
12  * 根Thread
13  */
14  THREAD(2),
15  /**
16  * 所有
17  */
18  ALL(3)
19  ;
20 
21  private int value;
22 
23  QChatMessageReferType(int value) {
24  this.value = value;
25  }
26 
27  public int getValue() {
28  return value;
29  }
30 
31  public static QChatMessageReferType typeOfValue(int value) {
32  for (QChatMessageReferType e : values()) {
33  if (e.getValue() == value) {
34  return e;
35  }
36  }
37  return null;
38  }
39 }