1 package com.netease.nimlib.sdk.msg.model;
4 import java.io.Serializable;
21 private String attach;
27 private String revokeAccount;
33 private String customInfo;
39 private int notificationType;
49 private String callbackExt;
56 RevokeType revokeType, String callbackExt,
long time) {
57 this.message = message;
59 this.revokeAccount = revokeAccount;
60 this.customInfo = customInfo;
61 this.notificationType = notificationType;
62 this.revokeType = revokeType;
63 this.callbackExt = callbackExt;
99 return notificationType;
IMMessage getMessage()
获取撤回对应的消息
RevokeMsgNotification(IMMessage message, String attach, String revokeAccount, String customInfo, int notificationType, RevokeType revokeType, String callbackExt, long time)
RevokeType getRevokeType()
获取撤回类型:分为点对点双向撤回, 群双向撤回, 超大群双向撤回, 点对点单向撤回和未定义 ...
NIM消息实体数据结构。 第三方APP不要调用设置类接口,调用之后不会被持久化
String getCustomInfo()
获取消息撤回时设置的msg 字段(eg: 通过服务端API撤回)。
int getNotificationType()
获取通知类型: 1表示是离线,2表示是漫游 , 默认 0
消息撤回通知实体 收到消息撤回通知后,sdk 会通知观察者,携带此对象
String getRevokeAccount()
获取撤回消息的操作帐号
Created by hzsunyj on 2019-12-05.