NIMSDK-iOS
载入中...
搜索中...
未找到
NIMMessageReceipt.h
浏览该文件的文档.
1//
2// NIMMessageReceipt.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;
16
17/**
18 * 已读回执
19 */
20@interface NIMMessageReceipt : NSObject
21
22/**
23 * 已读回执对应的会话
24 */
25@property (nullable,nonatomic,copy,readonly) NIMSession *session;
26
27/**
28 * 时间戳
29 * @discussion 发送已读回执时,这个字段需要被设置为当前会话中的最后一条消息时间戳
30 * 接受已读回执时,这个字段表示在这个时间戳之前的消息都已读
31 * 此字段支持 P2P 会话类型
32 */
33@property (nonatomic,assign,readonly) NSTimeInterval timestamp;
34
35
36/**
37 * 消息 Id
38 * @discussion 只有 Team 会话有效,表示已读的这条消息的 Id
39 */
40@property (nonatomic,copy,readonly) NSString *messageId;
41
42/**
43 * 群已读回执相关信息
44 */
45@property (nonatomic,strong,readonly) NIMTeamMessageReceipt *teamReceiptInfo;
46
47
48
49/**
50 * 通过最后一条消息构造已读回执
51 *
52 * @param message 会话中的最后一条消息
53 *
54 * @return 已读回执实例
55 */
56- (instancetype)initWithMessage:(NIMMessage *)message;
57
58@end
59
60NS_ASSUME_NONNULL_END
Definition: NIMMessage.h:91
Definition: NIMMessageReceipt.h:21
NSString * messageId
Definition: NIMMessageReceipt.h:40
NSTimeInterval timestamp
Definition: NIMMessageReceipt.h:33
NIMSession * session
Definition: NIMMessageReceipt.h:25
NIMTeamMessageReceipt * teamReceiptInfo
Definition: NIMMessageReceipt.h:45
Definition: NIMSession.h:49
Definition: NIMTeamMessageReceipt.h:18