NIMSDK-AOS  10.10.13
V2NIMChatroomQueueChangeType.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.v2.chatroom.enums;
2 
3 /**
4  * 聊天室队列变更类型
5  */
7  /**
8  * 未知
9  */
11 
12  /**
13  * 新增队列元素
14  */
16 
17  /**
18  * 移除队列元素
19  */
21 
22  /**
23  * 清空所有元素
24  */
26 
27  /**
28  * 部分清理
29  */
31 
32  /**
33  * 批量更新
34  */
36  /**
37  * 批量添加
38  */
40  ;
41 
42 
43  private int value;
44 
46  this.value = value;
47  }
48 
49  public final int getValue() {
50  return this.value;
51  }
52 
53  public static V2NIMChatroomQueueChangeType typeOfValue(int value) {
54  for (V2NIMChatroomQueueChangeType type : values()) {
55  if (type.value == value) {
56  return type;
57  }
58  }
59  return V2NIM_CHATROOM_QUEUE_CHANGE_TYPE_UNKNOWN;
60  }
61 }