1 //Create a class for contact sensor
4 public class contacts {
6 private String displayName
7 private String currentContact
8 private String contactLatestValue
10 contacts(int id, String displayName, String currentContact, String contactLatestValue) {
12 this.displayName = displayName
13 this.currentContact = currentContact
14 this.contactLatestValue = contactLatestValue
17 def currentValue(String S) {
23 def latestValue(String S) {
25 return contactLatestValue