NIMSDK-AOS  10.9.80
V2NIMMessageRevokeType.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.v2.message.enums;
2 
3 import androidx.annotation.Nullable;
4 
5 // 消息撤回类型
6 public enum V2NIMMessageRevokeType {
7 
8  // 未定义
10 
11  // 点对点双向撤回
12  // SystemMsgType.P2P_DELETE_MSG(7)
14 
15  // 群双向撤回
16  // SystemMsgType.TEAM_DELETE_MSG(8)
18 
19  // 超大群双向撤回
20  // SystemMsgType.SUPERTEAM_DELETE_MSG(12)
22 
23  // 点对点单向撤回
24  // p2p消息单向删除,发送方无感知,接收方消息会被清掉
25  // SystemMsgType.P2P_ONE_WAY_DELETE_MSG(13)
27 
28  // 群单向撤回
29  // team消息单向删除,发送方无感知,接收方消息会被清掉
30  // SystemMsgType.TEAM_ONE_WAY_DELETE_MSG(14)
32  ;
33 
34  private final int value;
35 
37  this.value = value;
38  }
39 
40  @Nullable
41  public static V2NIMMessageRevokeType typeOfValue(int value) {
42  for (V2NIMMessageRevokeType type : values()) {
43  if (type.value == value) {
44  return type;
45  }
46  }
47  return null;
48  }
49 
50  public int getValue() {
51  return value;
52  }
53 }