Skip to content
This repository has been archived by the owner on Nov 28, 2019. It is now read-only.

Commit

Permalink
Pequeños cambios para guardar dispositivos insertados.
Browse files Browse the repository at this point in the history
  • Loading branch information
xman40100 committed Apr 18, 2019
1 parent da04d94 commit 0e51182
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/techdomotica/objs/Ambiente.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,13 @@ public void createCamara(int index, String model, String mark, double value) {
camaras[index].toggleComponenteEncendido(true);
}

/*
public void addCameraToDB(String model, String mark, String resolution, int index, int use) {
connection.execute(String.format("INSERT INTO componente VALUES(null, 1, '%s', '%s', 100, %d, 0);", model, mark, use));
connection.execute(String.format(""));
}
*/

public void createTelevisor(String model, String mark) {
proyector = new Televisor(model, mark);
}
Expand Down

0 comments on commit 0e51182

Please sign in to comment.