Package org.openhab.binding.tivo

Examples of org.openhab.binding.tivo.TivoBindingProvider


  /**
   * @{inheritDoc}
   */
  @Override
  protected void internalReceiveCommand(String itemName, Command command) {
    final TivoBindingProvider bindingProvider = findFirstMatchingBindingProvider(itemName, command);
    final String tivoCommand = bindingProvider.getTivoCommand(itemName);
   
    if (host != null && ! host.isEmpty()) {
      new TivoRemote(host).sendCommand(tivoCommand);
      logger.debug("Sent '" + tivoCommand + "' to Tivo");
    } else {
View Full Code Here


   *
   * @return the matching binding provider or <code>null</code> if no binding
   * provider could be found
   */
  private TivoBindingProvider findFirstMatchingBindingProvider(String itemName, Command command) {
    TivoBindingProvider firstMatchingProvider = null;
   
    for (TivoBindingProvider provider : this.providers) {
      boolean match = provider.providesBindingFor(itemName);
      if (match) {
        firstMatchingProvider = provider;
View Full Code Here

TOP

Related Classes of org.openhab.binding.tivo.TivoBindingProvider

Copyright © 2018 www.massapicom. 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.