CNLiveChatMessage.h 1.05 KB
//
//  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, copy) NSString *targetId;

/**
 消息ID(本地存储的消息的唯一值(数据库索引唯一值))
 */
@property (nonatomic, copy) NSString *messageId;

/**
 消息内容
 */
@property (nonatomic, copy) NSString *messageContent;

/**
 发送者的用户信息(userId, name, portraitUri)
 */
@property (nonatomic, strong) CNLiveChatUserInfo *userInfo;

/**
 消息的接收时间(Unix时间戳、毫秒)
 */
@property(nonatomic, assign) long long receivedTime;

/**
 消息的发送时间(Unix时间戳、毫秒)
 */
@property(nonatomic, assign) long long sentTime;

@end