-
- All Implemented Interfaces:
-
com.thingclips.scene.core.model.ILinkageRule
,com.thingclips.scene.core.model.IScopesExt
,java.io.Serializable
public class NormalScene extends ScopesLinkageRule<NormalSceneExtBean> implements Serializable
公版场景
-
-
Constructor Summary
Constructors Constructor Description NormalScene()
NormalScene(int matchType, String ownerId, String id, String coverIcon, String name, List<SceneCondition> conditions, String displayColor, List<SceneAction> actions, boolean enabled, boolean boundForPanel, boolean stickyOnTop, boolean boundForWiFiPanel, boolean newLocalScene, boolean localLinkage, String arrowIconUrl, List<PreCondition> preConditions, int panelType, long disableTime, boolean fullData, int outOfWork)
旧版场景实体构建,使用需要注意,该构建方法已经缺失如下几个字段的初始化:linkageType,默认0roomIds,默认nullneedCleanGidSid,默认falsescenarioRule,默认nullruleGenre,默认0 NormalScene(int matchType, String ownerId, String id, String coverIcon, String name, List<SceneCondition> conditions, String displayColor, List<SceneAction> actions, boolean enabled, boolean boundForPanel, boolean stickyOnTop, boolean boundForWiFiPanel, boolean newLocalScene, boolean localLinkage, String arrowIconUrl, List<PreCondition> preConditions, int panelType, long disableTime, boolean fullData, int outOfWork, String background)
旧版场景实体构建,使用需要注意,该构建方法已经缺失如下几个字段的初始化:linkageType,默认0roomIds,默认nullneedCleanGidSid,默认falsescenarioRule,默认nullruleGenre,默认0 NormalScene(NormalScene originalScene)
根据NormalScene创建
-
Method Summary
Modifier and Type Method Description String
getBackground()
对应json字段:background void
setBackground(String background)
Boolean
getScenarioRule()
对应json字段:scenarioRule void
setScenarioRule(Boolean scenarioRule)
int
getMatchType()
对应json字段:matchType void
setMatchType(int matchType)
String
getOwnerId()
对应json字段:ownerId void
setOwnerId(String ownerId)
String
getId()
对应json字段:id void
setId(String id)
String
getCoverIcon()
对应json字段:coverIcon void
setCoverIcon(String coverIcon)
String
getName()
对应json字段:name void
setName(String name)
List<SceneCondition>
getConditions()
对应json字段:conditions void
setConditions(List<SceneCondition> conditions)
String
getDisplayColor()
对应json字段:displayColor void
setDisplayColor(String displayColor)
List<SceneAction>
getActions()
对应json字段:actions void
setActions(List<SceneAction> actions)
boolean
isEnabled()
对应json字段:enabled void
setEnabled(boolean enabled)
boolean
isBoundForPanel()
对应json字段:boundForPanel void
setBoundForPanel(boolean boundForPanel)
boolean
isStickyOnTop()
对应json字段:stickOnTop void
setStickyOnTop(boolean stickyOnTop)
boolean
isBoundForWiFiPanel()
对应json字段:boundForWifiPanel void
setBoundForWiFiPanel(boolean boundForWiFiPanel)
boolean
isNewLocalScene()
对应json字段:newLocalScene void
setNewLocalScene(boolean newLocalScene)
boolean
isLocalLinkage()
对应json字段:localLinkage,自动化是否被网关接管 void
setLocalLinkage(boolean localLinkage)
int
getLinkageType()
对应json字段:linkageType void
setLinkageType(int linkageType)
String
getArrowIconUrl()
对应json字段:arrowIconUrl void
setArrowIconUrl(String arrowIconUrl)
List<PreCondition>
getPreConditions()
对应json字段:preConditions void
setPreConditions(List<PreCondition> preConditions)
int
getPanelType()
对应json字段:panelType void
setPanelType(int panelType)
long
getDisableTime()
对应json字段:disableTime void
setDisableTime(long disableTime)
boolean
isFullData()
对应json字段:fullData void
setFullData(boolean fullData)
int
getOutOfWork()
对应json字段:outOfWork void
setOutOfWork(int outOfWork)
boolean
isNeedCleanGidSid()
对应json字段:needCleanGidSid void
setNeedCleanGidSid(boolean needCleanGidSid)
List<String>
getRoomIds()
对应json字段:roomIds void
setRoomIds(List<String> roomIds)
int
getRuleGenre()
对应json字段:ruleGenreif null return zero. void
setRuleGenre(int ruleGenre)
SceneType
sceneType()
一键执行的判断条件conditions.size = 0 ||conditions.size == 1 && conditions[0]. List<SceneCondition>
getStatusConditions()
对应json字段:statusConditions void
setStatusConditions(List<SceneCondition> statusConditions)
int
getSubMatchType()
对应json字段:subMatchType void
setSubMatchType(int subMatchType)
List<String>
getCategorys()
对应json字段:categorys void
setCategorys(List<String> categorys)
String
getGwId()
对应json字段:gwId void
setGwId(String gwId)
NormalSceneExtBean
scopesExtBean()
boolean
isValidateDevice()
void
setValidateDevice(boolean validateDevice)
-
Methods inherited from class com.thingclips.scene.core.bean.ScopesLinkageRule
actions, attribute, auditStatus, conditions, enabled, getLinkageRule, id, matchStatus, matchType, name, orderWeight, ownerId, preConditions, ruleGenre, ruleType, setLinkageRule, statusConditions, subMatchType, uid
-
Methods inherited from class com.thingclips.scene.core.model.ILinkageRule
actions, attribute, auditStatus, conditions, enabled, id, matchStatus, matchType, name, orderWeight, ownerId, preConditions, ruleGenre, ruleType, statusConditions, subMatchType, uid
-
Methods inherited from class com.thingclips.scene.core.model.IScopesExt
scopesExtBean
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
NormalScene
NormalScene()
-
NormalScene
NormalScene(int matchType, String ownerId, String id, String coverIcon, String name, List<SceneCondition> conditions, String displayColor, List<SceneAction> actions, boolean enabled, boolean boundForPanel, boolean stickyOnTop, boolean boundForWiFiPanel, boolean newLocalScene, boolean localLinkage, String arrowIconUrl, List<PreCondition> preConditions, int panelType, long disableTime, boolean fullData, int outOfWork)
旧版场景实体构建,使用需要注意,该构建方法已经缺失如下几个字段的初始化:linkageType,默认0roomIds,默认nullneedCleanGidSid,默认falsescenarioRule,默认nullruleGenre,默认0
-
NormalScene
NormalScene(int matchType, String ownerId, String id, String coverIcon, String name, List<SceneCondition> conditions, String displayColor, List<SceneAction> actions, boolean enabled, boolean boundForPanel, boolean stickyOnTop, boolean boundForWiFiPanel, boolean newLocalScene, boolean localLinkage, String arrowIconUrl, List<PreCondition> preConditions, int panelType, long disableTime, boolean fullData, int outOfWork, String background)
旧版场景实体构建,使用需要注意,该构建方法已经缺失如下几个字段的初始化:linkageType,默认0roomIds,默认nullneedCleanGidSid,默认falsescenarioRule,默认nullruleGenre,默认0- Parameters:
matchType
- 触发类型ownerId
- 家庭idid
- 场景 IDcoverIcon
- 一键执行的图标name
- 场景名称conditions
- 条件列表displayColor
- 场景背景颜色actions
- 动作列表enabled
- 自动化是否启用boundForPanel
- 场景绑定面板,也称面板场景(设备动作均为zigbee子设备)stickyOnTop
- 是否在首页显示boundForWiFiPanel
- 场景绑定面板,也称面板场景(设备动作为全设备)newLocalScene
- 是否是同网关下的一键执行localLinkage
- 是否是同网关下的自动化arrowIconUrl
- 场景箭头图标preConditions
- 场景生效时间段panelType
- 绑定面板的类型:0|仅支持zigbee子设备的面板,1|支持全设备的面板fullData
- 场景是否是全量数据(本地字段,用以标识是否是详情数据)outOfWork
- 场景状态:0|正常,1|失效,2|异常
-
NormalScene
NormalScene(NormalScene originalScene)
根据NormalScene创建
-
-
Method Detail
-
getBackground
@Deprecated() String getBackground()
对应json字段:background
-
setBackground
@Deprecated() void setBackground(String background)
-
getScenarioRule
Boolean getScenarioRule()
对应json字段:scenarioRule
-
setScenarioRule
void setScenarioRule(Boolean scenarioRule)
-
getMatchType
int getMatchType()
对应json字段:matchType
-
setMatchType
void setMatchType(int matchType)
-
getOwnerId
String getOwnerId()
对应json字段:ownerId
-
setOwnerId
void setOwnerId(String ownerId)
-
getId
String getId()
对应json字段:id
-
setId
void setId(String id)
-
getCoverIcon
String getCoverIcon()
对应json字段:coverIcon
-
setCoverIcon
void setCoverIcon(String coverIcon)
-
getName
String getName()
对应json字段:name
-
setName
void setName(String name)
-
getConditions
List<SceneCondition> getConditions()
对应json字段:conditions
-
setConditions
void setConditions(List<SceneCondition> conditions)
-
getDisplayColor
String getDisplayColor()
对应json字段:displayColor
-
setDisplayColor
void setDisplayColor(String displayColor)
-
getActions
List<SceneAction> getActions()
对应json字段:actions
-
setActions
void setActions(List<SceneAction> actions)
-
isEnabled
boolean isEnabled()
对应json字段:enabled
-
setEnabled
void setEnabled(boolean enabled)
-
isBoundForPanel
boolean isBoundForPanel()
对应json字段:boundForPanel
-
setBoundForPanel
void setBoundForPanel(boolean boundForPanel)
-
isStickyOnTop
boolean isStickyOnTop()
对应json字段:stickOnTop
-
setStickyOnTop
void setStickyOnTop(boolean stickyOnTop)
-
isBoundForWiFiPanel
boolean isBoundForWiFiPanel()
对应json字段:boundForWifiPanel
-
setBoundForWiFiPanel
void setBoundForWiFiPanel(boolean boundForWiFiPanel)
-
isNewLocalScene
boolean isNewLocalScene()
对应json字段:newLocalScene
-
setNewLocalScene
void setNewLocalScene(boolean newLocalScene)
-
isLocalLinkage
boolean isLocalLinkage()
对应json字段:localLinkage,自动化是否被网关接管
-
setLocalLinkage
void setLocalLinkage(boolean localLinkage)
-
getLinkageType
int getLinkageType()
对应json字段:linkageType
-
setLinkageType
void setLinkageType(int linkageType)
-
getArrowIconUrl
String getArrowIconUrl()
对应json字段:arrowIconUrl
-
setArrowIconUrl
void setArrowIconUrl(String arrowIconUrl)
-
getPreConditions
List<PreCondition> getPreConditions()
对应json字段:preConditions
-
setPreConditions
void setPreConditions(List<PreCondition> preConditions)
-
getPanelType
int getPanelType()
对应json字段:panelType
-
setPanelType
void setPanelType(int panelType)
-
getDisableTime
long getDisableTime()
对应json字段:disableTime
-
setDisableTime
void setDisableTime(long disableTime)
-
isFullData
boolean isFullData()
对应json字段:fullData
-
setFullData
void setFullData(boolean fullData)
-
getOutOfWork
int getOutOfWork()
对应json字段:outOfWork
-
setOutOfWork
void setOutOfWork(int outOfWork)
-
isNeedCleanGidSid
boolean isNeedCleanGidSid()
对应json字段:needCleanGidSid
-
setNeedCleanGidSid
void setNeedCleanGidSid(boolean needCleanGidSid)
-
getRoomIds
List<String> getRoomIds()
对应json字段:roomIds
-
setRoomIds
void setRoomIds(List<String> roomIds)
-
getRuleGenre
int getRuleGenre()
对应json字段:ruleGenreif null return zero.
-
setRuleGenre
void setRuleGenre(int ruleGenre)
-
sceneType
SceneType sceneType()
一键执行的判断条件conditions.size = 0 ||conditions.size == 1 && conditions[0].entityType == CONDITION_TYPE_MANUAL
-
getStatusConditions
List<SceneCondition> getStatusConditions()
对应json字段:statusConditions
-
setStatusConditions
void setStatusConditions(List<SceneCondition> statusConditions)
-
getSubMatchType
int getSubMatchType()
对应json字段:subMatchType
-
setSubMatchType
void setSubMatchType(int subMatchType)
-
getCategorys
List<String> getCategorys()
对应json字段:categorys
-
setCategorys
void setCategorys(List<String> categorys)
-
getGwId
String getGwId()
对应json字段:gwId
-
setGwId
void setGwId(String gwId)
-
scopesExtBean
NormalSceneExtBean scopesExtBean()
-
isValidateDevice
boolean isValidateDevice()
-
setValidateDevice
void setValidateDevice(boolean validateDevice)
-
-
-
-