From ce88de4891b87c3b7b2750575e15d6e48d518852 Mon Sep 17 00:00:00 2001 From: hxb <hxb@hdlchina.com.cn> Date: 星期四, 24 十月 2024 10:39:12 +0800 Subject: [PATCH] 增加云端库 --- HDLLinkPMSdk/src/main/java/com/hdl/linkpm/sdk/device/bean/CategoryInfo.java | 72 ++++++++++++++++++++++++++++++++++++ 1 files changed, 72 insertions(+), 0 deletions(-) diff --git a/HDLLinkPMSdk/src/main/java/com/hdl/linkpm/sdk/device/bean/CategoryInfo.java b/HDLLinkPMSdk/src/main/java/com/hdl/linkpm/sdk/device/bean/CategoryInfo.java new file mode 100644 index 0000000..f57b6a1 --- /dev/null +++ b/HDLLinkPMSdk/src/main/java/com/hdl/linkpm/sdk/device/bean/CategoryInfo.java @@ -0,0 +1,72 @@ +package com.hdl.linkpm.sdk.device.bean; + +import java.io.Serializable; +import java.util.ArrayList; +import java.util.List; + +import androidx.annotation.NonNull; + +/** + * Created by Zoro + * Created on 2022/11/1 + * description: + */ +public class CategoryInfo implements Serializable { + private String categoryId; + private String categoryCode; + private String categoryName; + private String categoryType; + private String categoryIcon; + private List<CategoryInfo> children = new ArrayList<>(); + + public String getCategoryIcon() { + return categoryIcon == null ? "" : categoryIcon; + } + + public void setCategoryIcon(@NonNull String categoryIcon) { + this.categoryIcon = categoryIcon; + } + + public String getCategoryId() { + return categoryId == null ? "" : categoryId; + } + + public void setCategoryId(@NonNull String categoryId) { + this.categoryId = categoryId; + } + + public String getCategoryCode() { + return categoryCode == null ? "" : categoryCode; + } + + public void setCategoryCode(@NonNull String categoryCode) { + this.categoryCode = categoryCode; + } + + public String getCategoryName() { + return categoryName == null ? "" : categoryName; + } + + public void setCategoryName(@NonNull String categoryName) { + this.categoryName = categoryName; + } + + public String getCategoryType() { + return categoryType == null ? "" : categoryType; + } + + public void setCategoryType(@NonNull String categoryType) { + this.categoryType = categoryType; + } + + public List<CategoryInfo> getChildren() { + if (children == null) { + return children = new ArrayList<>(); + } + return children; + } + + public void setChildren(@NonNull List<CategoryInfo> children) { + this.children = children; + } +} \ No newline at end of file -- Gitblit v1.8.0