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
//
//  TuyaSmartScenePreConditionModel.h
//  TuyaSmartSceneKit
//
//  Copyright (c) 2014-2021 Tuya Inc. (https://developer.tuya.com)
 
#import <Foundation/Foundation.h>
 
/// @brief TuyaSmartScenePreConditionModel provides more attributes for developers to create pre conditions for automation scene.
@interface TuyaSmartScenePreConditionModel : NSObject<NSCoding>
 
/// The scene id.
@property (nonatomic, copy) NSString *scenarioId;
 
/// The condition id in the scene.
@property (nonatomic, copy) NSString *conditionId;
 
/// The precondition type for automation scene.
@property (nonatomic, copy) NSString *condType;
 
/// The precondition expression information, it contains more fields. For detail:
///
/// timeInterval: it's enumeration string type, you can select custom/daytime/night/allDay. eg: "timeInterval": "allDay"
/// timeZoneId: it's string type, indicates the time zone id. eg: "timeZoneId": "Asia/Shanghai"
/// loops: it's string type, every bit representing from Sunday to Saturday, "1" means for valid. eg: "1111111".
/// start: it's string type, if type is timeCheck and timeInterval is custom, this property will be useful. eg: "start": "20:30".
/// end: it's string type, if type is timeCheck and timeInterval is custom, this property will be useful. eg: "end": "06:30".
/// cityId: it's string type, the city id. eg: "cityId": "793409534348627968".
/// cityName: it's string type, the city name. eg: "cityName": "hangzhou".
@property (nonatomic, strong) NSDictionary *expr;
 
@end