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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
|
//
// IDOSetBuletoothModel.h
// VeryfitSDK
//
// Created by hedongyang on 2018/6/13.
// Copyright © 2018年 hedongyang. All rights reserved.
//
#if __has_include(<IDOBluetoothInternal/IDOBluetoothInternal.h>)
#elif __has_include(<IDOBlueProtocol/IDOBlueProtocol.h>)
#else
#import "IDOBluetoothBaseModel.h"
#endif
#pragma mark ==== 设置喝水提醒 model ====
@interface IDOSetDrinkReminderModeBluetoothModel:IDOBluetoothBaseModel
/**
喝水提醒开关 | drink water reminder
*/
@property (nonatomic,assign) BOOL onOff;
/**
提醒间隔,单位分钟 | interval (unit minutes)
*/
@property (nonatomic,assign) NSInteger interval;
/**
开始时间(时) | start time (hours)
*/
@property (nonatomic,assign) NSInteger startHour;
/**
开始时间(分) | start time (minutes)
*/
@property (nonatomic,assign) NSInteger startMinute;
/**
结束时间 (时) | end time (hours)
*/
@property (nonatomic,assign) NSInteger endHour;
/**
结束时间 (分) | end time (minutes)
*/
@property (nonatomic,assign) NSInteger endMinute;
/**
* 重复集合 [星期一、星期二、星期三、星期四、星期五、星期六、星期日]
* Repeat collection [monday,tuesday,wednesday,thursday,friday,saturday,sunday]
*/
@property (nonatomic,strong)NSArray<NSNumber *> * repeat;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetDrinkReminderModeBluetoothModel
*/
+ (__kindof IDOSetDrinkReminderModeBluetoothModel *)currentModel;
@end
#pragma mark ==== 设置心率开关同步 model ====
@interface IDOSetV3HeartRateModeBluetoothModel:IDOBluetoothBaseModel
/**
* 心率模式 0:关闭心率监测功能 1:手动模式 2:自动模式 3:持续监测(默认:自动模式)
* Heart Rate Mode 0: Turn off heart rate monitoring function 1: Manual mode 2: Auto mode 3:Continuously monitor(Default: Auto mode)
*/
@property (nonatomic,assign) NSInteger modeType;
/**
* 更新时间unix 时间戳,秒级 (eg 14442361933)
* Update time Unix timestamp, in seconds
*/
@property (nonatomic,copy) NSString * updateTime;
/**
是否有相隔时间 | Is there a time interval?
*/
@property (nonatomic,assign) BOOL isHasTimeRange;
/**
开始 (时) | Start (hours)
*/
@property (nonatomic,assign) NSInteger startHour;
/**
开始 (分) | Start (minutes)
*/
@property (nonatomic,assign) NSInteger startMinute;
/**
结束 (时) | End (hours)
*/
@property (nonatomic,assign) NSInteger endHour;
/**
结束 (分) | End (minutes)
*/
@property (nonatomic,assign) NSInteger endMinute;
/**
测量间隔,单位分钟 | measurement Interval,unit:minutes
*/
@property (nonatomic,assign) NSInteger measurementInterval;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetV3HeartRateModeBluetoothModel
*/
+ (__kindof IDOSetV3HeartRateModeBluetoothModel *)currentModel;
@end
#pragma mark ==== 设置运动开关 model ====
@interface IDOSetActivitySwitchBluetoothModel:IDOBluetoothBaseModel
/**
自动识别运动类型开关 | sport type on Off
*/
@property (nonatomic,assign) BOOL sportTypeOnOff DEPRECATED_MSG_ATTRIBUTE("this attribute is discarded");
/**
自动识别走路开关 | auto identify sport walk
*/
@property (nonatomic,assign) BOOL sportWalkOnOff;
/**
自动识别跑步开关 | auto identify sport run
*/
@property (nonatomic,assign) BOOL sportRunOnOff;
/**
自动识别自行车开关 | auto identify sport bicycle
*/
@property (nonatomic,assign) BOOL sportBicycleOnOff;
/**
运动自动暂停开关 | auto pause on off
*/
@property (nonatomic,assign) BOOL autoPauseOnOff;
/**
结束提醒开关 | end remind on off
*/
@property (nonatomic,assign) BOOL endRemindOnOff;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetActivitySwitchBluetoothModel
*/
+ (__kindof IDOSetActivitySwitchBluetoothModel *)currentModel;
@end
#pragma mark ==== 设置血氧开关控制 model ====
@interface IDOSetSpo2SwitchBluetoothModel:IDOBluetoothBaseModel
/**
开关 | on off
*/
@property (nonatomic,assign) BOOL onOff;
/**
开始时间 (时) | start hour
*/
@property (nonatomic,assign) NSInteger startHour;
/**
开始时间 (分) | start minute
*/
@property (nonatomic,assign) NSInteger startMinute;
/**
结束时间 (时) | end hour
*/
@property (nonatomic,assign) NSInteger endHour;
/**
结束时间 (分) | end minute
*/
@property (nonatomic,assign) NSInteger endMinute;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetSpo2SwitchBluetoothModel
*/
+ (__kindof IDOSetSpo2SwitchBluetoothModel *)currentModel;
@end
#pragma mark ==== 设置呼吸训练 model ====
@interface IDOSetBreatheTrainBluetoothModel:IDOBluetoothBaseModel
/**
每分钟呼吸次数 | Breaths per minute
*/
@property (nonatomic,assign) NSInteger frequency;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetBreatheTrainBluetoothModel
*/
+ (__kindof IDOSetBreatheTrainBluetoothModel *)currentModel;
@end
#pragma mark ==== 设置走动提醒 model ====
@interface IDOSetWalkReminderBluetoothModel:IDOBluetoothBaseModel
/**
走动提醒开关 | Walking reminder switch
*/
@property (nonatomic,assign) BOOL onOff;
/**
目标步数 | goal step
*/
@property (nonatomic,assign) NSInteger goalStep;
/**
开始时间(时) | start time (hours)
*/
@property (nonatomic,assign) NSInteger startHour;
/**
开始时间(分) | start time (minutes)
*/
@property (nonatomic,assign) NSInteger startMinute;
/**
结束时间 (时) | end time (hours)
*/
@property (nonatomic,assign) NSInteger endHour;
/**
结束时间 (分) | end time (minutes)
*/
@property (nonatomic,assign) NSInteger endMinute;
/**
* 重复集合 [星期一、星期二、星期三、星期四、星期五、星期六、星期日]
* Repeat collection [monday,tuesday,wednesday,thursday,friday,saturday,sunday]
*/
@property (nonatomic,strong)NSArray<NSNumber *> * repeat;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetWalkReminderBluetoothModel
*/
+ (__kindof IDOSetWalkReminderBluetoothModel *)currentModel;
@end
#pragma mark ==== 设置经期提醒 model ====
@interface IDOSetMenstruationRemindBluetoothModel:IDOBluetoothBaseModel
/**
开始日提醒 提前天数 | Start Day Reminder
*/
@property (nonatomic,assign) NSInteger startDay;
/**
排卵日提醒 提前天数 | Ovulation Day Reminder
*/
@property (nonatomic,assign) NSInteger ovulationDay;
/**
提醒时间 (时) | Reminder time (hours)
*/
@property (nonatomic,assign) NSInteger hour;
/**
提醒时间 (分) | Reminder time (minutes)
*/
@property (nonatomic,assign) NSInteger minute;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetMenstruationRemindBluetoothModel
*/
+ (__kindof IDOSetMenstruationRemindBluetoothModel *)currentModel;
@end
#pragma mark ==== 设置经期 model ====
@interface IDOSetMenstruationInfoBluetoothModel:IDOBluetoothBaseModel
/**
开关 | onoff
*/
@property (nonatomic,assign) BOOL onOff;
/**
经期长度 | length of menstruation
*/
@property (nonatomic,assign) NSInteger menstrualLength;
/**
经期周期 | Menstrual cycle
*/
@property (nonatomic,assign) NSInteger menstrualCycle;
/**
最近经期年份 | Recent menstrual years
*/
@property (nonatomic,assign) NSInteger lastMenstrualYear;
/**
最近经期月份 | Recent menstrual months
*/
@property (nonatomic,assign) NSInteger lastMenstrualMonth;
/**
最近经期日期 | Recent menstrual date
*/
@property (nonatomic,assign) NSInteger lastMenstrualDay;
/**
排卵日的间隔 | ovulation interval day
*/
@property (nonatomic,assign) NSInteger ovulationIntervalDay;
/**
经期前一天 | | The day before the menstrual period
*/
@property (nonatomic,assign) NSInteger ovulationBeforeDay;
/**
经期后一天 | | One day after menstruation
*/
@property (nonatomic,assign) NSInteger ovulationAfterDay;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetMenstruationInfoBluetoothModel
*/
+ (__kindof IDOSetMenstruationInfoBluetoothModel *)currentModel;
@end
#pragma mark ==== 绑定model ====
@interface IDOSetBindingInfoBluetoothModel:IDOBluetoothBaseModel
/**
授权码长度 | Authorization code length
*/
@property (nonatomic,assign) NSUInteger authLength;
/**
授权码 | Authorization code
*/
@property (nonatomic,copy) NSString * authCode;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象 (只有在授权绑定才会存储数据)
* Query the database, if the query does not initialize the new model object (only the authorization binding will store the data)
* @return IDOSetBindingInfoBluetoothModel
*/
+ (__kindof IDOSetBindingInfoBluetoothModel *)currentModel;
@end
#pragma mark ==== 设置设置睡眠时间段model ====
@interface IDOSetSleepPeriodInfoBluetoothModel:IDOBluetoothBaseModel
/**
睡眠开关 | Sleep switch
*/
@property (nonatomic,assign) BOOL OnOff;
/**
开始 (时) | Start (hours)
*/
@property (nonatomic,assign) NSInteger startHour;
/**
开始 (分) | Start (minutes)
*/
@property (nonatomic,assign) NSInteger startMinute;
/**
结束 (时) | End (hours)
*/
@property (nonatomic,assign) NSInteger endHour;
/**
结束 (分) | End (minutes)
*/
@property (nonatomic,assign) NSInteger endMinute;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象 | Query the database, if the query does not initialize a new model object
* @return IDOSetSleepPeriodInfoBluetoothModel
*/
+ (__kindof IDOSetSleepPeriodInfoBluetoothModel *)currentModel;
@end
#pragma mark ==== 设置血压测量指令model ====
@interface IDOSetBpMeasureInfoBluetoothModel:IDOBluetoothBaseModel
/**
* 参数标志 0x01:开始测量,0x02:结束测量,0x03:获得血压数据
* Parameter flag 0x01: Start measurement, 0x02: End measurement, 0x03: Obtain blood pressure data
*/
@property (nonatomic,assign) NSInteger flag;
/**
* 返回状态 0x00:不支持,0x01:正在测量,0x02:测量成功 0x03:测量失败 0x04:设备正在运动模式
* Return status 0x00: Not supported, 0x01: Positive measurement, 0x02: Measurement success 0x03: Measurement failure 0x04: Device is in motion mode
*/
@property (nonatomic,assign) NSInteger status;
/**
高压(收缩压) | High pressure (systolic pressure)
*/
@property (nonatomic,assign) NSInteger systolicBp;
/**
低压(舒张压) | Low pressure (diastolic pressure)
*/
@property (nonatomic,assign) NSInteger diastolicBp;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetBpMeasureInfoBluetoothModel
*/
+ (__kindof IDOSetBpMeasureInfoBluetoothModel *)currentModel;
@end
#pragma mark ==== 设置表盘参数model ====
@interface IDOSetWatchDiaInfoBluetoothModel:IDOBluetoothBaseModel
/**
表盘ID | Dial ID
*/
@property (nonatomic,assign) NSInteger dialId;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetWatchDiaInfoBluetoothModel
*/
+ (__kindof IDOSetWatchDiaInfoBluetoothModel *)currentModel;
@end
#pragma mark ==== 设置马达参数model ====
@interface IDOSetStartMotorInfoBluetoothModel:IDOBluetoothBaseModel
/**
马达状态 | Motor status
*/
@property (nonatomic,assign) NSInteger status;
/**
马达超时时长 | Motor timeout duration
*/
@property (nonatomic,assign) NSInteger timeout;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetStartMotorInfoBluetoothModel
*/
+ (__kindof IDOSetStartMotorInfoBluetoothModel *)currentModel;
@end
#pragma mark ==== 设置传感器实时数据model ====
@interface IDOSetRealTimeSensorDataInfoBluetoothModel:IDOBluetoothBaseModel
/**
未知传感器状态 | Unknown sensor status
*/
@property (nonatomic,assign) NSInteger gsensorStatus;
/**
心率传感器状态 | Heart Rate Sensor Status
*/
@property (nonatomic,assign) NSInteger heartRateSensorStatus;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetRealTimeSensorDataInfoBluetoothModel
*/
+ (__kindof IDOSetRealTimeSensorDataInfoBluetoothModel *)currentModel;
@end
#pragma mark ==== 设置连接参数信息model ====
@interface IDOSetConnParamInfoBluetoothModel:IDOBluetoothBaseModel
/**
连接模式 | Connection mode
*/
@property (nonatomic,assign) NSInteger mode;
/**
修改快速模式连接间隔 | Modify Quick Mode Connection Interval
*/
@property (nonatomic,assign) NSInteger modifConnParam;
/**
最大间隔 | Maximum interval
*/
@property (nonatomic,assign) NSInteger maxInterval;
/**
最小间隔 | Minimum interval
*/
@property (nonatomic,assign) NSInteger minInterval;
/**
延迟 | Delay
*/
@property (nonatomic,assign) NSInteger slaveLatency;
/**
连接超时 | Connection timeout
*/
@property (nonatomic,assign) NSInteger connTimeout;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetConnParamInfoBluetoothModel
*/
+ (__kindof IDOSetConnParamInfoBluetoothModel *)currentModel;
@end
#pragma mark ==== 设置GPS控制信息model ====
@interface IDOSetGpsControlInfoBluetoothModel:IDOBluetoothBaseModel
/**
1: 控制 , 2: 查询 | 1: Control, 2: Query
*/
@property (nonatomic,assign) NSInteger operate;
/**
* 0x01 开启log,0x02 关闭log,0x03 agps写入,0x04 agps 擦除,0x05 gps_fw 写入
* 0x01 turns on log, 0x02 turns off log, 0x03 agps writes, 0x04 agps erases, 0x05 gps_fw writes
*/
@property (nonatomic,assign) NSInteger type;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetGpsControlInfoBluetoothModel
*/
+ (__kindof IDOSetGpsControlInfoBluetoothModel *)currentModel;
@end
#pragma mark ==== 设置GPS信息model ====
@interface IDOSetGpsConfigInfoBluetoothModel:IDOBluetoothBaseModel
/**
0x01 冷启动,0x02 热启动 默认2 | 0x01 Cold Start, 0x02 Hot Start Default 2
*/
@property (nonatomic,assign) NSInteger startMode;
/**
* 操作模式,1为正常;2为低功耗;4为Balance,5为1PPS 默认1
* Operation mode, 1 is normal; 2 is low power consumption; 4 is Balance, 5 is 1PPS default 1
*/
@property (nonatomic,assign) NSInteger gsopOperationMode;
/**
定位周期,默认1000 1s | Positioning period, default 1000 1s
*/
@property (nonatomic,assign) NSInteger gsopCycleMs;
/**
* 定位星mode,1为GPS,2为GLONASS,3为1为GPS + GLONASS 默认1
* Positioning star mode, 1 is GPS, 2 is GLONASS, 3 is 1 for GPS + GLONASS Default 1
*/
@property (nonatomic,assign) NSInteger gnsValue;
/**
年 | year
*/
@property (nonatomic,assign) NSInteger year;
/**
月 | Month
*/
@property (nonatomic,assign) NSInteger month;
/**
日 | day
*/
@property (nonatomic,assign) NSInteger day;
/**
时 | hour
*/
@property (nonatomic,assign) NSInteger hour;
/**
分 | minute
*/
@property (nonatomic,assign) NSInteger minute;
/**
秒 | seconds
*/
@property (nonatomic,assign) NSInteger second;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetGpsConfigInfoBluetoothModel
*/
+ (__kindof IDOSetGpsConfigInfoBluetoothModel *)currentModel;
@end
#pragma mark ==== 设置屏幕亮度model ====
@interface IDOSetScreenBrightnessInfoBluetoothModel:IDOBluetoothBaseModel
/**
屏幕亮度级别 (1-100) | Screen brightness level (1-100)
*/
@property (nonatomic,assign) NSInteger levelValue;
/**
是否用户调节 | is manual
*/
@property (nonatomic,assign) BOOL isManual;
/**
* 0x00关闭自动调整,0x01 使用环境光传感器,0x02,夜间自动调整亮度,0x03 夜间降亮度使用设置的时间
* 0x00 turns off automatic adjustment,0x01 USES ambient light sensor,
* 0x02, automatic adjustment of brightness at night,0x03 set time for reducing brightness at night
*/
@property (nonatomic,assign) NSInteger mode;
/**
* 夜间自动亮度调整 0x00,无效,由固件定义,0x01关闭,0x02,夜间自动调整亮度,0x03 夜间降亮度使用设置的时间
* Automatic overnight brightness adjustment 0x00, invalid, as defined by firmware,0x01 is off,0x02,
* automatic night brightness adjustment,0x03 night brightness reduction USES the set time
*/
@property (nonatomic,assign) NSInteger autoAdjustNight;
/**
开始 时钟 | start hour
*/
@property (nonatomic,assign) NSInteger startHour;
/**
开始 分钟 | start minute
*/
@property (nonatomic,assign) NSInteger startMinute;
/**
结束 时钟 | end hour
*/
@property (nonatomic,assign) NSInteger endHour;
/**
结束 分钟 | end minute
*/
@property (nonatomic,assign) NSInteger endMinute;
/**
夜间亮度 (realme项目) | night level
*/
@property (nonatomic,assign) NSInteger nightLevel;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetScreenBrightnessInfoBluetoothModel
*/
+ (__kindof IDOSetScreenBrightnessInfoBluetoothModel *)currentModel;
@end
#pragma mark ==== 设置天气数据model ====
@interface IDOSetWeatherDataInfoBluetoothModel:IDOBluetoothBaseModel
/**
* 天气预报更新的时间戳 time interval since 1970 (如:1444361933)
* Time stamp of weather forecast update time interval since 1970 (eg 14442361933)
*/
@property (nonatomic,copy) NSString * timeStr;
/**
今天平均温度 | Average temperature today
*/
@property (nonatomic,assign) NSInteger todayTemp;
/**
* 天气类型 | Weather type
* 天气情况(0:其他, 1:晴, 2:多云, 3:阴,4:雨,5:暴雨,
* 6:雷阵雨, 7:雪, 8:雨夹雪,9:台风, 10:沙尘暴, 11:夜 间晴,
* 12:夜间多云, 13:热, 14:冷, 15:清风, 16:大风, 17:雾霭,18:阵雨, 19:多云转晴)
* weather conditions (0: others, 1: sunny, 2: cloudy, 3: cloudy, 4: rain, 5: rainstorm,
* 6: thunderstorm, 7: snow, 8: sleet, 9: typhoon, 10: sandstorm, 11: night clear,
* 12: cloudy night, 13: hot, 14: cold, 15: breezy, 16: blustery, 17: mist, 18: showers, 19: cloudy to clear)
*/
@property (nonatomic,assign) NSInteger todayType;
/**
今天最高温度 | Today's highest temperature
*/
@property (nonatomic,assign) NSInteger todayMaxTemp;
/**
今天最小温度 | Today's minimum temperature
*/
@property (nonatomic,assign) NSInteger todayMinTemp;
/**
湿度 | Humidity
*/
@property (nonatomic,assign) NSInteger humidity;
/**
紫外线强度 | UV intensity
*/
@property (nonatomic,assign) NSInteger todayUvIntensity;
/**
空气污染指数 | Air Pollution Index
*/
@property (nonatomic,assign) NSInteger todayAqi;
/**
* 后三天天的天气集合 @{@"type":@(0),@"maxTemp":@(0),@"minTemp":@(0)}
* Weather collection for the last three days @{@"type":@(0),@"maxTemp":@(0),@"minTemp":@(0)}
*/
@property (nonatomic,strong) NSArray<NSDictionary*>* future;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetWeatherDataInfoBluetoothModel
*/
+ (__kindof IDOSetWeatherDataInfoBluetoothModel *)currentModel;
@end
#pragma mark ==== 设置运动快捷模式排序model ====
@interface IDOSetSportSortingItemModel:NSObject
/**
* 排序索引 index //排序,从1、2、3、4....,0:无效
* Sort index // sort from 1, 2, 3, 4... , 0: invalid
*/
@property (nonatomic,assign) NSInteger index;
/**
* 运动模式 | Sport mode
* 0:无,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:跳舞,48:户外跑步,49:室内跑步,50:户外骑行,51:室内骑行,
* 52:户外走路,53:室内走路,54:泳池游泳,55:开放水域游泳,56:椭圆机,57:划船机,58:高强度间歇训练法,59:板球运动
* 0: none, 1: walk, 2: run, 3: ride, 4: hike, 5: swim, 6: climb, 7: badminton, 8: others,
* 9: fitness, 10: spinning, 11: elliptical, 12: treadmill, 13: sit-ups, 14: push-ups, 15: dumbbells, 16: weightlifting,
* 17: aerobics, 18: yoga, 19: jump rope, 20: table tennis, 21: basketball, 22: football, 23: volleyball, 24: tennis,
* 25: golf, 26: baseball, 27: skiing, 28: roller skating, 29: dancing,48: outdoor running, 49: indoor running, 50: outdoor cycling, 51: indoor cycling,
* 52: outdoor walking, 53: indoor walking, 54: pool swimming, 55: open water swimming, 56: elliptical machine, 57: rowing machine, 58: high-intensity interval training
* 59:cricket
*/
@property (nonatomic,assign) NSInteger type;
@end
@interface IDOSetSportSortingInfoBluetoothModel:IDOBluetoothBaseModel
/**
运动模式排序集合最多8个 | Sports mode sort set up to 8
*/
@property (nonatomic,strong)NSArray <IDOSetSportSortingItemModel *>* sportSortingItems;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetSportSortingInfoBluetoothModel
*/
+ (__kindof IDOSetSportSortingInfoBluetoothModel *)currentModel;
@end
#pragma mark ==== 设置运动快捷模式model ====
@interface IDOSetSportShortcutInfoBluetoothModel:IDOBluetoothBaseModel
/**
走路 | Walking
*/
@property (nonatomic,assign) BOOL isWalk;
/**
跑步 | Running
*/
@property (nonatomic,assign) BOOL isRun;
/**
骑自行车 | Cycling
*/
@property (nonatomic,assign) BOOL isByBike;
/**
步行 | Walking
*/
@property (nonatomic,assign) BOOL isOnFoot;
/**
游泳 | Swimming
*/
@property (nonatomic,assign) BOOL isSwim;
/**
爬山 | Mountain climbing
*/
@property (nonatomic,assign) BOOL isMountainClimbing;
/**
羽毛球 | Badminton
*/
@property (nonatomic,assign) BOOL isBadminton;
/**
其他 | Other
*/
@property (nonatomic,assign) BOOL isOther;
/**
健身 | Fitness
*/
@property (nonatomic,assign) BOOL isFitness;
/**
动感单车 | Spinning bike
*/
@property (nonatomic,assign) BOOL isSpinning;
/**
橄榄球 | Rugby
*/
@property (nonatomic,assign) BOOL isEllipsoid;
/**
跑步机 | Treadmill
*/
@property (nonatomic,assign) BOOL isTreadmill;
/**
仰卧起坐 | Sit ups
*/
@property (nonatomic,assign) BOOL isSitUp;
/**
俯卧撑 | Push-ups
*/
@property (nonatomic,assign) BOOL isPushUp;
/**
哑铃 | Dumbbell
*/
@property (nonatomic,assign) BOOL isDumbbell;
/**
举重 | Weightlifting
*/
@property (nonatomic,assign) BOOL isWeightlifting;
/**
体操 | Gymnastics
*/
@property (nonatomic,assign) BOOL isBodybuildingExercise;
/**
瑜伽 | Yoga
*/
@property (nonatomic,assign) BOOL isYoga;
/**
跳绳 | Jumping rope
*/
@property (nonatomic,assign) BOOL isRopeSkipping;
/**
乒乓球 | Table tennis
*/
@property (nonatomic,assign) BOOL isTableTennis;
/**
篮球 | Basketball
*/
@property (nonatomic,assign) BOOL isBasketball;
/**
足球 | Football
*/
@property (nonatomic,assign) BOOL isFootball;
/**
排球 | Volleyball
*/
@property (nonatomic,assign) BOOL isVolleyball;
/**
网球 | Tennis
*/
@property (nonatomic,assign) BOOL isTennis;
/**
高尔夫 | Golf
*/
@property (nonatomic,assign) BOOL isGolf;
/**
棒球 | Baseball
*/
@property (nonatomic,assign) BOOL isBaseball;
/**
滑雪 | Skiing
*/
@property (nonatomic,assign) BOOL isSkiing;
/**
滑旱冰 | Roller Skating
*/
@property (nonatomic,assign) BOOL isRollerSkating;
/**
跳舞 | Dancing
*/
@property (nonatomic,assign) BOOL isDance;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetSportShortcutInfoBluetoothModel
*/
+ (__kindof IDOSetSportShortcutInfoBluetoothModel *)currentModel;
@end
#pragma mark ==== 设置血压校准model ====
@interface IDOSetBloodPressureInfoBluetoothModel:IDOBluetoothBaseModel
/**
舒张压 | Diastolic blood pressure
*/
@property (nonatomic,assign) NSInteger diastolic;
/**
收缩压 | Systolic pressure
*/
@property (nonatomic,assign) NSInteger shrinkage;
/**
* 返回校准状态 0x01.成功进入校准模式,正在校准 0x02.在运动模式, 0x03.设备忙碌 0x04.无效的状态 0x06.校准失败 0x00.校准成功
* Return to calibration status: 0x01. Successfully entered calibration mode, calibration;
* 0x02. In motion mode; 0x03. Device busy; 0x04. Invalid status; 0x06. Calibration failed; 0x00. Calibration successful
*/
@property (nonatomic,assign) NSInteger statusCode;
/**
* 血压校准控制 0x01 血压校准开始 0x02 血压校准查询
* Blood Pressure Calibration Control 0x01 Blood Pressure Calibration Start 0x02 Blood Pressure Calibration Query
*/
@property (nonatomic,assign) NSInteger flag;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetBloodPressureInfoBluetoothModel
*/
+ (__kindof IDOSetBloodPressureInfoBluetoothModel *)currentModel;
@end
#pragma mark ==== 设置快捷方式model ====
@interface IDOSetShortcutInfoBluetoothModel:IDOBluetoothBaseModel
/**
快捷方式类型 | Shortcut Type
*/
@property (nonatomic,assign) NSInteger shortcutType;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetShortcutInfoBluetoothModel
*/
+ (__kindof IDOSetShortcutInfoBluetoothModel *)currentModel;
@end
#pragma mark ==== 设置闹钟model ====
@interface IDOSetAlarmInfoBluetoothModel:IDOBluetoothBaseModel
/**
开关 | Switch
*/
@property (nonatomic,assign) BOOL isOpen;
/**
是否同步 | Synchronization
*/
@property (nonatomic,assign) BOOL isSync;
/**
是否删除 | Delete
*/
@property (nonatomic,assign) BOOL isDelete;
/**
类型 | Type
*/
@property (nonatomic,assign) NSInteger type;
/**
时 | hour
*/
@property (nonatomic,assign) NSInteger hour;
/**
分 | minute
*/
@property (nonatomic,assign) NSInteger minute;
/**
* 重复集合 [星期一、星期二、星期三、星期四、星期五、星期六、星期日]
* Repeat collection [monday,tuesday,wednesday,thursday,friday,saturday,sunday]
*/
@property (nonatomic,strong)NSArray<NSNumber *> * repeat;
/**
贪睡时长 | Sleepy time
*/
@property (nonatomic,assign) NSInteger tsnoozeDuration;
/**
闹钟ID | Alarm ID
*/
@property (nonatomic,assign) NSInteger alarmId;
/**
* @brief 初始化闹钟集合 | Initialize the alarm collection
* @return 闹钟集合 | Alarm clock collection
*/
+ (NSArray <IDOSetAlarmInfoBluetoothModel *>*)queryAllAlarms;
/**
* @brief 查询没有被开启的闹钟集合 | Querying an alarm set that is not turned on
* @return 闹钟集合 | Alarm clock collection
*/
+ (NSArray <IDOSetAlarmInfoBluetoothModel *>*)queryAllNoOpenAlarms;
@end
#pragma mark ==== 设置时间model ====
@interface IDOSetTimeInfoBluetoothModel:IDOBluetoothBaseModel
/**
年 | year
*/
@property (nonatomic,assign) NSInteger year;
/**
月 | Month
*/
@property (nonatomic,assign) NSInteger month;
/**
日 | day
*/
@property (nonatomic,assign) NSInteger day;
/**
时 | hour
*/
@property (nonatomic,assign) NSInteger hour;
/**
分 | minute
*/
@property (nonatomic,assign) NSInteger minute;
/**
秒 | seconds
*/
@property (nonatomic,assign) NSInteger second;
/**
星期 | week
*/
@property (nonatomic,assign) NSInteger weekDay;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetTimeInfoBluetoothModel
*/
+ (__kindof IDOSetTimeInfoBluetoothModel *)currentModel;
@end
#pragma mark ==== 设置单位model ====
@interface IDOSetUnitInfoBluetoothModel:IDOBluetoothBaseModel
/**
距离单位 0x00:无效, 0x01:km,0x02:mi | Distance unit 0x00: Invalid, 0x01:km, 0x02:mi
*/
@property (nonatomic,assign) NSInteger distanceUnit;
/**
重量单位 0x00: 无效,0x01:kg, 0x02:lb, 0x03: 英石 | Weight Unit 0x00: Invalid, 0x01:kg, 0x02:lb, 0x03: Stone
*/
@property (nonatomic,assign) NSInteger weightUnit;
/**
温度单位 0x00:无效, 0x01:°C, 0x02:°F | Temperature unit 0x00: Invalid, 0x01: °C, 0x02: °F
*/
@property (nonatomic,assign) NSInteger tempUnit;
/**
* 语言单位 无效:0,中文: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
* Language unit Invalid: 0, Chinese: 1, English: 2, French: 3, German: 4, Italian: 5, Spanish: 6, Japanese: 7,
* Polish: 8, Czech: 9, Romania: 10, Lithuanian: 11, Dutch: 12, Slovenia: 13,
* Hungarian: 14, Russian: 15, Ukrainian: 16, Slovak: 17, Danish: 18, Croatia: 19,Indonesian: 20,korean:21,hindi:22
* portuguese:23,turkish:24,thai:25,vietnamese:26,burmese:27,filipino:28
*/
@property (nonatomic,assign) NSInteger languageUnit;
/**
* 走路步伐 根据男性换算 默认值 72 (单位 :cm)
* Walking pace According to male conversion Default value 72 (unit: cm)
*/
@property (nonatomic,assign) NSInteger strideWalk;
/**
* 跑步步伐 根据男性换算 默认值 90 (单位 :cm)
* Running pace Converted by male Default 90 (Unit: cm)
*/
@property (nonatomic,assign) NSInteger strideRun;
/**
* gps校准步长 0x00:无效, 0x01:开, 0x02: 关
* gps calibration step size 0x00: invalid, 0x01: on, 0x02: off
*/
@property (nonatomic,assign) NSInteger strideGps;
/**
* 时间单位 0x00:无效, 0x01:24 小时制,0x02: 12 小时制
* Time unit 0x00: Invalid, 0x01: 24-hour clock, 0x02: 12-hour clock
*/
@property (nonatomic,assign) NSInteger timeUnit;
/**
* 星期的开始日 星期日:0x01,星期一 :0x00,星期六 :0x03
* Start of the week Sunday: 0x01, Monday: 0x00, Saturday: 0x03
*/
@property (nonatomic,assign) NSInteger weekStart;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetUnitInfoBluetoothModel
*/
+ (__kindof IDOSetUnitInfoBluetoothModel *)currentModel;
@end
#pragma mark ==== 设置心率区间model ====
@interface IDOSetHrIntervalInfoBluetoothModel:IDOBluetoothBaseModel
/**
燃烧脂肪 | Threshold for burning fat
*/
@property (nonatomic,assign) NSInteger burnFat;
/**
有氧运动 | Aerobic threshold
*/
@property (nonatomic,assign) NSInteger aerobic;
/**
极限运动 | Limit threshold
*/
@property (nonatomic,assign) NSInteger limitValue;
/**
最大心率 | Maximum heart rate
*/
@property (nonatomic,assign) NSInteger userMaxHr;
/**
热身运动 | Warm-up
*/
@property (nonatomic,assign) NSInteger warmUp;
/**
无氧运动 | Anaerobic exercise
*/
@property (nonatomic,assign) NSInteger anaerobic;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetHrIntervalInfoBluetoothModel
*/
+ (__kindof IDOSetHrIntervalInfoBluetoothModel *)currentModel;
@end
#pragma mark ==== 设置勿扰模式model ====
@interface IDOSetNoDisturbModeInfoBluetoothModel:IDOBluetoothBaseModel
/**
开关 | Switch
*/
@property (nonatomic,assign) BOOL isOpen;
/**
开始 (时) | Start (hours)
*/
@property (nonatomic,assign) NSInteger startHour;
/**
开始 (分) | Start (minutes)
*/
@property (nonatomic,assign) NSInteger startMinute;
/**
结束 (时) | End (hours)
*/
@property (nonatomic,assign) NSInteger endHour;
/**
结束 (分) | End (minutes)
*/
@property (nonatomic,assign) NSInteger endMinute;
/**
* 是否有间隔重复提醒
* interval repeat reminder
*/
@property (nonatomic,assign) BOOL isHaveRangRepeat;
/**
* 重复集合 [星期一、星期二、星期三、星期四、星期五、星期六、星期日]
* Repeat collection [monday,tuesday,wednesday,thursday,friday,saturday,sunday]
*/
@property (nonatomic,strong)NSArray<NSNumber *> * repeat;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetNoDisturbModeInfoBluetoothModel
*/
+ (__kindof IDOSetNoDisturbModeInfoBluetoothModel *)currentModel;
@end
#pragma mark ==== 设置心率模式model ====
@interface IDOSetHrModeInfoBluetoothModel:IDOBluetoothBaseModel
/**
* 心率模式 0:关闭心率监测功能 1:手动模式 2:自动模式 3:持续监测(默认:自动模式)
* Heart Rate Mode 0: Turn off heart rate monitoring function 1: Manual mode 2: Auto mode 3:Continuously monitor(Default: Auto mode)
*/
@property (nonatomic,assign) NSInteger modeType;
/**
是否有相隔时间 | Is there a time interval?
*/
@property (nonatomic,assign) BOOL isHasTimeRange;
/**
开始 (时) | Start (hours)
*/
@property (nonatomic,assign) NSInteger startHour;
/**
开始 (分) | Start (minutes)
*/
@property (nonatomic,assign) NSInteger startMinute;
/**
结束 (时) | End (hours)
*/
@property (nonatomic,assign) NSInteger endHour;
/**
结束 (分) | End (minutes)
*/
@property (nonatomic,assign) NSInteger endMinute;
/**
测量间隔,单位分钟 | measurement Interval,unit:minutes
*/
@property (nonatomic,assign) NSInteger measurementInterval;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetHRModeInfoBluetoothModel
*/
+ (__kindof IDOSetHrModeInfoBluetoothModel *)currentModel;
@end
#pragma mark ==== 设置手环横竖屏model ====
@interface IDOSetDisplayModeInfoBluetoothModel:IDOBluetoothBaseModel
/**
显示模式 | Display mode
*/
@property (nonatomic,assign) NSInteger modeType;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetDisplayModeInfoBluetoothModel
*/
+ (__kindof IDOSetDisplayModeInfoBluetoothModel *)currentModel;
@end
#pragma mark ==== 设置抬腕手势model ====
@interface IDOSetHandUpInfoBuletoothModel : IDOBluetoothBaseModel
/**
开关 | Switch
*/
@property (nonatomic,assign) BOOL isOpen;
/**
是否有相隔时间 | Is there a time interval?
*/
@property (nonatomic,assign) BOOL isHasTimeRange;
/**
显示时长 3~10 秒 | Display time 3~10 second
*/
@property (nonatomic,assign) NSInteger showSecond;
/**
开始 (时) | Start (hours)
*/
@property (nonatomic,assign) NSInteger startHour;
/**
开始 (分) | Start (minutes)
*/
@property (nonatomic,assign) NSInteger startMinute;
/**
结束 (时) | End (hours)
*/
@property (nonatomic,assign) NSInteger endHour;
/**
结束 (分) | End (minutes)
*/
@property (nonatomic,assign) NSInteger endMinute;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetHandUpInfoBuletoothModel
*/
+ (__kindof IDOSetHandUpInfoBuletoothModel *)currentModel;
@end
#pragma mark ==== 设置久坐提醒model ====
@interface IDOSetLongSitInfoBuletoothModel : IDOBluetoothBaseModel
/**
开始 (时) | Start (hours)
*/
@property (nonatomic,assign) NSInteger startHour;
/**
开始 (分) | Start (minutes)
*/
@property (nonatomic,assign) NSInteger startMinute;
/**
结束 (时) | End (hours)
*/
@property (nonatomic,assign) NSInteger endHour;
/**
结束 (分) | End (minutes)
*/
@property (nonatomic,assign) NSInteger endMinute;
/**
间隔 | Interval
*/
@property (nonatomic,assign) NSInteger interval;
/**
开关 | Switch
*/
@property (nonatomic,assign) BOOL isOpen;
/**
* 重复集合 [星期一、星期二、星期三、星期四、星期五、星期六、星期日]
* Repeat collection [monday,tuesday,wednesday,thursday,friday,saturday,sunday]
*/
@property (nonatomic,strong) NSArray <NSNumber *>* selectWeeks;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetLongSitInfoBuletoothModel
*/
+ (__kindof IDOSetLongSitInfoBuletoothModel *)currentModel;
@end
#pragma mark ==== 设置天气预报开关model ====
@interface IDOSetWeatherSwitchInfoBluetoothModel:IDOBluetoothBaseModel
/**
天气预报开关 | Weather forecast switch
*/
@property (nonatomic,assign) BOOL isOpen;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetWeatherSwitchInfoBluetoothModel
*/
+ (__kindof IDOSetWeatherSwitchInfoBluetoothModel *)currentModel;
@end
#pragma mark ==== 设置相机开关model ====
@interface IDOSetCameraInfoBluetoothModel:IDOBluetoothBaseModel
/**
相机开关 | Camera switch
*/
@property (nonatomic,assign) BOOL isOpen;
@end
#pragma mark ==== 设置音乐开关model ====
@interface IDOSetMusicOpenInfoBuletoothModel : IDOBluetoothBaseModel
/**
音乐开关 | Music switch
*/
@property (nonatomic,assign) BOOL isOpen;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetMusicOpenInfoBuletoothModel
*/
+ (__kindof IDOSetMusicOpenInfoBuletoothModel *)currentModel;
@end
#pragma mark ==== 设置防止丢失model ====
@interface IDOSetPreventLostInfoBuletoothModel : IDOBluetoothBaseModel
/**
防丢失级别 | Loss prevention level
*/
@property (nonatomic,assign) NSInteger levelType;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetPreventLostInfoBuletoothModel
*/
+ (__kindof IDOSetPreventLostInfoBuletoothModel *)currentModel;
@end
#pragma mark ==== 设置左右手穿戴model ====
@interface IDOSetLeftOrRightInfoBuletoothModel : IDOBluetoothBaseModel
/**
是否右手佩戴 | Is it worn on the right hand?
*/
@property (nonatomic,assign) BOOL isRight;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetLeftOrRightInfoBuletoothModel
*/
+ (__kindof IDOSetLeftOrRightInfoBuletoothModel *)currentModel;
@end
#pragma mark ==== 设置寻找手机model ====
@interface IDOSetFindPhoneInfoBuletoothModel : IDOBluetoothBaseModel
/**
寻找手机开关 | Looking for a phone switch
*/
@property (nonatomic,assign) BOOL isOpen;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetFindPhoneInfoBuletoothModel
*/
+ (__kindof IDOSetFindPhoneInfoBuletoothModel *)currentModel;
@end
#pragma mark ==== 设置一键呼叫model ====
@interface IDOSetOneKeySosInfoBuletoothModel : IDOBluetoothBaseModel
/**
一键呼叫开关 | One-touch call switch
*/
@property (nonatomic,assign) BOOL isOpen;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetOneKeySosInfoBuletoothModel
*/
+ (__kindof IDOSetOneKeySosInfoBuletoothModel *)currentModel;
@end
#pragma mark ==== 设置开启蓝牙配对model ====
@interface IDOSetPairingInfoBuletoothModel : IDOBluetoothBaseModel
/**
配对时间戳 time interval since 1970 (如:1444361933)
* Pairing timestamp time interval since 1970 (eg 14442361933)
*/
@property (nonatomic,copy) NSString * pairingTimeStr;
/**
是否配对 | Pairing
*/
@property (nonatomic,assign) BOOL isPairing;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetPairingInfoBuletoothModel
*/
+ (__kindof IDOSetPairingInfoBuletoothModel *)currentModel;
@end
#pragma mark ==== 设置智能提醒model ====
@interface IDOSetNoticeInfoBuletoothModel : IDOBluetoothBaseModel
/**
是否配对 | Pairing
*/
@property (nonatomic,assign) BOOL isPairing;
/**
来电延迟 | Call delay
*/
@property (nonatomic,assign) NSInteger callDelay;
/**
* 是否开启子开关 (只对智能提醒有效,对来电提醒无效)
* Whether to enable the sub-switch (only valid for smart reminders, invalid for incoming call reminders)
*/
@property (nonatomic,assign) BOOL isOnChild;
/**
来电提醒 | Call reminder
*/
@property (nonatomic,assign) BOOL isOnCall;
/**
短信提醒 | SMS reminder
*/
@property (nonatomic,assign) BOOL isOnSms;
/**
邮件提醒 | Email alert
*/
@property (nonatomic,assign) BOOL isOnEmail;
/**
微信提醒 | WeChat reminder
*/
@property (nonatomic,assign) BOOL isOnWeChat;
/**
qq提醒 | qq reminder
*/
@property (nonatomic,assign) BOOL isOnQq;
/**
微博提醒 | Weibo reminder
*/
@property (nonatomic,assign) BOOL isOnWeibo;
/**
FaceBook 提醒 | FaceBook Reminder
*/
@property (nonatomic,assign) BOOL isOnFaceBook;
/**
Twitter 提醒 | Twitter Reminder
*/
@property (nonatomic,assign) BOOL isOnTwitter;
/**
Whatsapp 提醒 | Whatsapp Reminder
*/
@property (nonatomic,assign) BOOL isOnWhatsapp;
/**
Messenger 提醒 | Messenger reminder
*/
@property (nonatomic,assign) BOOL isOnMessenger;
/**
Instagram 提醒 | Instagram reminder
*/
@property (nonatomic,assign) BOOL isOnInstagram;
/**
LinkedIn 提醒 | LinkedIn Reminder
*/
@property (nonatomic,assign) BOOL isOnLinkedIn;
/**
Calendar 提醒 | Calendar Reminder
*/
@property (nonatomic,assign) BOOL isOnCalendar;
/**
Skype 提醒 | Skype reminder
*/
@property (nonatomic,assign) BOOL isOnSkype;
/**
Alarm 提醒 | Alarm Reminder
*/
@property (nonatomic,assign) BOOL isOnAlarm;
/**
Pokeman 提醒 | Pokemon Reminder
*/
@property (nonatomic,assign) BOOL isOnPokeman;
/**
Vkontakte 提醒 | Vkontakte Reminder
*/
@property (nonatomic,assign) BOOL isOnVkontakte;
/**
Line 提醒 | Line reminder
*/
@property (nonatomic,assign) BOOL isOnLine;
/**
Viber 提醒 | Viber reminder
*/
@property (nonatomic,assign) BOOL isOnViber;
/**
KakaoTalk 提醒 | KakaoTalk Reminder
*/
@property (nonatomic,assign) BOOL isOnKakaoTalk;
/**
Gmail 提醒 | Gmail reminder
*/
@property (nonatomic,assign) BOOL isOnGmail;
/**
Outlook 提醒 | Outlook reminder
*/
@property (nonatomic,assign) BOOL isOnOutlook;
/**
Snapchat 提醒 | Snapchat Reminder
*/
@property (nonatomic,assign) BOOL isOnSnapchat;
/**
Telegram 提醒 | Telegram Reminder
*/
@property (nonatomic,assign) BOOL isOnTelegram;
/**
Chatwork 提醒 | Chatwork
*/
@property (nonatomic,assign) BOOL isOnChatwork;
/**
Slack 提醒 | Slack
*/
@property (nonatomic,assign) BOOL isOnSlack;
/**
Yahoo Mail 提醒 | Yahoo Mail
*/
@property (nonatomic,assign) BOOL isOnYahooMail;
/**
Tumblr 提醒 | Tumblr
*/
@property (nonatomic,assign) BOOL isOnTumblr;
/**
Youtube 提醒 | Youtube
*/
@property (nonatomic,assign) BOOL isOnYoutube;
/**
Yahoo Pinterest 提醒 | Yahoo Pinterest
*/
@property (nonatomic,assign) BOOL isOnYahooPinterest;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetNoticeInfoBuletoothModel
*/
+ (__kindof IDOSetNoticeInfoBuletoothModel *)currentModel;
@end
#pragma mark ==== 设置用户信息model ====
@interface IDOSetUserInfoBuletoothModel : IDOBluetoothBaseModel
/**
身高(厘米) | Height(cm)
*/
@property (nonatomic,assign) NSInteger height;
/**
当前体重(千克) | Current weight(kg)
*/
@property (nonatomic,assign) NSInteger weight;
/**
性别 1: 男 2 :女 | Gender 1: Male 2: Female
*/
@property (nonatomic,assign) NSInteger gender;
/**
年 | year
*/
@property (nonatomic,assign) NSInteger year;
/**
月 | Month
*/
@property (nonatomic,assign) NSInteger month;
/**
日 | day
*/
@property (nonatomic,assign) NSInteger day;
/**
目标睡眠 (时) | Target sleep (hours)
*/
@property (nonatomic,assign) NSInteger goalSleepDataHour;
/**
目标睡眠 (分) | Target sleep (minutes)
*/
@property (nonatomic,assign) NSInteger goalSleepDataMinute;
/**
目标步数 | Target steps
*/
@property (nonatomic,assign) NSInteger goalStepData;
/**
目标卡路里 | Goal Calories
*/
@property (nonatomic,assign) NSInteger goalCalorieData;
/**
目标距离(米) | Target distance(m)
*/
@property (nonatomic,assign) NSInteger goalDistanceData;
/**
目标体重(千克) | Target weight(kg)
*/
@property (nonatomic,assign) NSInteger goalWeightData;
/**
* 目标类型 (类型 : 0 : 步数 1 : 卡路里 2 : 距离) 设置一种类型的目标需要执行一次命令
* Target type (type : 0 : step 1 : calories 2 : distance) Setting a type of target requires a command to be executed
*/
@property (nonatomic,assign) NSInteger goalType;
/**
是否登陆 | Login
*/
@property (nonatomic,assign) BOOL isLogin;
/**
绑定状态 | Binding status
*/
@property (nonatomic,assign) NSInteger bindState;
/**
* @brief 查询数据库,如果查询不到初始化新的model对象
* Query the database, if the query does not initialize a new model object
* @return IDOSetUserInfoBuletoothModel
*/
+ (__kindof IDOSetUserInfoBuletoothModel *)currentModel;
@end
@interface IDOSetInfoBluetoothModel : IDOBluetoothBaseModel
@end
|