Examples of Calltype


Examples of org.openhab.library.tel.types.CallType

      if (event.getCallerIdNum() == null || event.getExten() == null) {
        logger.debug("calleridnum or exten is null -> handle new call aborted!");
        return;
      }
     
      CallType call = new CallType(
          new StringType(event.getCallerIdNum()),
          new StringType(event.getExten()));
      eventCache.put(event.getUniqueId(), call);
     
      if (itemType.isAssignableFrom(SwitchItem.class)) {
View Full Code Here

Examples of org.openhab.library.tel.types.CallType

        OnOffType activeState =
          (eventCache.size() == 0 ? OnOffType.OFF : OnOffType.ON);
        eventPublisher.postUpdate(itemName, activeState);
      }
      else if (itemType.isAssignableFrom(CallItem.class)) {
        CallType call = (CallType)
          (eventCache.size() == 0 ? CallType.EMPTY : eventCache.values().toArray()[0]);
        eventPublisher.postUpdate(itemName, call);
      }
      else {
        logger.warn("handleHangupCall - postUpdate for itemType '{}' is undefined", itemName);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.