NIMRecentSession.h
705 Bytes
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
//
// NIMRecentSession.h
// NIMLib
//
// Created by Netease.
// Copyright (c) 2015 Netease. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@class NIMMessage;
@class NIMSession;
/**
* 最近会话
*/
@interface NIMRecentSession : NSObject
/**
* 当前会话
*/
@property (nullable,nonatomic,readonly,copy) NIMSession *session;
/**
* 最后一条消息
*/
@property (nullable,nonatomic,readonly,strong) NIMMessage *lastMessage;
/**
* 未读消息数
*/
@property (nonatomic,readonly,assign) NSInteger unreadCount;
/**
* 本地扩展
*/
@property (nullable,nonatomic,readonly,copy) NSDictionary *localExt;
@end
NS_ASSUME_NONNULL_END