NIMSDK-AOS 10.4.0-beta
载入中...
搜索中...
未找到
QChatVisitorMode.java
浏览该文件的文档.
1package com.netease.nimlib.sdk.qchat.enums;
2
3/**
4 * 游客可见模式
5 */
6public enum QChatVisitorMode {
7 /**
8 * 可见
9 */
11 /**
12 * 不可见
13 */
15 /**
16 * 跟随模式(默认),频道公开游客可见,频道私密游客不可见
17 */
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
跟随模式(默认),频道公开游客可见,频道私密游客不可见