CNLiveChatMessageBase.h
1023 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
45
46
47
48
49
//
// CNLiveChatMessageBase.h
// CNLiveChatManager
//
// Created by cnliveJunBo on 2017/12/20.
// Copyright © 2017年 cnlive. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "CNLiveChatStatusDefine.h"
#import "CNLiveChatUserInfo.h"
/**
* 消息基类
*/
@interface CNLiveChatMessageBase : NSObject
// * 基础属性 *
/**
会话类型(私聊 / 聊天室)
*/
@property (nonatomic, assign) CNLiveConversationType conversationType;
/**
目标ID(消息来自聊天室的ID / 接收者ID)
*/
@property (nonatomic, copy) NSString *targetId;
/**
消息ID(本地存储的消息的唯一值(数据库索引唯一值))
*/
@property (nonatomic, copy) NSString *messageId;
/**
发送者的用户信息(userId, name, portraitUri)
*/
@property (nonatomic, strong) CNLiveChatUserInfo *userInfo;
/**
消息的发送时间(Unix时间戳、毫秒)
*/
@property(nonatomic, assign) NSString *sentTime;
/**
消息的状态
*/
@property (nonatomic, assign) CNLiveMessageStatus status;
@end