iotgateway/Plugins/PluginInterface/HuaWeiRoma/HwDeviceOnOffLine.cs
2022-08-10 16:55:44 +08:00

35 lines
828 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Newtonsoft.Json;
namespace PluginInterface.HuaWeiRoma
{
public class HwDeviceOnOffLine
{
[JsonProperty(PropertyName = "deviceStatuses")]
public List<DeviceStatus> DeviceStatuses = new();
/// <summary>
/// 命令ID
/// </summary>
[JsonProperty(PropertyName = "mid")]
public long MId { get; set; }
}
public class DeviceStatus
{
/// <summary>
/// 设备标识
/// </summary>
[JsonProperty(PropertyName = "deviceId")]
public string? DeviceId { get; set; }
/// <summary>
/// 子设备状态:
/// OFFLINE设备离线
/// ONLINE 设备上线
/// </summary>
[JsonProperty(PropertyName = "status")]
public string? Status { get; set; }
}
}