NIMSDK-AOS  9.19.0
TeamTypeEnum.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.team.constant;
2 
3 import com.netease.nimlib.biz.constant.ITeamService;
4 
5 /**
6  * 群类型定义
7  */
8 public enum TeamTypeEnum {
9 
10  /**
11  * 讨论组,仅具有基本的权限管理功能,所有人都能加人<br>
12  * 仅拥有者可以踢人
13  */
14  Normal(ITeamService.TeamType.NORMAL),
15 
16  /**
17  * 高级群,有完善的权限管理功能
18  */
19  Advanced(ITeamService.TeamType.ADVANCED),
20  ;
21 
22  private int value;
23 
24  TeamTypeEnum(int value) {
25  this.value = value;
26  }
27 
28  public static TeamTypeEnum typeOfValue(int value) {
29  for (TeamTypeEnum type : values()) {
30  if (type.value == value) {
31  return type;
32  }
33  }
34  return Normal;
35  }
36 
37  public int getValue() {
38  return value;
39  }
40 }
static TeamTypeEnum typeOfValue(int value)
Normal
讨论组,仅具有基本的权限管理功能,所有人都能加人 仅拥有者可以踢人
Advanced
高级群,有完善的权限管理功能