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; } /// /// 0 断电 1 上电 /// [JsonProperty("power")] public int Power { get; set; } }