From 29be41b5182c30eaf79c53eb3e8fa052e62b594d Mon Sep 17 00:00:00 2001
From: ulrich
Date: Tue, 20 Apr 2021 22:17:18 +0000
Subject: [PATCH] Anzeige des Schaltzustands von Geraeten

---
 src/de/uhilger/mediaz/entity/Geraet.java |   39 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 39 insertions(+), 0 deletions(-)

diff --git a/src/de/uhilger/mediaz/entity/Geraet.java b/src/de/uhilger/mediaz/entity/Geraet.java
index c498d33..3977aa9 100644
--- a/src/de/uhilger/mediaz/entity/Geraet.java
+++ b/src/de/uhilger/mediaz/entity/Geraet.java
@@ -18,12 +18,27 @@
 package de.uhilger.mediaz.entity;
 
 /**
+ * 
+ * Beispiele
+ * HTTP GET http://192.168.178.64/relay/0 liefert {"ison":false,"has_timer":false,"overpower":false}
  *
  * @author Ulrich Hilger
  */
 public class Geraet implements Entity {
 
   private String name;
+  private String einUrl;
+  private String ausUrl;
+  private String statusUrl;
+  private String status;
+
+  public String getStatus() {
+    return status;
+  }
+
+  public void setStatus(String status) {
+    this.status = status;
+  }
 
   public void setName(String name) {
     this.name = name;
@@ -34,4 +49,28 @@
     return name;
   }
 
+  public String getEinUrl() {
+    return einUrl;
+  }
+
+  public void setEinUrl(String einUrl) {
+    this.einUrl = einUrl;
+  }
+
+  public String getAusUrl() {
+    return ausUrl;
+  }
+
+  public void setAusUrl(String ausUrl) {
+    this.ausUrl = ausUrl;
+  }
+
+  public String getStatusUrl() {
+    return statusUrl;
+  }
+
+  public void setStatusUrl(String statusUrl) {
+    this.statusUrl = statusUrl;
+  }
+
 }

--
Gitblit v1.9.3