Пример #1
0
 public void activateLock()
 {
     if (this.door.isClosed())
     {
         this.door.activateLock();
         onDoorChanged.doorSecurityChanged("LOCKED", "Door Locked");
     }
     else
     {
         unlock();
     }
 }
Пример #2
0
 public void unlock()
 {
     this.door.unlock();
     onDoorChanged.doorSecurityChanged("UNLOCKED", "Door is Open");
 }