NIMSDK-AOS 10.4.0-beta
载入中...
搜索中...
未找到
QChatAuthType.java
浏览该文件的文档.
1package com.netease.nimlib.sdk.qchat.enums;
2
3/**
4 * 鉴权方式
5 */
6public enum QChatAuthType {
7 /**
8 * 默认
9 */
11 /**
12 * 动态Token方式
13 */
15 ;
16
17 private int value;
18
19 QChatAuthType(int value) {
20 this.value = value;
21 }
22
23 public int getValue() {
24 return value;
25 }
26
27 public static QChatAuthType typeOfValue(int value) {
28 for (QChatAuthType e : values()) {
29 if (e.getValue() == value) {
30 return e;
31 }
32 }
33 return null;
34 }
35}
static QChatAuthType typeOfValue(int value)