-
- All Implemented Interfaces:
-
java.io.Serializable
public class SceneCondition implements SerializableCreated by letian on 2016/10/17.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringCONDITION_TYPE_TIMERprivate Stringidprivate StringentitySubIdsprivate StringentityIdprivate intentityTypeprivate StringentityNameprivate IntegercondTypeprivate StringexprDisplayprivate List<Object>exprprivate StringiconUrlprivate ConditionExtraInfoBeanextraInfoprivate StringproductIdprivate StringproductPicprivate booleandevDelMarkprivate StringdeleteDevIconprivate StringdefaultIconUrl
-
Constructor Summary
Constructors Constructor Description SceneCondition()
-
Method Summary
Modifier and Type Method Description StringgetId()voidsetId(String id)StringgetEntitySubIds()voidsetEntitySubIds(String entitySubIds)StringgetEntityId()voidsetEntityId(String entityId)intgetEntityType()voidsetEntityType(int entityType)StringgetEntityName()voidsetEntityName(String entityName)IntegergetCondType()voidsetCondType(Integer condType)StringgetExprDisplay()voidsetExprDisplay(String exprDisplay)List<Object>getExpr()voidsetExpr(List<Object> expr)StringgetIconUrl()voidsetIconUrl(String iconUrl)ConditionExtraInfoBeangetExtraInfo()voidsetExtraInfo(ConditionExtraInfoBean extraInfo)StringgetProductId()voidsetProductId(String productId)StringgetProductPic()voidsetProductPic(String productPic)voidsetDevDelMark(boolean devDelMark)StringgetDeleteDevIcon()voidsetDeleteDevIcon(String deleteDevIcon)StringgetDefaultIconUrl()voidsetDefaultIconUrl(String defaultIconUrl)static SceneConditioncreateDevCondition(DeviceBean devBean, String dpId, Rule rule)Create condition of device type static SceneConditioncreateDevCondition(DeviceBean devBean, String dpId, List<Rule> rules)Create condition of device typethis method is deprecated, please usecreateDevCondition static SceneConditioncreateWeatherCondition(PlaceFacadeBean place, String type, Rule rule)Create condition of weather type static SceneConditioncreateSunRiseSetCondition(PlaceFacadeBean city, Rule rule)static SceneConditioncreateTimerCondition(String display, String name, String type, Rule rule)Create condition of timer type static SceneConditioncreateGeoFenceCondition(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 booleanisDevDelMark()booleanequals(Object o)inthashCode()-
-
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()
-
-
-
-