summaryrefslogtreecommitdiff
path: root/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOWatchDialInfoModel.h
blob: 2e5c7db7e1fa8ac4dfeff1fe4e3c3bee9ca1baae (plain)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
//
//  IDOWatchDialInfoModel.h
//  IDOBluetoothInternal
//
//  Created by 何东阳 on 2019/8/21.
//  Copyright © 2019 何东阳. All rights reserved.
//

#if __has_include(<IDOBluetoothInternal/IDOBluetoothInternal.h>)
#elif __has_include(<IDOBlueProtocol/IDOBlueProtocol.h>)
#else
#import "IDOBluetoothBaseModel.h"
#endif

@interface IDOWatchScreenInfoModel : IDOBluetoothBaseModel
/**
 表盘家族名称 | family name
 */
@property (nonatomic,copy) NSString * familyName;
/**
 宽度 | width
 */
@property (nonatomic,assign) NSInteger width;
/**
 高度 | height
 */
@property (nonatomic,assign) NSInteger height;
/**
 颜色格式 | color format
 */
@property (nonatomic,assign) NSInteger colorFormat;
/**
 尺寸 * 100 | size * 100
 */
@property (nonatomic,assign) NSInteger size;

/**
 * @brief 查询数据库,如果查询不到初始化新的model对象
 * Query the database, if the query does not initialize a new model object
 * @return IDOWatchScreenInfoModel
 */
+ (__kindof IDOWatchScreenInfoModel *)currentModel;

@end

@interface IDOWatchDialInfoItemModel : IDOBluetoothBaseModel
/**
 表盘名称(唯一标示) | file name (only sign)
 */
@property (nonatomic,copy) NSString * fileName;

/**
 * 操作 0x00:查询正在使用表盘 0x01:设置表盘 0x02:删除表盘
 * Operation 0x00: query is using the dial 0x01: set the dial 0x02: delete the dial
 */
@property (nonatomic,assign) NSInteger operate;

@end


@interface IDOWatchDialInfoModel : IDOBluetoothBaseModel
/**
 * 文件个数
 * file count
 */
@property (nonatomic,assign) NSInteger fileCount;
/**
 * 剩余空间 KB
 * remaining Space
 */
@property (nonatomic,assign) NSInteger remainingSpace;
/**
 * 单个文件最大size  KB
 * file max size
 */
@property (nonatomic,assign) NSInteger fileMaxSize;
/**
 *  当前设置的表盘名称
 *  name of the dial currently set
*/
@property (nonatomic,copy) NSString * currentDialName;
/**
 * 当前手环所有表盘信息集合
 * Current bracelet all dial information set
 */
@property (nonatomic,strong) NSArray <IDOWatchDialInfoItemModel *>* dialArray;

/**
 * @brief 查询数据库,如果查询不到初始化新的model对象
 * Query the database, if the query does not initialize a new model object
 * @return IDOWatchDialInfoModel
 */
+ (__kindof IDOWatchDialInfoModel *)currentModel;

@end