NIMSDK-AOS  10.9.10
TeamMessageNotifyTypeEnum.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.team.constant;
2 
3 /**
4  * 高级群消息通知类型
5  */
6 
8 
9  /**
10  * 群全部消息提醒
11  */
12  All(0),
13 
14  /**
15  * 管理员消息提醒
16  */
17  Manager(1),
18 
19  /**
20  * 群所有消息不提醒
21  */
22  Mute(2);
23 
24  private int value;
25 
27  this.value = value;
28  }
29 
30  public static TeamMessageNotifyTypeEnum typeOfValue(int value) {
31  for (TeamMessageNotifyTypeEnum type : values()) {
32  if (type.value == value) {
33  return type;
34  }
35  }
36  return All;
37  }
38 
39  public int getValue() {
40  return value;
41  }
42 }