MessageModel.h 1.33 KB
//
//  MessageModel.h
//  CNLiveChatDemo
//
//  Created by cnliveJunBo on 17/2/16.
//  Copyright © 2017年 cnlive. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface MessageModel : NSObject

@property (nonatomic, strong) NSString *message;  // 文本消息

/*!
 图片消息的URL地址
 
 @discussion 发送方此字段为图片的本地路径,接收方此字段为网络URL地址。
 */
@property(nonatomic, strong) NSString *imageUrl;

/*!
 图片消息的缩略图
 */
@property(nonatomic, strong) UIImage *thumbnailImage;
/*!
 是否发送原图
 
 @discussion 在发送图片的时候,是否发送原图,默认值为NO。
 */
@property(nonatomic, assign) BOOL isFull;
/*!
 图片消息的原始图片信息
 */
@property(nonatomic, strong) UIImage *originalImage;

/*!
 wav格式的音频数据
 */
@property(nonatomic, strong) NSData *wavAudioData;

/*!
 语音消息的时长
 */
@property(nonatomic, assign) long duration;

/*!
 语音/图片消息的附加信息
 */
@property(nonatomic, strong) NSString *extra;

@property (nonatomic, strong) NSString *targetId;

@property (nonatomic, strong) NSString *messageId;

@property (nonatomic, strong) NSString *userId;

@property (nonatomic, strong) NSString *name;

@property (nonatomic, strong) NSString *portraitUri;

@property (nonatomic, assign) NSInteger type;

@end