36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
|
|
using JiShe.ServicePro.Enums;
|
|||
|
|
using System.ComponentModel.DataAnnotations;
|
|||
|
|
|
|||
|
|
namespace JiShe.IoT.DeviceAggregation
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 设备命令
|
|||
|
|
/// </summary>
|
|||
|
|
public class DeviceCommandForApiInput
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 表通信地址
|
|||
|
|
/// </summary>
|
|||
|
|
[Required(ErrorMessage = "设备地址不能为空")]
|
|||
|
|
public string DeviceAddress { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 物联网平台类型
|
|||
|
|
/// </summary>
|
|||
|
|
[Required(ErrorMessage = "物联网平台类型不能为空")]
|
|||
|
|
public IoTPlatformTypeEnum IoTPlatform { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 设备在物联网平台中对应的产品Id
|
|||
|
|
/// </summary>
|
|||
|
|
[Required(ErrorMessage = "产品Id不能为空")]
|
|||
|
|
public string IoTPlatformProductId { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 设备在物联网平台中发送的命令内容,JSON格式
|
|||
|
|
/// </summary>
|
|||
|
|
[Required(ErrorMessage = "命令内容不能为空")]
|
|||
|
|
public string CommandContent { get; set; }
|
|||
|
|
}
|
|||
|
|
}
|