wjc
2025-04-01 31e89a8697d049410c9d8d5c333cba33223bc9dc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
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;
    /**
     * 没有该字段、该值或0: 状态检测(每次收到状态就成立)
     * 1:动作检测(需要切换状态才成立)
     */
    private String detect_type;
    private String identifier;
    //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 getIdentifier() {
        return identifier == null ? "" : identifier;
    }
 
    public void setIdentifier(@NonNull String identifier) {
        this.identifier = identifier;
    }
 
    public String getDetect_type() {
        return detect_type == null ? "" : detect_type;
    }
 
    public void setDetect_type(@NonNull String detect_type) {
        this.detect_type = detect_type;
    }
 
    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;
    }
}