CNLiveChatMessage.h
856 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
//
// CNLiveChatMessage.h
// CNLiveChatManager
//
// Created by cnliveJunBo on 17/3/3.
// Copyright © 2017年 cnlive. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "CNLiveChatStatusDefine.h"
#import "CNLiveChatUserInfo.h"
@interface CNLiveChatMessage : NSObject
/**
会话类型(私聊 / 聊天室)
*/
@property (nonatomic, assign) CNLiveConversationType conversationType;
/**
目标ID(消息来自聊天室的ID / 接收者ID)
*/
@property (nonatomic, assign) NSString *targetId;
/**
消息ID(本地存储的消息的唯一值(数据库索引唯一值))
*/
@property (nonatomic, assign) NSString *messageId;
/**
消息内容
*/
@property (nonatomic, strong) NSString *messageContent;
/**
发送者的用户信息(userId, name, portraitUri)
*/
@property (nonatomic, strong) CNLiveChatUserInfo *userInfo;
@end