New file |
| | |
| | | package com.hdl.linkpm.sdk.home.bean.logic; |
| | | |
| | | import androidx.annotation.NonNull; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Created by jlchen on 12/10/21. |
| | | * 安防 详情对象 |
| | | */ |
| | | public class SecurityInfoBean implements Serializable { |
| | | |
| | | private String sid;//安防id |
| | | private String name;//安防名称 |
| | | private String delay;//延时(毫秒) |
| | | private String status;//状态 enable布防、disable撒防 |
| | | private String type;//类型 "all"--全宅布防,"normal"--普通模式,"all_day":24小时,"mute":静音 |
| | | private List<InPutBean> input = new ArrayList<>();//输入条件 传感器 |
| | | private List<OutputBean> output = new ArrayList<>();//控制目标 |
| | | // private NoticeConfigBean noticeConfig;//通知配置 |
| | | // private List<PushConfigsBean> pushConfigs;//推送配置 |
| | | |
| | | |
| | | @NonNull |
| | | public String getSid() { |
| | | return sid == null ? "" : sid; |
| | | } |
| | | |
| | | public void setSid(@NonNull String sid) { |
| | | this.sid = sid; |
| | | } |
| | | |
| | | @NonNull |
| | | public String getName() { |
| | | return name == null ? "" : name; |
| | | } |
| | | |
| | | public void setName(@NonNull String name) { |
| | | this.name = name; |
| | | } |
| | | |
| | | @NonNull |
| | | public String getDelay() { |
| | | return delay == null ? "" : delay; |
| | | } |
| | | |
| | | public void setDelay(@NonNull String delay) { |
| | | this.delay = delay; |
| | | } |
| | | |
| | | @NonNull |
| | | public String getStatus() { |
| | | return status == null ? "" : status; |
| | | } |
| | | |
| | | public void setStatus(@NonNull String status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | @NonNull |
| | | public String getType() { |
| | | return type == null ? "" : type; |
| | | } |
| | | |
| | | public void setType(@NonNull String type) { |
| | | this.type = type; |
| | | } |
| | | |
| | | @NonNull |
| | | public List<InPutBean> getInput() { |
| | | if (input == null) { |
| | | return new ArrayList<>(); |
| | | } |
| | | return input; |
| | | } |
| | | |
| | | public void setInput(@NonNull List<InPutBean> input) { |
| | | this.input = input; |
| | | } |
| | | |
| | | @NonNull |
| | | public List<OutputBean> getOutput() { |
| | | if (output == null) { |
| | | return new ArrayList<>(); |
| | | } |
| | | return output; |
| | | } |
| | | |
| | | public void setOutput(@NonNull List<OutputBean> output) { |
| | | this.output = output; |
| | | } |
| | | |
| | | /** |
| | | * 触发条件 |
| | | */ |
| | | public static class InPutBean implements Serializable{ |
| | | private String sid;////设备sid 仅在condition_type:3 设备触发必填 |
| | | private String bypass;//#Bypass设置 true:启用中、false:临时bypass中 |
| | | private List<ConditionBean> condition;//条件 |
| | | |
| | | @NonNull |
| | | public String getSid() { |
| | | return sid == null ? "" : sid; |
| | | } |
| | | |
| | | public void setSid(@NonNull String sid) { |
| | | this.sid = sid; |
| | | } |
| | | |
| | | @NonNull |
| | | public String getBypass() { |
| | | return bypass == null ? "" : bypass; |
| | | } |
| | | |
| | | public void setBypass(@NonNull String bypass) { |
| | | this.bypass = bypass; |
| | | } |
| | | |
| | | @NonNull |
| | | public List<ConditionBean> getCondition() { |
| | | if (condition == null) { |
| | | return new ArrayList<>(); |
| | | } |
| | | return condition; |
| | | } |
| | | |
| | | public void setCondition(@NonNull List<ConditionBean> condition) { |
| | | this.condition = condition; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | // public static class NoticeConfigBean implements Serializable{ |
| | | // private boolean enable; |
| | | // private String noticeContent; |
| | | // |
| | | // public boolean isEnable() { |
| | | // return enable; |
| | | // } |
| | | // |
| | | // public void setEnable(boolean enable) { |
| | | // this.enable = enable; |
| | | // } |
| | | // |
| | | // public String getNoticeContent() { |
| | | // return noticeContent; |
| | | // } |
| | | // |
| | | // public void setNoticeContent(String noticeContent) { |
| | | // this.noticeContent = noticeContent; |
| | | // } |
| | | // } |
| | | |
| | | // public static class PushConfigsBean implements Serializable{ |
| | | // private String pushMethod; |
| | | // private List<String> pushTarget; |
| | | // |
| | | // public String getPushMethod() { |
| | | // return pushMethod; |
| | | // } |
| | | // |
| | | // public void setPushMethod(String pushMethod) { |
| | | // this.pushMethod = pushMethod; |
| | | // } |
| | | // |
| | | // public List<String> getPushTarget() { |
| | | // return pushTarget; |
| | | // } |
| | | // |
| | | // public void setPushTarget(List<String> pushTarget) { |
| | | // this.pushTarget = pushTarget; |
| | | // } |
| | | // } |
| | | } |