Examples of execute()


Examples of org.openhab.binding.xbmc.rpc.calls.FilesPrepareDownload.execute()

      return;
   
    final FilesPrepareDownload fanart = new FilesPrepareDownload(client, httpUri);
    fanart.setImagePath(imagePath);
   
    fanart.execute(new Runnable() {
      public void run() {
        String url = String.format("http://%s:%d/%s", xbmc.getHostname(), xbmc.getPort(), fanart.getPath());
        updateProperty(property, url);
      }
    });
View Full Code Here

Examples of org.openhab.binding.xbmc.rpc.calls.GUIShowNotification.execute()

  public void showNotification(String title, String message) {
    final GUIShowNotification showNotification = new GUIShowNotification(client, httpUri);
   
    showNotification.setTitle(title);
    showNotification.setMessage(message);
    showNotification.execute();
  }
 
  public void systemShutdown() {
    final SystemShutdown shutdown = new SystemShutdown(client, httpUri);
    shutdown.execute();
View Full Code Here

Examples of org.openhab.binding.xbmc.rpc.calls.JSONRPCPing.execute()

   * Send a ping to the XBMC host and wait for a 'pong'.
   */
  public void ping() {
    final JSONRPCPing ping = new JSONRPCPing(client, httpUri);
   
    ping.execute(new Runnable() {
      @Override
      public void run() {
        connected = ping.isPong();
      }
    });
View Full Code Here

Examples of org.openhab.binding.xbmc.rpc.calls.PlayerGetActivePlayers.execute()

   *       If updatePolledPropertiesOnly is false, update the Player state itself as well
   */
  public void updatePlayerStatus(final boolean updatePolledPropertiesOnly) {
    final PlayerGetActivePlayers activePlayers = new PlayerGetActivePlayers(client, httpUri);
   
    activePlayers.execute(new Runnable() {
      @Override
      public void run() {
        if (activePlayers.isPlaying()) {
          if (!updatePolledPropertiesOnly) {
            updateState(State.Play);
View Full Code Here

Examples of org.openhab.binding.xbmc.rpc.calls.PlayerGetItem.execute()

      // make the request for the player item details
      final PlayerGetItem item = new PlayerGetItem(client, httpUri);
      item.setPlayerId(playerId);
      item.setProperties(properties);

      item.execute(new Runnable() {
        public void run() {
          // now update each of the openHAB items for each property
          for (String property : properties) {
            String value = item.getPropertyValue(property);     
            if (property.equals("Player.Fanart")) {
View Full Code Here

Examples of org.openhab.binding.xbmc.rpc.calls.PlayerOpen.execute()

  }

  public void playerOpen(String file) {
    final PlayerOpen playeropen = new PlayerOpen(client, httpUri);   
    playeropen.setFile(file);
    playeropen.execute();
  }

  public void applicationSetVolume(String volume) {
    final ApplicationSetVolume applicationsetvolume = new ApplicationSetVolume(client, httpUri);
       
View Full Code Here

Examples of org.openhab.binding.xbmc.rpc.calls.PlayerPlayPause.execute()

   
    activePlayers.execute(new Runnable() {
      public void run() {
        PlayerPlayPause playPause = new PlayerPlayPause(client, httpUri);
        playPause.setPlayerId(activePlayers.getPlayerId());
        playPause.execute();
      }
    });
  }
 
  public void playerStop() {
View Full Code Here

Examples of org.openhab.binding.xbmc.rpc.calls.PlayerStop.execute()

   
    activePlayers.execute(new Runnable() {
      public void run() {
        PlayerStop stop = new PlayerStop(client, httpUri);
        stop.setPlayerId(activePlayers.getPlayerId());
        stop.execute();
      }
    });
  }
 
  public void showNotification(String title, String message) {
View Full Code Here

Examples of org.openhab.binding.xbmc.rpc.calls.SystemHibernate.execute()

    suspend.execute();
  }

  public void systemHibernate() {
    final SystemHibernate hibernate = new SystemHibernate(client, httpUri);
    hibernate.execute();
  }

  public void systemReboot() {
    final SystemReboot reboot = new SystemReboot(client, httpUri);
    reboot.execute();
View Full Code Here

Examples of org.openhab.binding.xbmc.rpc.calls.SystemReboot.execute()

    hibernate.execute();
  }

  public void systemReboot() {
    final SystemReboot reboot = new SystemReboot(client, httpUri);
    reboot.execute();
  }

  public void playerOpen(String file) {
    final PlayerOpen playeropen = new PlayerOpen(client, httpUri);   
    playeropen.setFile(file);
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.