using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace ApiServer.Structures { public class Discret { public int Index { get; set; } public string Start { get { return start.ToString("yyyy.MM.dd HH:mm:ss"); } } public DateTime start = new DateTime(); public byte? State { get; set; } } public class DiscretMatrix { public string Dt { get { return start.ToString("yyyy.MM.dd HH:mm:ss"); } } public DateTime start = new DateTime(); public byte?[] M { get; set; } } }