ThingSmartScenePreConditionFactory provides convenient construction methods for developers to generate precondition object.
More...
#import <ThingSmartScenePreConditionFactory.h>
ThingSmartScenePreConditionFactory provides convenient construction methods for developers to generate precondition object.
Definition at line 16 of file ThingSmartScenePreConditionFactory.h.
◆ creatAllDayPreConditionWithSceneId:existConditionId:loops:timeZoneId: [1/4]
+ (ThingSmartScenePreConditionModel *) creatAllDayPreConditionWithSceneId: |
|
(nullable NSString *) |
sceneId |
existConditionId: |
|
(nullable NSString *) |
conditionId |
loops: |
|
(NSString *) |
loops |
timeZoneId: |
|
(NSString *) |
timeZoneId |
|
|
| |
Create an all-day valid precondition.
- Parameters
-
sceneId | The scene id. You can pass nil when create an automation scene. |
conditionId | The current condition id. You need to pass the original condition id when editing scene for automation scene. |
loops | The loop description, the data format is "1111111". Each bit indicates the Sunday to Saturday, 1 means valid, 0 means invalid. |
timeZoneId | The timezone id, eg:"Asia/Shanghai". |
- Returns
- The ThingSmartScenePreConditionModel instance.
◆ creatAllDayPreConditionWithSceneId:existConditionId:loops:timeZoneId: [2/4]
+ (ThingSmartScenePreConditionModel *) creatAllDayPreConditionWithSceneId: |
|
(nullable NSString *) |
sceneId |
existConditionId: |
|
(nullable NSString *) |
conditionId |
loops: |
|
(NSString *) |
loops |
timeZoneId: |
|
(NSString *) |
timeZoneId |
|
|
| |
Create an all-day valid precondition.
- Parameters
-
sceneId | The scene id. You can pass nil when create an automation scene. |
conditionId | The current condition id. You need to pass the original condition id when editing scene for automation scene. |
loops | The loop description, the data format is "1111111". Each bit indicates the Sunday to Saturday, 1 means valid, 0 means invalid. |
timeZoneId | The timezone id, eg:"Asia/Shanghai". |
- Returns
- The ThingSmartScenePreConditionModel instance.
◆ creatAllDayPreConditionWithSceneId:existConditionId:loops:timeZoneId: [3/4]
+ (ThingSmartScenePreConditionModel *) creatAllDayPreConditionWithSceneId: |
|
(nullable NSString *) |
sceneId |
existConditionId: |
|
(nullable NSString *) |
conditionId |
loops: |
|
(NSString *) |
loops |
timeZoneId: |
|
(NSString *) |
timeZoneId |
|
|
| |
Create an all-day valid precondition.
- Parameters
-
sceneId | The scene id. You can pass nil when create an automation scene. |
conditionId | The current condition id. You need to pass the original condition id when editing scene for automation scene. |
loops | The loop description, the data format is "1111111". Each bit indicates the Sunday to Saturday, 1 means valid, 0 means invalid. |
timeZoneId | The timezone id, eg:"Asia/Shanghai". |
- Returns
- The ThingSmartScenePreConditionModel instance.
◆ creatAllDayPreConditionWithSceneId:existConditionId:loops:timeZoneId: [4/4]
+ (ThingSmartScenePreConditionModel *) creatAllDayPreConditionWithSceneId: |
|
(nullable NSString *) |
sceneId |
existConditionId: |
|
(nullable NSString *) |
conditionId |
loops: |
|
(NSString *) |
loops |
timeZoneId: |
|
(NSString *) |
timeZoneId |
|
|
| |
Create an all-day valid precondition.
- Parameters
-
sceneId | The scene id. You can pass nil when create an automation scene. |
conditionId | The current condition id. You need to pass the original condition id when editing scene for automation scene. |
loops | The loop description, the data format is "1111111". Each bit indicates the Sunday to Saturday, 1 means valid, 0 means invalid. |
timeZoneId | The timezone id, eg:"Asia/Shanghai". |
- Returns
- The ThingSmartScenePreConditionModel instance.
◆ createCustomTimePreConditionWithSceneId:existConditionId:loops:cityId:cityName:timeZoneId:beginTime:endTime: [1/4]
+ (ThingSmartScenePreConditionModel *) createCustomTimePreConditionWithSceneId: |
|
(nullable NSString *) |
sceneId |
existConditionId: |
|
(nullable NSString *) |
conditionId |
loops: |
|
(NSString *) |
loops |
cityId: |
|
(NSString *) |
cityId |
cityName: |
|
(NSString *) |
cityName |
timeZoneId: |
|
(NSString *) |
timeZoneId |
beginTime: |
|
(NSString *) |
begin |
endTime: |
|
(NSString *) |
end |
|
|
| |
Create a valid precondition of custom time period.
- Parameters
-
sceneId | The scene id. You can pass nil when create an automation scene. |
conditionId | The current condition id. You need to pass the original condition id when editing scene for automation scene. |
loops | The loop description, the data format is "1111111". Each bit indicates the Sunday to Saturday, 1 means valid, 0 means invalid. |
cityId | The current city id. |
cityName | The current city name. |
timeZoneId | The timezone id, eg:"Asia/Shanghai". |
begin | The begin date. eg:"00:59". |
end | The end date. eg:"18:30". |
- Returns
- The ThingSmartScenePreConditionModel instance.
◆ createCustomTimePreConditionWithSceneId:existConditionId:loops:cityId:cityName:timeZoneId:beginTime:endTime: [2/4]
+ (ThingSmartScenePreConditionModel *) createCustomTimePreConditionWithSceneId: |
|
(nullable NSString *) |
sceneId |
existConditionId: |
|
(nullable NSString *) |
conditionId |
loops: |
|
(NSString *) |
loops |
cityId: |
|
(NSString *) |
cityId |
cityName: |
|
(NSString *) |
cityName |
timeZoneId: |
|
(NSString *) |
timeZoneId |
beginTime: |
|
(NSString *) |
begin |
endTime: |
|
(NSString *) |
end |
|
|
| |
Create a valid precondition of custom time period.
- Parameters
-
sceneId | The scene id. You can pass nil when create an automation scene. |
conditionId | The current condition id. You need to pass the original condition id when editing scene for automation scene. |
loops | The loop description, the data format is "1111111". Each bit indicates the Sunday to Saturday, 1 means valid, 0 means invalid. |
cityId | The current city id. |
cityName | The current city name. |
timeZoneId | The timezone id, eg:"Asia/Shanghai". |
begin | The begin date. eg:"00:59". |
end | The end date. eg:"18:30". |
- Returns
- The ThingSmartScenePreConditionModel instance.
◆ createCustomTimePreConditionWithSceneId:existConditionId:loops:cityId:cityName:timeZoneId:beginTime:endTime: [3/4]
+ (ThingSmartScenePreConditionModel *) createCustomTimePreConditionWithSceneId: |
|
(nullable NSString *) |
sceneId |
existConditionId: |
|
(nullable NSString *) |
conditionId |
loops: |
|
(NSString *) |
loops |
cityId: |
|
(NSString *) |
cityId |
cityName: |
|
(NSString *) |
cityName |
timeZoneId: |
|
(NSString *) |
timeZoneId |
beginTime: |
|
(NSString *) |
begin |
endTime: |
|
(NSString *) |
end |
|
|
| |
Create a valid precondition of custom time period.
- Parameters
-
sceneId | The scene id. You can pass nil when create an automation scene. |
conditionId | The current condition id. You need to pass the original condition id when editing scene for automation scene. |
loops | The loop description, the data format is "1111111". Each bit indicates the Sunday to Saturday, 1 means valid, 0 means invalid. |
cityId | The current city id. |
cityName | The current city name. |
timeZoneId | The timezone id, eg:"Asia/Shanghai". |
begin | The begin date. eg:"00:59". |
end | The end date. eg:"18:30". |
- Returns
- The ThingSmartScenePreConditionModel instance.
◆ createCustomTimePreConditionWithSceneId:existConditionId:loops:cityId:cityName:timeZoneId:beginTime:endTime: [4/4]
+ (ThingSmartScenePreConditionModel *) createCustomTimePreConditionWithSceneId: |
|
(nullable NSString *) |
sceneId |
existConditionId: |
|
(nullable NSString *) |
conditionId |
loops: |
|
(NSString *) |
loops |
cityId: |
|
(NSString *) |
cityId |
cityName: |
|
(NSString *) |
cityName |
timeZoneId: |
|
(NSString *) |
timeZoneId |
beginTime: |
|
(NSString *) |
begin |
endTime: |
|
(NSString *) |
end |
|
|
| |
Create a valid precondition of custom time period.
- Parameters
-
sceneId | The scene id. You can pass nil when create an automation scene. |
conditionId | The current condition id. You need to pass the original condition id when editing scene for automation scene. |
loops | The loop description, the data format is "1111111". Each bit indicates the Sunday to Saturday, 1 means valid, 0 means invalid. |
cityId | The current city id. |
cityName | The current city name. |
timeZoneId | The timezone id, eg:"Asia/Shanghai". |
begin | The begin date. eg:"00:59". |
end | The end date. eg:"18:30". |
- Returns
- The ThingSmartScenePreConditionModel instance.
◆ createDayTimePreConditionWithSceneId:existConditionId:loops:cityId:cityName:timeZoneId: [1/4]
+ (ThingSmartScenePreConditionModel *) createDayTimePreConditionWithSceneId: |
|
(nullable NSString *) |
sceneId |
existConditionId: |
|
(nullable NSString *) |
conditionId |
loops: |
|
(NSString *) |
loops |
cityId: |
|
(NSString *) |
cityId |
cityName: |
|
(NSString *) |
cityName |
timeZoneId: |
|
(NSString *) |
timeZoneId |
|
|
| |
Create a daytime valid precondition.
- Parameters
-
sceneId | The scene id. You can pass nil when create an automation scene. |
conditionId | The current condition id. You need to pass the original condition id when editing scene for automation scene. |
loops | The loop description, the data format is "1111111". Each bit indicates the Sunday to Saturday, 1 means valid, 0 means invalid. |
cityId | The current city id. |
cityName | The current city name. |
timeZoneId | The timezone id, eg:"Asia/Shanghai". |
- Returns
- The ThingSmartScenePreConditionModel instance.
◆ createDayTimePreConditionWithSceneId:existConditionId:loops:cityId:cityName:timeZoneId: [2/4]
+ (ThingSmartScenePreConditionModel *) createDayTimePreConditionWithSceneId: |
|
(nullable NSString *) |
sceneId |
existConditionId: |
|
(nullable NSString *) |
conditionId |
loops: |
|
(NSString *) |
loops |
cityId: |
|
(NSString *) |
cityId |
cityName: |
|
(NSString *) |
cityName |
timeZoneId: |
|
(NSString *) |
timeZoneId |
|
|
| |
Create a daytime valid precondition.
- Parameters
-
sceneId | The scene id. You can pass nil when create an automation scene. |
conditionId | The current condition id. You need to pass the original condition id when editing scene for automation scene. |
loops | The loop description, the data format is "1111111". Each bit indicates the Sunday to Saturday, 1 means valid, 0 means invalid. |
cityId | The current city id. |
cityName | The current city name. |
timeZoneId | The timezone id, eg:"Asia/Shanghai". |
- Returns
- The ThingSmartScenePreConditionModel instance.
◆ createDayTimePreConditionWithSceneId:existConditionId:loops:cityId:cityName:timeZoneId: [3/4]
+ (ThingSmartScenePreConditionModel *) createDayTimePreConditionWithSceneId: |
|
(nullable NSString *) |
sceneId |
existConditionId: |
|
(nullable NSString *) |
conditionId |
loops: |
|
(NSString *) |
loops |
cityId: |
|
(NSString *) |
cityId |
cityName: |
|
(NSString *) |
cityName |
timeZoneId: |
|
(NSString *) |
timeZoneId |
|
|
| |
Create a daytime valid precondition.
- Parameters
-
sceneId | The scene id. You can pass nil when create an automation scene. |
conditionId | The current condition id. You need to pass the original condition id when editing scene for automation scene. |
loops | The loop description, the data format is "1111111". Each bit indicates the Sunday to Saturday, 1 means valid, 0 means invalid. |
cityId | The current city id. |
cityName | The current city name. |
timeZoneId | The timezone id, eg:"Asia/Shanghai". |
- Returns
- The ThingSmartScenePreConditionModel instance.
◆ createDayTimePreConditionWithSceneId:existConditionId:loops:cityId:cityName:timeZoneId: [4/4]
+ (ThingSmartScenePreConditionModel *) createDayTimePreConditionWithSceneId: |
|
(nullable NSString *) |
sceneId |
existConditionId: |
|
(nullable NSString *) |
conditionId |
loops: |
|
(NSString *) |
loops |
cityId: |
|
(NSString *) |
cityId |
cityName: |
|
(NSString *) |
cityName |
timeZoneId: |
|
(NSString *) |
timeZoneId |
|
|
| |
Create a daytime valid precondition.
- Parameters
-
sceneId | The scene id. You can pass nil when create an automation scene. |
conditionId | The current condition id. You need to pass the original condition id when editing scene for automation scene. |
loops | The loop description, the data format is "1111111". Each bit indicates the Sunday to Saturday, 1 means valid, 0 means invalid. |
cityId | The current city id. |
cityName | The current city name. |
timeZoneId | The timezone id, eg:"Asia/Shanghai". |
- Returns
- The ThingSmartScenePreConditionModel instance.
◆ createNightTimePreConditionWithSceneId:existConditionId:loops:cityId:cityName:timeZoneId: [1/4]
+ (ThingSmartScenePreConditionModel *) createNightTimePreConditionWithSceneId: |
|
(nullable NSString *) |
sceneId |
existConditionId: |
|
(nullable NSString *) |
conditionId |
loops: |
|
(NSString *) |
loops |
cityId: |
|
(NSString *) |
cityId |
cityName: |
|
(NSString *) |
cityName |
timeZoneId: |
|
(NSString *) |
timeZoneId |
|
|
| |
Create a night valid precondition.
- Parameters
-
sceneId | The scene id. You can pass nil when create an automation scene. |
conditionId | The current condition id. You need to pass the original condition id when editing scene for automation scene. |
loops | The loop description, the data format is "1111111". Each bit indicates the Sunday to Saturday, 1 means valid, 0 means invalid. |
cityId | The current city id. |
cityName | The current city name. |
timeZoneId | The timezone id, eg:"Asia/Shanghai". |
- Returns
- The ThingSmartScenePreConditionModel instance.
◆ createNightTimePreConditionWithSceneId:existConditionId:loops:cityId:cityName:timeZoneId: [2/4]
+ (ThingSmartScenePreConditionModel *) createNightTimePreConditionWithSceneId: |
|
(nullable NSString *) |
sceneId |
existConditionId: |
|
(nullable NSString *) |
conditionId |
loops: |
|
(NSString *) |
loops |
cityId: |
|
(NSString *) |
cityId |
cityName: |
|
(NSString *) |
cityName |
timeZoneId: |
|
(NSString *) |
timeZoneId |
|
|
| |
Create a night valid precondition.
- Parameters
-
sceneId | The scene id. You can pass nil when create an automation scene. |
conditionId | The current condition id. You need to pass the original condition id when editing scene for automation scene. |
loops | The loop description, the data format is "1111111". Each bit indicates the Sunday to Saturday, 1 means valid, 0 means invalid. |
cityId | The current city id. |
cityName | The current city name. |
timeZoneId | The timezone id, eg:"Asia/Shanghai". |
- Returns
- The ThingSmartScenePreConditionModel instance.
◆ createNightTimePreConditionWithSceneId:existConditionId:loops:cityId:cityName:timeZoneId: [3/4]
+ (ThingSmartScenePreConditionModel *) createNightTimePreConditionWithSceneId: |
|
(nullable NSString *) |
sceneId |
existConditionId: |
|
(nullable NSString *) |
conditionId |
loops: |
|
(NSString *) |
loops |
cityId: |
|
(NSString *) |
cityId |
cityName: |
|
(NSString *) |
cityName |
timeZoneId: |
|
(NSString *) |
timeZoneId |
|
|
| |
Create a night valid precondition.
- Parameters
-
sceneId | The scene id. You can pass nil when create an automation scene. |
conditionId | The current condition id. You need to pass the original condition id when editing scene for automation scene. |
loops | The loop description, the data format is "1111111". Each bit indicates the Sunday to Saturday, 1 means valid, 0 means invalid. |
cityId | The current city id. |
cityName | The current city name. |
timeZoneId | The timezone id, eg:"Asia/Shanghai". |
- Returns
- The ThingSmartScenePreConditionModel instance.
◆ createNightTimePreConditionWithSceneId:existConditionId:loops:cityId:cityName:timeZoneId: [4/4]
+ (ThingSmartScenePreConditionModel *) createNightTimePreConditionWithSceneId: |
|
(nullable NSString *) |
sceneId |
existConditionId: |
|
(nullable NSString *) |
conditionId |
loops: |
|
(NSString *) |
loops |
cityId: |
|
(NSString *) |
cityId |
cityName: |
|
(NSString *) |
cityName |
timeZoneId: |
|
(NSString *) |
timeZoneId |
|
|
| |
Create a night valid precondition.
- Parameters
-
sceneId | The scene id. You can pass nil when create an automation scene. |
conditionId | The current condition id. You need to pass the original condition id when editing scene for automation scene. |
loops | The loop description, the data format is "1111111". Each bit indicates the Sunday to Saturday, 1 means valid, 0 means invalid. |
cityId | The current city id. |
cityName | The current city name. |
timeZoneId | The timezone id, eg:"Asia/Shanghai". |
- Returns
- The ThingSmartScenePreConditionModel instance.
◆ scenePreconditionWithParam: [1/4]
◆ scenePreconditionWithParam: [2/4]
◆ scenePreconditionWithParam: [3/4]
◆ scenePreconditionWithParam: [4/4]
The documentation for this class was generated from the following files:
- /Users/humtong/Downloads/Pods_副本/ThingSmartSceneCoreKit/Build/ThingSmartSceneCoreKit.xcframework/ios-arm64_x86_64-simulator/ThingSmartSceneCoreKit.framework/Headers/ThingSmartScenePreConditionFactory.h
- /Users/humtong/Downloads/Pods_副本/ThingSmartSceneCoreKit/Build/ThingSmartSceneCoreKit.xcframework/watchos-arm64_i386_x86_64-simulator/ThingSmartSceneCoreKit.framework/Headers/ThingSmartScenePreConditionFactory.h
- /Users/humtong/Downloads/Pods_副本/ThingSmartSceneCoreKit/Build/ThingSmartSceneCoreKit.xcframework/ios-arm64/ThingSmartSceneCoreKit.framework/Headers/ThingSmartScenePreConditionFactory.h
- /Users/humtong/Downloads/Pods_副本/ThingSmartSceneCoreKit/Build/ThingSmartSceneCoreKit.xcframework/watchos-arm64_arm64_32_armv7k/ThingSmartSceneCoreKit.framework/Headers/ThingSmartScenePreConditionFactory.h