NIMSDK-AOS  9.16.0
QChatVisitorMode.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.enums;
2 
6 public enum QChatVisitorMode {
10  VISIBLE(0),
18  FOLLOW(2),
19  ;
20 
21  private final int value;
22 
23  QChatVisitorMode(int value) {
24  this.value = value;
25  }
26 
27  public int getValue() {
28  return value;
29  }
30 
31  public static QChatVisitorMode typeOfValue(int value) {
32  for (QChatVisitorMode e : values()) {
33  if (e.getValue() == value) {
34  return e;
35  }
36  }
37  return FOLLOW;
38  }
39 }
static QChatVisitorMode typeOfValue(int value)
FOLLOW
跟随模式(默认),频道公开游客可见,频道私密游客不可见