New file |
| | |
| | | package com.hdl.linkpm.sdk.template.bean;/* |
| | | *create by wxr |
| | | *date 2022/1/19 |
| | | */ |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | import androidx.annotation.NonNull; |
| | | |
| | | public class TemplateFunctionBean implements Serializable { |
| | | //房间 |
| | | private List<String> uids = new ArrayList<>(); |
| | | //功能Id |
| | | private String sid; |
| | | //功能名称 |
| | | private String name; |
| | | //功能类型 |
| | | private String spk; |
| | | //设备对应的oid |
| | | private String oid; |
| | | //物理设备(模块)型号 false非必须 |
| | | private String omodel; |
| | | //-- extend 扩展信息 false非必须 |
| | | private String extend; |
| | | |
| | | public List<String> getUids() { |
| | | return uids; |
| | | } |
| | | |
| | | public void setUids(List<String> uids) { |
| | | this.uids = uids; |
| | | } |
| | | |
| | | public String getSid() { |
| | | return sid == null ? "" : sid; |
| | | } |
| | | |
| | | public void setSid(String sid) { |
| | | this.sid = sid; |
| | | } |
| | | |
| | | public String getName() { |
| | | return name == null ? "" : name; |
| | | } |
| | | |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | |
| | | public String getSpk() { |
| | | return spk == null ? "" : spk; |
| | | } |
| | | |
| | | public void setSpk(String spk) { |
| | | this.spk = spk; |
| | | } |
| | | |
| | | public String getOid() { |
| | | return oid == null ? "" : oid; |
| | | } |
| | | |
| | | public void setOid(String oid) { |
| | | this.oid = oid; |
| | | } |
| | | |
| | | public String getOmodel() { |
| | | return omodel == null ? "" : omodel; |
| | | } |
| | | |
| | | public void setOmodel(String omodel) { |
| | | this.omodel = omodel; |
| | | } |
| | | |
| | | public String getExtend() { |
| | | return extend == null ? "" : extend; |
| | | } |
| | | |
| | | public void setExtend(String extend) { |
| | | this.extend = extend; |
| | | } |
| | | |
| | | public List<TemplateFunctionAttribute> getAttributes() { |
| | | if (attributes == null) { |
| | | return new ArrayList<>(); |
| | | } |
| | | return attributes; |
| | | } |
| | | |
| | | public void setAttributes(List<TemplateFunctionAttribute> attributes) { |
| | | this.attributes = attributes; |
| | | } |
| | | |
| | | //属性 false非必须 |
| | | private List<TemplateFunctionAttribute> attributes = new ArrayList<>(); |
| | | |
| | | |
| | | /** |
| | | * 功能属性对象 |
| | | */ |
| | | public static class TemplateFunctionAttribute implements Serializable { |
| | | //---- key 标识 false非必须 |
| | | private String key; |
| | | //---- data_type 数据类型 false非必须 |
| | | private String data_type; |
| | | //---- value 值 false非必须 |
| | | private List<String> value = new ArrayList<>(); |
| | | //---- max 最大 false非必须 |
| | | private String max; |
| | | //---- min 最小 false非必须 |
| | | private String min; |
| | | |
| | | public String getKey() { |
| | | return key; |
| | | } |
| | | |
| | | public void setKey(String key) { |
| | | this.key = key; |
| | | } |
| | | |
| | | public String getData_type() { |
| | | return data_type; |
| | | } |
| | | |
| | | public void setData_type(String data_type) { |
| | | this.data_type = data_type; |
| | | } |
| | | |
| | | public List<String> getValue() { |
| | | if (value == null) { |
| | | return new ArrayList<>(); |
| | | } |
| | | return value; |
| | | } |
| | | |
| | | public void setValue(@NonNull List<String> value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | public String getMax() { |
| | | return max; |
| | | } |
| | | |
| | | public void setMax(String max) { |
| | | this.max = max; |
| | | } |
| | | |
| | | public String getMin() { |
| | | return min; |
| | | } |
| | | |
| | | public void setMin(String min) { |
| | | this.min = min; |
| | | } |
| | | |
| | | public String getSort() { |
| | | return sort; |
| | | } |
| | | |
| | | public void setSort(String sort) { |
| | | this.sort = sort; |
| | | } |
| | | |
| | | //---- sort 排序 false非必须 |
| | | private String sort; |
| | | |
| | | } |
| | | |
| | | |
| | | } |
| | | |