21 lines
422 B
C#
21 lines
422 B
C#
using Newtonsoft.Json;
|
|
|
|
namespace Dlhis.Dormitory.Api.Request;
|
|
|
|
public class PowerSwitchRequest
|
|
{
|
|
public PowerSwitchRequest(string roomid, int power)
|
|
{
|
|
this.RoomId = roomid;
|
|
this.Power = power;
|
|
}
|
|
|
|
[JsonProperty("roomid")]
|
|
public string RoomId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 0 断电 1 上电
|
|
/// </summary>
|
|
[JsonProperty("power")]
|
|
public int Power { get; set; }
|
|
} |