package com.hdl.sdk.link.bean;
|
|
import java.io.Serializable;
|
import java.util.ArrayList;
|
import java.util.List;
|
|
import androidx.annotation.NonNull;
|
|
/**
|
* Created by Zoro
|
* Created on 2022/2/16
|
* description:
|
*/
|
public class LinkCreateLogicInputBean implements Serializable {
|
private String sid;
|
/**
|
* 时间点条件 1
|
* 时间段条件 2
|
* 设备状态变化条件 3
|
* 环境信息 4
|
* 安防条件 5 不做
|
* 云端天气条件 6
|
* 某个逻辑/场景的输出条件 7
|
* 地理围栏 8 不做
|
*/
|
private String condition_type;
|
//true:临时bypass中、false:启用中 是否过滤
|
private String bypass;
|
private List<LinkCreateLogicInputConditionBean> condition = new ArrayList<>();
|
private String statusDesc;
|
private String src;
|
private String omodel;
|
private String choose;
|
private String oid;
|
private String spk;
|
private String delay;
|
private String name;
|
private String online;
|
private LinkCreateSceneImageBean sceneImage = new LinkCreateSceneImageBean();
|
private List<LinkCreateSceneFunctionStatusBean> status = new ArrayList<>();
|
private LinkCreateSceneFunctionControlAttrsBean controlAttrs;
|
private List<LinkCreateSceneFunctionattributesBean> attributes = new ArrayList<>();
|
|
public String getBypass() {
|
return bypass == null ? "" : bypass;
|
}
|
|
public void setBypass(@NonNull String bypass) {
|
this.bypass = bypass;
|
}
|
|
public String getStatusDesc() {
|
return statusDesc == null ? "" : statusDesc;
|
}
|
|
public void setStatusDesc(@NonNull String statusDesc) {
|
this.statusDesc = statusDesc;
|
}
|
|
public String getSrc() {
|
return src == null ? "" : src;
|
}
|
|
public void setSrc(@NonNull String src) {
|
this.src = src;
|
}
|
|
public String getOmodel() {
|
return omodel == null ? "" : omodel;
|
}
|
|
public void setOmodel(@NonNull String omodel) {
|
this.omodel = omodel;
|
}
|
|
public String getChoose() {
|
return choose == null ? "" : choose;
|
}
|
|
public void setChoose(@NonNull String choose) {
|
this.choose = choose;
|
}
|
|
public String getOid() {
|
return oid == null ? "" : oid;
|
}
|
|
public void setOid(@NonNull String oid) {
|
this.oid = oid;
|
}
|
|
public String getSpk() {
|
return spk == null ? "" : spk;
|
}
|
|
public void setSpk(@NonNull String spk) {
|
this.spk = spk;
|
}
|
|
public String getDelay() {
|
return delay == null ? "" : delay;
|
}
|
|
public void setDelay(@NonNull String delay) {
|
this.delay = delay;
|
}
|
|
public String getName() {
|
return name == null ? "" : name;
|
}
|
|
public void setName(@NonNull String name) {
|
this.name = name;
|
}
|
|
public String getOnline() {
|
return online == null ? "" : online;
|
}
|
|
public void setOnline(@NonNull String online) {
|
this.online = online;
|
}
|
|
public LinkCreateSceneImageBean getSceneImage() {
|
if (sceneImage == null) {
|
sceneImage = new LinkCreateSceneImageBean("0", "https://hdl-hz-prod.oss-cn-hangzhou.aliyuncs.com/material/appdebug/scene0.png", "/static/images/scene/scene0.png");
|
}
|
return sceneImage;
|
}
|
|
public void setSceneImage(@NonNull LinkCreateSceneImageBean sceneImage) {
|
this.sceneImage = sceneImage;
|
}
|
|
public List<LinkCreateSceneFunctionStatusBean> getStatus() {
|
if (status == null) {
|
return new ArrayList<>();
|
}
|
return status;
|
}
|
|
public void setStatus(@NonNull List<LinkCreateSceneFunctionStatusBean> status) {
|
this.status = status;
|
}
|
|
public LinkCreateSceneFunctionControlAttrsBean getControlAttrs() {
|
return controlAttrs;
|
}
|
|
public void setControlAttrs(@NonNull LinkCreateSceneFunctionControlAttrsBean controlAttrs) {
|
this.controlAttrs = controlAttrs;
|
}
|
|
public List<LinkCreateSceneFunctionattributesBean> getAttributes() {
|
if (attributes == null) {
|
return new ArrayList<>();
|
}
|
return attributes;
|
}
|
|
public void setAttributes(@NonNull List<LinkCreateSceneFunctionattributesBean> attributes) {
|
this.attributes = attributes;
|
}
|
|
public String getSid() {
|
return sid == null ? "" : sid;
|
}
|
|
public void setSid(@NonNull String sid) {
|
this.sid = sid;
|
}
|
|
public String getCondition_type() {
|
return condition_type == null ? "" : condition_type;
|
}
|
|
public void setCondition_type(@NonNull String condition_type) {
|
this.condition_type = condition_type;
|
}
|
|
public List<LinkCreateLogicInputConditionBean> getCondition() {
|
if (condition == null) {
|
return new ArrayList<>();
|
}
|
return condition;
|
}
|
|
public void setCondition(@NonNull List<LinkCreateLogicInputConditionBean> condition) {
|
this.condition = condition;
|
}
|
}
|