NIMRevokeMessageNotification.h
1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//
// NIMRevokeMessageNotification.h
// NIMLib
//
// Created by Netease.
// Copyright © 2016年 Netease. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@class NIMSession;
@class NIMMessage;
/**
* 撤回通知
*/
@interface NIMRevokeMessageNotification : NSObject
/**
* 撤回消息发起者
*/
@property (nonatomic,copy,readonly) NSString *fromUserId;
/**
* 消息的发送者,表示撤回的这条消息是谁发的
*/
@property (nonatomic,copy,readonly) NSString *messageFromUserId;
/**
* 撤回消息所属会话
*/
@property (nonatomic,copy,readonly) NIMSession *session;
/**
* 撤回消息时间点
* @discussion 这里的时间点指的是被撤回的那条消息到底服务器的时间,而不是撤回指令到达服务器的时间点
*/
@property (nonatomic,assign,readonly) NSTimeInterval timestamp;
/**
* 撤回消息内容
* @discussion 当撤回消息未被当前设备接收时,这个字段为 nil
*/
@property (nullable,nonatomic,strong,readonly) NIMMessage *message;
@end
NS_ASSUME_NONNULL_END