-
- All Implemented Interfaces:
-
java.io.Serializable
public class SceneCondition implements Serializable
Created by letian on 2016/10/17.
-
-
Field Summary
Fields Modifier and Type Field Description public final static String
CONDITION_TYPE_TIMER
private String
id
private String
entitySubIds
private String
entityId
private int
entityType
private String
entityName
private Integer
condType
private String
exprDisplay
private List<Object>
expr
private String
iconUrl
private ConditionExtraInfoBean
extraInfo
private String
productId
private String
productPic
private boolean
devDelMark
private String
deleteDevIcon
private String
defaultIconUrl
-
Constructor Summary
Constructors Constructor Description SceneCondition()
-
Method Summary
Modifier and Type Method Description String
getId()
void
setId(String id)
String
getEntitySubIds()
void
setEntitySubIds(String entitySubIds)
String
getEntityId()
void
setEntityId(String entityId)
int
getEntityType()
void
setEntityType(int entityType)
String
getEntityName()
void
setEntityName(String entityName)
Integer
getCondType()
void
setCondType(Integer condType)
String
getExprDisplay()
void
setExprDisplay(String exprDisplay)
List<Object>
getExpr()
void
setExpr(List<Object> expr)
String
getIconUrl()
void
setIconUrl(String iconUrl)
ConditionExtraInfoBean
getExtraInfo()
void
setExtraInfo(ConditionExtraInfoBean extraInfo)
String
getProductId()
void
setProductId(String productId)
String
getProductPic()
void
setProductPic(String productPic)
void
setDevDelMark(boolean devDelMark)
String
getDeleteDevIcon()
void
setDeleteDevIcon(String deleteDevIcon)
String
getDefaultIconUrl()
void
setDefaultIconUrl(String defaultIconUrl)
static SceneCondition
createDevCondition(DeviceBean devBean, String dpId, Rule rule)
Create condition of device type static SceneCondition
createDevCondition(DeviceBean devBean, String dpId, List<Rule> rules)
Create condition of device typethis method is deprecated, please usecreateDevCondition static SceneCondition
createWeatherCondition(PlaceFacadeBean place, String type, Rule rule)
Create condition of weather type static SceneCondition
createSunRiseSetCondition(PlaceFacadeBean city, Rule rule)
static SceneCondition
createTimerCondition(String display, String name, String type, Rule rule)
Create condition of timer type static SceneCondition
createGeoFenceCondition(double lat, double lng, int radius, String address, GeoType geoType)
Create condition of geo-fence typemust have google geo api key to take effectAfter creation, the next call to getSceneList will activate all automated geofencing registrations boolean
isDevDelMark()
boolean
equals(Object o)
int
hashCode()
-
-
Method Detail
-
getId
String getId()
-
setId
void setId(String id)
-
getEntitySubIds
String getEntitySubIds()
-
setEntitySubIds
void setEntitySubIds(String entitySubIds)
-
getEntityId
String getEntityId()
-
setEntityId
void setEntityId(String entityId)
-
getEntityType
int getEntityType()
-
setEntityType
void setEntityType(int entityType)
-
getEntityName
String getEntityName()
-
setEntityName
void setEntityName(String entityName)
-
getCondType
Integer getCondType()
-
setCondType
void setCondType(Integer condType)
-
getExprDisplay
String getExprDisplay()
-
setExprDisplay
void setExprDisplay(String exprDisplay)
-
getExpr
List<Object> getExpr()
-
setExpr
void setExpr(List<Object> expr)
-
getIconUrl
String getIconUrl()
-
setIconUrl
void setIconUrl(String iconUrl)
-
getExtraInfo
ConditionExtraInfoBean getExtraInfo()
-
setExtraInfo
void setExtraInfo(ConditionExtraInfoBean extraInfo)
-
getProductId
String getProductId()
-
setProductId
void setProductId(String productId)
-
getProductPic
String getProductPic()
-
setProductPic
void setProductPic(String productPic)
-
setDevDelMark
void setDevDelMark(boolean devDelMark)
-
getDeleteDevIcon
String getDeleteDevIcon()
-
setDeleteDevIcon
void setDeleteDevIcon(String deleteDevIcon)
-
getDefaultIconUrl
String getDefaultIconUrl()
-
setDefaultIconUrl
void setDefaultIconUrl(String defaultIconUrl)
-
createDevCondition
static SceneCondition createDevCondition(DeviceBean devBean, String dpId, Rule rule)
Create condition of device type
- Parameters:
devBean
- The device of conditioncom.thingclips.smart.sdk.bean.DeviceBeandpId
- The id of data point in conditionsrule
- The rule of condition com.thingclips.smart.home.sdk.bean.scene.condition.rule.Rule
-
createDevCondition
@Deprecated() static SceneCondition createDevCondition(DeviceBean devBean, String dpId, List<Rule> rules)
-
createWeatherCondition
static SceneCondition createWeatherCondition(PlaceFacadeBean place, String type, Rule rule)
Create condition of weather type
- Parameters:
place
- Current citycom.thingclips.smart.home.sdk.bean.scene.PlaceFacadeBeantype
- The type of conditionrule
- The rule of condition com.thingclips.smart.home.sdk.bean.scene.condition.rule.Rule
-
createSunRiseSetCondition
static SceneCondition createSunRiseSetCondition(PlaceFacadeBean city, Rule rule)
- Parameters:
city
- City that needs to be set com.thingclips.smart.home.sdk.bean.scene.PlaceFacadeBeanrule
- Instance of SunSetRiseRule com.thingclips.smart.home.sdk.bean.scene.condition.rule.SunSetRiseRule
-
createTimerCondition
static SceneCondition createTimerCondition(String display, String name, String type, Rule rule)
Create condition of timer type
- Parameters:
display
- Description of the time conditionsname
- The name of conditiontype
- The type of conditionrule
- The rule of condition com.thingclips.smart.home.sdk.bean.scene.condition.rule.Rule
-
createGeoFenceCondition
static SceneCondition createGeoFenceCondition(double lat, double lng, int radius, String address, GeoType geoType)
Create condition of geo-fence typemust have google geo api key to take effectAfter creation, the next call to getSceneList will activate all automated geofencing registrations
- Parameters:
lat
- Latitude of the center point of the triggerlng
- Longitude of the center point of the triggerradius
- Radius of the trigger center pointaddress
- Name of the geographic location of the trigger pointgeoType
- Type of trigger com.thingclips.smart.home.sdk.bean.scene.condition.GeoType
-
isDevDelMark
boolean isDevDelMark()
-
equals
boolean equals(Object o)
-
hashCode
int hashCode()
-
-
-
-