Exemplo n.º 1
0
 public Evento(DateTime fecha, ConfigGPIO dispositivo, Boolean estado, String descripcion)
 {
     this.fecha       = fecha;
     this.dispositivo = dispositivo;
     this.estado      = estado;
     this.descripcion = descripcion;
 }
Exemplo n.º 2
0
 public Programacion(int id, ConfigGPIO gpio, TimeSpan hora1, Boolean prender, String descripcion, Boolean habilitado)
 {
     this.id          = id;
     this.gpio        = gpio;
     this.hora1       = hora1;
     this.prender     = prender;
     this.descripcion = descripcion;
     this.habilitado  = habilitado;
 }
Exemplo n.º 3
0
 public Programacion(int id, ConfigGPIO gpio, TimeSpan hora1, int duracion, Boolean prender, String descripcion, Boolean habilitado)
 {
     if (duracion <= 0)
     {
         throw new ArgumentException("La duracion debe ser mayor a 0");
     }
     this.id          = id;
     this.gpio        = gpio;
     this.hora1       = hora1;
     this.duracion    = duracion;
     this.prender     = prender;
     this.descripcion = descripcion;
     this.habilitado  = habilitado;
 }