28 lines
686 B
C#
28 lines
686 B
C#
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Shelly.DTO.Shelly1PM
|
|
{
|
|
/// <summary>
|
|
/// Input info
|
|
/// </summary>
|
|
public class InputDto
|
|
{
|
|
/// <summary>
|
|
/// Id of the Input component instance
|
|
/// </summary>
|
|
[JsonProperty("id")]
|
|
public int Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// Current State(only for type switch, button) State of the input (null if the input instance is stateless, i.e. for type button)
|
|
/// </summary>
|
|
[JsonProperty("state")]
|
|
public bool State { get; set; }
|
|
}
|
|
}
|