MessageModel.h
1.33 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//
// 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