A factory design mode for create ThingSmartSceneConditionModel.
More...
#import <ThingSmartSceneConditionFactory.h>
A factory design mode for create ThingSmartSceneConditionModel.
- Note
- In order to facilitate the handling of multiple languages, this class does not handle the actionDisplay and actionDisplayNew fields of the ThingSmartSceneConditionModel.
Definition at line 15 of file ThingSmartSceneConditionFactory.h.
◆ calculateConditionWithDeviceModel:dpModel:exprModel:durationTime: [1/4]
◆ calculateConditionWithDeviceModel:dpModel:exprModel:durationTime: [2/4]
◆ calculateConditionWithDeviceModel:dpModel:exprModel:durationTime: [3/4]
◆ calculateConditionWithDeviceModel:dpModel:exprModel:durationTime: [4/4]
◆ createDeviceConditionWithDevice:dpModel:exprModel: [1/4]
◆ createDeviceConditionWithDevice:dpModel:exprModel: [2/4]
◆ createDeviceConditionWithDevice:dpModel:exprModel: [3/4]
◆ createDeviceConditionWithDevice:dpModel:exprModel: [4/4]
◆ createGeoFenceConditionWithGeoType:geoLati:geoLonti:geoRadius:geoTitle: [1/4]
+ (ThingSmartSceneConditionModel *) createGeoFenceConditionWithGeoType: |
|
(GeoFenceType) |
type |
geoLati: |
|
(CGFloat) |
latitude |
geoLonti: |
|
(CGFloat) |
longitude |
geoRadius: |
|
(CGFloat) |
radius |
geoTitle: |
|
(NSString *) |
geoTitle |
|
|
| |
Create a GeoFence conditon,conditionModel's entityId will be assigned after scene saved, the entityId represent the geoFence id, will should be upload to server by http API to trigger the automation.
- Parameters
-
type | The GeoFenceType, reach or leave the place. |
latitude | The geo fence center latitude. |
longitude | The geo fence center longitude. |
radius | Consider latitude and longitude as the center of a circle, this property represent the radius. |
geoTitle | The location name. |
- Returns
- ThingSmartSceneConditionModel object.
◆ createGeoFenceConditionWithGeoType:geoLati:geoLonti:geoRadius:geoTitle: [2/4]
+ (ThingSmartSceneConditionModel *) createGeoFenceConditionWithGeoType: |
|
(GeoFenceType) |
type |
geoLati: |
|
(CGFloat) |
latitude |
geoLonti: |
|
(CGFloat) |
longitude |
geoRadius: |
|
(CGFloat) |
radius |
geoTitle: |
|
(NSString *) |
geoTitle |
|
|
| |
Create a GeoFence conditon,conditionModel's entityId will be assigned after scene saved, the entityId represent the geoFence id, will should be upload to server by http API to trigger the automation.
- Parameters
-
type | The GeoFenceType, reach or leave the place. |
latitude | The geo fence center latitude. |
longitude | The geo fence center longitude. |
radius | Consider latitude and longitude as the center of a circle, this property represent the radius. |
geoTitle | The location name. |
- Returns
- ThingSmartSceneConditionModel object.
◆ createGeoFenceConditionWithGeoType:geoLati:geoLonti:geoRadius:geoTitle: [3/4]
+ (ThingSmartSceneConditionModel *) createGeoFenceConditionWithGeoType: |
|
(GeoFenceType) |
type |
geoLati: |
|
(CGFloat) |
latitude |
geoLonti: |
|
(CGFloat) |
longitude |
geoRadius: |
|
(CGFloat) |
radius |
geoTitle: |
|
(NSString *) |
geoTitle |
|
|
| |
Create a GeoFence conditon,conditionModel's entityId will be assigned after scene saved, the entityId represent the geoFence id, will should be upload to server by http API to trigger the automation.
- Parameters
-
type | The GeoFenceType, reach or leave the place. |
latitude | The geo fence center latitude. |
longitude | The geo fence center longitude. |
radius | Consider latitude and longitude as the center of a circle, this property represent the radius. |
geoTitle | The location name. |
- Returns
- ThingSmartSceneConditionModel object.
◆ createGeoFenceConditionWithGeoType:geoLati:geoLonti:geoRadius:geoTitle: [4/4]
+ (ThingSmartSceneConditionModel *) createGeoFenceConditionWithGeoType: |
|
(GeoFenceType) |
type |
geoLati: |
|
(CGFloat) |
latitude |
geoLonti: |
|
(CGFloat) |
longitude |
geoRadius: |
|
(CGFloat) |
radius |
geoTitle: |
|
(NSString *) |
geoTitle |
|
|
| |
Create a GeoFence conditon,conditionModel's entityId will be assigned after scene saved, the entityId represent the geoFence id, will should be upload to server by http API to trigger the automation.
- Parameters
-
type | The GeoFenceType, reach or leave the place. |
latitude | The geo fence center latitude. |
longitude | The geo fence center longitude. |
radius | Consider latitude and longitude as the center of a circle, this property represent the radius. |
geoTitle | The location name. |
- Returns
- ThingSmartSceneConditionModel object.
◆ createManualExecuteCondition [1/4]
Create an "manual execute" condition.This condition should not be saved to cloud server, when you call the API to save a smart, you should delete this type of condition first.
- Returns
- ThingSmartSceneConditionModel object.
◆ createManualExecuteCondition [2/4]
Create an "manual execute" condition.This condition should not be saved to cloud server, when you call the API to save a smart, you should delete this type of condition first.
- Returns
- ThingSmartSceneConditionModel object.
◆ createManualExecuteCondition [3/4]
Create an "manual execute" condition.This condition should not be saved to cloud server, when you call the API to save a smart, you should delete this type of condition first.
- Returns
- ThingSmartSceneConditionModel object.
◆ createManualExecuteCondition [4/4]
Create an "manual execute" condition.This condition should not be saved to cloud server, when you call the API to save a smart, you should delete this type of condition first.
- Returns
- ThingSmartSceneConditionModel object.
◆ createPirConditionWithDevice:dpModel:exprModel: [1/4]
Create a timed type of human sensor condition, such as no movement for five minutes. Common human sensor conditions use -createDeviceConditionWithDevice:dpModel:exprModel:.
- Parameters
-
- Returns
- ThingSmartSceneConditionModel object.
◆ createPirConditionWithDevice:dpModel:exprModel: [2/4]
Create a timed type of human sensor condition, such as no movement for five minutes. Common human sensor conditions use -createDeviceConditionWithDevice:dpModel:exprModel:.
- Parameters
-
- Returns
- ThingSmartSceneConditionModel object.
◆ createPirConditionWithDevice:dpModel:exprModel: [3/4]
Create a timed type of human sensor condition, such as no movement for five minutes. Common human sensor conditions use -createDeviceConditionWithDevice:dpModel:exprModel:.
- Parameters
-
- Returns
- ThingSmartSceneConditionModel object.
◆ createPirConditionWithDevice:dpModel:exprModel: [4/4]
Create a timed type of human sensor condition, such as no movement for five minutes. Common human sensor conditions use -createDeviceConditionWithDevice:dpModel:exprModel:.
- Parameters
-
- Returns
- ThingSmartSceneConditionModel object.
◆ createSunsetriseTimerConditionWithCity:ExprModel: [1/4]
◆ createSunsetriseTimerConditionWithCity:ExprModel: [2/4]
◆ createSunsetriseTimerConditionWithCity:ExprModel: [3/4]
◆ createSunsetriseTimerConditionWithCity:ExprModel: [4/4]
◆ createTimerConditionWithExprModel: [1/4]
◆ createTimerConditionWithExprModel: [2/4]
◆ createTimerConditionWithExprModel: [3/4]
◆ createTimerConditionWithExprModel: [4/4]
◆ createWhetherConditionWithCity:dpModel:exprModel: [1/4]
◆ createWhetherConditionWithCity:dpModel:exprModel: [2/4]
◆ createWhetherConditionWithCity:dpModel:exprModel: [3/4]
◆ createWhetherConditionWithCity:dpModel:exprModel: [4/4]
◆ memberBackHomeConditionWithDevId:entitySubIds:memberIds:memberNames: [1/4]
+ (ThingSmartSceneConditionModel *) memberBackHomeConditionWithDevId: |
|
(NSString *) |
devId |
entitySubIds: |
|
(NSString *) |
entitySubIds |
memberIds: |
|
(NSString *) |
memberIds |
memberNames: |
|
(NSString *) |
memberNames |
|
|
| |
Create member going home condition.
- Parameters
-
devId | The device ID. |
entitySubIds | The entity sub IDs. |
memberIds | The member IDs string, each data is separated by commas. |
memberNames | The member names string, each data is separated by commas. |
- Returns
- ThingSmartSceneConditionModel object.
◆ memberBackHomeConditionWithDevId:entitySubIds:memberIds:memberNames: [2/4]
+ (ThingSmartSceneConditionModel *) memberBackHomeConditionWithDevId: |
|
(NSString *) |
devId |
entitySubIds: |
|
(NSString *) |
entitySubIds |
memberIds: |
|
(NSString *) |
memberIds |
memberNames: |
|
(NSString *) |
memberNames |
|
|
| |
Create member going home condition.
- Parameters
-
devId | The device ID. |
entitySubIds | The entity sub IDs. |
memberIds | The member IDs string, each data is separated by commas. |
memberNames | The member names string, each data is separated by commas. |
- Returns
- ThingSmartSceneConditionModel object.
◆ memberBackHomeConditionWithDevId:entitySubIds:memberIds:memberNames: [3/4]
+ (ThingSmartSceneConditionModel *) memberBackHomeConditionWithDevId: |
|
(NSString *) |
devId |
entitySubIds: |
|
(NSString *) |
entitySubIds |
memberIds: |
|
(NSString *) |
memberIds |
memberNames: |
|
(NSString *) |
memberNames |
|
|
| |
Create member going home condition.
- Parameters
-
devId | The device ID. |
entitySubIds | The entity sub IDs. |
memberIds | The member IDs string, each data is separated by commas. |
memberNames | The member names string, each data is separated by commas. |
- Returns
- ThingSmartSceneConditionModel object.
◆ memberBackHomeConditionWithDevId:entitySubIds:memberIds:memberNames: [4/4]
+ (ThingSmartSceneConditionModel *) memberBackHomeConditionWithDevId: |
|
(NSString *) |
devId |
entitySubIds: |
|
(NSString *) |
entitySubIds |
memberIds: |
|
(NSString *) |
memberIds |
memberNames: |
|
(NSString *) |
memberNames |
|
|
| |
Create member going home condition.
- Parameters
-
devId | The device ID. |
entitySubIds | The entity sub IDs. |
memberIds | The member IDs string, each data is separated by commas. |
memberNames | The member names string, each data is separated by commas. |
- Returns
- ThingSmartSceneConditionModel object.
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/ThingSmartSceneConditionFactory.h
- /Users/humtong/Downloads/Pods_副本/ThingSmartSceneCoreKit/Build/ThingSmartSceneCoreKit.xcframework/watchos-arm64_i386_x86_64-simulator/ThingSmartSceneCoreKit.framework/Headers/ThingSmartSceneConditionFactory.h
- /Users/humtong/Downloads/Pods_副本/ThingSmartSceneCoreKit/Build/ThingSmartSceneCoreKit.xcframework/ios-arm64/ThingSmartSceneCoreKit.framework/Headers/ThingSmartSceneConditionFactory.h
- /Users/humtong/Downloads/Pods_副本/ThingSmartSceneCoreKit/Build/ThingSmartSceneCoreKit.xcframework/watchos-arm64_arm64_32_armv7k/ThingSmartSceneCoreKit.framework/Headers/ThingSmartSceneConditionFactory.h