CNLiveChatMessageBase.h 1023 Bytes
//
//  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