1
wei
2021-01-21 62d098cb78296feaa6f786a20748921338db838c
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
//
// TuyaSmartMessageListModel.h
// TuyaSmartMessageKit
//
// Copyright (c) 2014-2021 Tuya Inc. (https://developer.tuya.com)
 
#import <Foundation/Foundation.h>
#import "TuyaSmartMessageUtils.h"
 
NS_ASSUME_NONNULL_BEGIN
/// Message attachment model.
@interface TuyaSmartMessageAttachModel : NSObject
 
/// Is the attachment a video (.mp4 is considered a video).
@property (nonatomic, assign) BOOL isVideo;
 
/// Attachment url.
@property (nonatomic, strong) NSString *url;
 
/// Thumbnail url.
@property (nonatomic, strong) NSString *thumbUrl;
 
@end
 
/// Message list.
@interface TuyaSmartMessageListModel : NSObject
 
@property (nonatomic, strong) NSString *msgId;
 
@property (nonatomic, strong) NSString *msgTypeContent;
 
@property (nonatomic, strong) NSString *msgContent;
 
/// Formatted date and time.
@property (nonatomic, strong) NSString *dateTime;
 
/// Message timestamp.
@property (nonatomic, assign) NSInteger time;
 
/// Message icon.
@property (nonatomic, strong) NSString *icon;
 
/// Attachment list.
@property (nonatomic, strong) NSArray<TuyaSmartMessageAttachModel *> *attachPicList;
 
@property (nonatomic, assign) BOOL hasNotRead;
 
/// Device id (note: only alarm type messages will have this field)
@property (nonatomic, strong) NSString  *msgSrcId;
 
///  1 is Alert message, 2 is Automation message (Note: Only alert type messages will have this field used in alert messages to distinguish between alerts or automation, home and notification messages are ignored)
@property (nonatomic, assign) NSInteger  alarmType;
 
/// Message Type: 0 is system message, 1 is new devices, 2 is new friend, 4 is device alarm.
@property (nonatomic, assign) NSInteger msgType;
 
@property (nonatomic, assign) long long homeID;
 
@property (nonatomic, copy) NSString *homeName;
 
@end
 
NS_ASSUME_NONNULL_END