NIMSDK-AOS  9.16.0
RevokeMsgNotification.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.msg.model;
2 
4 
5 import java.io.Serializable;
6 
12 public class RevokeMsgNotification implements Serializable {
13 
17  private IMMessage message;
18 
22  private String attach;
23 
24 
28  private String revokeAccount;
29 
30 
34  private String customInfo;
35 
36 
40  private int notificationType;
41 
45  private RevokeType revokeType;
46 
50  private String callbackExt;
51 
52  public RevokeMsgNotification(IMMessage message, String attach, String revokeAccount, String customInfo, int notificationType,
53  RevokeType revokeType, String callbackExt) {
54  this.message = message;
55  this.attach = attach;
56  this.revokeAccount = revokeAccount;
57  this.customInfo = customInfo;
58  this.notificationType = notificationType;
59  this.revokeType = revokeType;
60  this.callbackExt = callbackExt;
61  }
62 
66  public IMMessage getMessage() {
67  return message;
68  }
69 
73  public String getAttach() {
74  return attach;
75  }
76 
80  public String getRevokeAccount() {
81  return revokeAccount;
82  }
83 
87  public String getCustomInfo() {
88  return customInfo;
89  }
90 
94  public int getNotificationType() {
95  return notificationType;
96  }
97 
102  return revokeType;
103  }
104 
105  public String getCallbackExt() {
106  return callbackExt;
107  }
108 }
RevokeType getRevokeType()
获取撤回类型:分为点对点双向撤回, 群双向撤回, 超大群双向撤回, 点对点单向撤回和未定义 ...
NIM消息实体数据结构。 第三方APP不要调用设置类接口,调用之后不会被持久化
Definition: IMMessage.java:10
String getCustomInfo()
获取消息撤回时设置的msg 字段(eg: 通过服务端API撤回)。
int getNotificationType()
获取通知类型: 1表示是离线,2表示是漫游 , 默认 0
RevokeMsgNotification(IMMessage message, String attach, String revokeAccount, String customInfo, int notificationType, RevokeType revokeType, String callbackExt)
消息撤回通知实体 收到消息撤回通知后,sdk 会通知观察者,携带此对象
String getRevokeAccount()
获取撤回消息的操作帐号
Created by hzsunyj on 2019-12-05.
Definition: RevokeType.java:8