2026-06-24 f4bd1f3c89d906131495a0aca5aaf82966378510
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
package cn.iocoder.yudao.module.iot.core.topic.property;
 
import cn.iocoder.yudao.module.iot.core.enums.IotDeviceMessageMethodEnum;
 
import java.util.HashMap;
import java.util.Map;
 
/**
 * IoT 设备属性上报 Request DTO
 * <p>
 * 用于 {@link IotDeviceMessageMethodEnum#PROPERTY_POST} 消息的 params 参数
 * <p>
 * 本质是一个 Map,key 为属性标识符,value 为属性值
 *
 * @author 芋道源码
 * @see <a href="http://help.aliyun.com/zh/marketplace/device-reporting-attributes">阿里云 - 设备上报属性</a>
 */
public class IotDevicePropertyPostReqDTO extends HashMap<String, Object> {
 
    public IotDevicePropertyPostReqDTO() {
        super();
    }
 
    public IotDevicePropertyPostReqDTO(Map<String, Object> properties) {
        super(properties);
    }
 
    /**
     * 创建属性上报 DTO
     *
     * @param properties 属性数据
     * @return DTO 对象
     */
    public static IotDevicePropertyPostReqDTO of(Map<String, Object> properties) {
        return new IotDevicePropertyPostReqDTO(properties);
    }
 
}