NIMSDK-iOS
载入中...
搜索中...
未找到
NIMRevokeMessageNotification.h
浏览该文件的文档.
1//
2// NIMRevokeMessageNotification.h
3// NIMLib
4//
5// Created by Netease.
6// Copyright © 2016年 Netease. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10
11NS_ASSUME_NONNULL_BEGIN
12
13@class NIMSession;
14@class NIMMessage;
15
16/**
17 * 消息撤回通知类型
18 */
19typedef NS_ENUM(NSInteger, NIMRevokeMessageNotificationType) {
20 /**
21 * 点对点消息撤回通知
22 */
24 /**
25 * 群消息撤回通知
26 */
28 /**
29 * 超大群撤回通知
30 */
32 /**
33 * 点对点消息单向撤回
34 */
36 /**
37 * 群消息单向撤回类型
38 */
40};
41/**
42 * 撤回通知
43 */
44@interface NIMRevokeMessageNotification : NSObject
45
46/**
47 * 撤回消息类型
48 */
49@property (nonatomic,assign,readonly) NIMRevokeMessageNotificationType notificationType;
50
51/**
52 * 撤回消息发起者
53 */
54@property (nonatomic,copy,readonly) NSString *fromUserId;
55
56
57/**
58 * 消息的发送者,表示撤回的这条消息是谁发的
59 */
60@property (nonatomic,copy,readonly) NSString *messageFromUserId;
61
62/**
63 * 撤回消息所属会话
64 */
65@property (nonatomic,copy,readonly) NIMSession *session;
66
67/**
68 * 撤回消息时间点
69 * @discussion 这里的时间点指的是被撤回的那条消息到底服务器的时间,而不是撤回指令到达服务器的时间点
70 */
71@property (nonatomic,assign,readonly) NSTimeInterval timestamp;
72
73
74/**
75 * 撤回消息内容
76 * @discussion 当撤回消息未被当前设备接收时,这个字段为 nil
77 */
78@property (nullable,nonatomic,strong,readonly) NIMMessage *message;
79
80
81/**
82 * 撤回操作是否属于漫游消息
83 */
84@property (nonatomic,assign,readonly) BOOL roaming;
85
86
87/**
88 * 撤回操作是否属于离线消息
89 */
90@property (nonatomic,assign,readonly) BOOL offline;
91
92/**
93 * 撤回的附言
94 */
95@property(nullable, nonatomic,copy,readonly) NSString *postscript;
96
97/**
98 * 扩展,撤回方填充
99 */
100@property (nullable, nonatomic, copy, readonly) NSString *attach;
101
102/**
103 * 扩展,服务器填充消息
104 */
105@property (nonatomic, nonatomic, copy, readonly) NSString *callbackExt;
106
107@end
108
109
110NS_ASSUME_NONNULL_END
NIMRevokeMessageNotificationType
Definition: NIMRevokeMessageNotification.h:19
@ NIMRevokeMessageNotificationTypeTeam
Definition: NIMRevokeMessageNotification.h:27
@ NIMRevokeMessageNotificationTypeSuperTeam
Definition: NIMRevokeMessageNotification.h:31
@ NIMRevokeMessageNotificationTypeP2P
Definition: NIMRevokeMessageNotification.h:23
@ NIMRevokeMessageNotificationTypeP2POneWay
Definition: NIMRevokeMessageNotification.h:35
@ NIMRevokeMessageNotificationTypeTeamOneWay
Definition: NIMRevokeMessageNotification.h:39
Definition: NIMMessage.h:90
Definition: NIMRevokeMessageNotification.h:45
NSString * messageFromUserId
Definition: NIMRevokeMessageNotification.h:60
BOOL offline
Definition: NIMRevokeMessageNotification.h:90
NSString * fromUserId
Definition: NIMRevokeMessageNotification.h:54
NSString * postscript
Definition: NIMRevokeMessageNotification.h:95
NSString * callbackExt
Definition: NIMRevokeMessageNotification.h:105
BOOL roaming
Definition: NIMRevokeMessageNotification.h:84
NSTimeInterval timestamp
Definition: NIMRevokeMessageNotification.h:71
NSString * attach
Definition: NIMRevokeMessageNotification.h:100
NIMMessage * message
Definition: NIMRevokeMessageNotification.h:78
NIMRevokeMessageNotificationType notificationType
Definition: NIMRevokeMessageNotification.h:49
NIMSession * session
Definition: NIMRevokeMessageNotification.h:65
Definition: NIMSession.h:49