Package org.teleal.cling.model.meta

Examples of org.teleal.cling.model.meta.Service


  public boolean updateTime() {

    if(isConfigured()) {

      Service service = device.findService(new UDAServiceId("AlarmClock"));
      Action action = service.getAction("GetTimeNow");
      ActionInvocation invocation = new ActionInvocation(action);

      executeActionInvocation(invocation);

      return true;
View Full Code Here


  public boolean updateRunningAlarmProperties() {

    if(stateMap != null && isConfigured()) {

      Service service = device.findService(new UDAServiceId("AVTransport"));
      Action action = service.getAction("GetRunningAlarmProperties");
      ActionInvocation invocation = new ActionInvocation(action);

      executeActionInvocation(invocation);

      // for this property we would like to "compile" a more friendly variable.
View Full Code Here

  }

  public boolean updateZoneInfo() {
    if(stateMap != null && isConfigured()) {
      Service service = device.findService(new UDAServiceId("DeviceProperties"));
      Action action = service.getAction("GetZoneInfo");
      ActionInvocation invocation = new ActionInvocation(action);

      executeActionInvocation(invocation);

      Service anotherservice = device.findService(new UDAServiceId("DeviceProperties"));
      Action anotheraction = service.getAction("GetZoneAttributes");
      ActionInvocation anotherinvocation = new ActionInvocation(anotheraction);

      executeActionInvocation(anotherinvocation);
View Full Code Here

  public boolean setLed(String string) {

    if(string != null && isConfigured()) {

      Service service = device.findService(new UDAServiceId("DeviceProperties"));
      Action action = service.getAction("SetLEDState");
      ActionInvocation invocation = new ActionInvocation(action);

      try {
        if(string.equals("ON") || string.equals("OPEN") || string.equals("UP") ) {
          invocation.setInput("DesiredLEDState", "On");             
View Full Code Here

  public boolean updateLed() {

    if(isConfigured()) {

      Service service = device.findService(new UDAServiceId("DeviceProperties"));
      Action action = service.getAction("GetLEDState");
      ActionInvocation invocation = new ActionInvocation(action);

      executeActionInvocation(invocation);

      return true
View Full Code Here

  public boolean updateCurrentZoneName() {

    if(isConfigured()) {

      Service service = device.findService(new UDAServiceId("DeviceProperties"));
      Action action = service.getAction("GetZoneAttributes");
      ActionInvocation invocation = new ActionInvocation(action);

      executeActionInvocation(invocation);

      return true
View Full Code Here

  public boolean updatePosition() {

    if(isConfigured()) {

      Service service = device.findService(new UDAServiceId("AVTransport"));
      Action action = service.getAction("GetPositionInfo");
      ActionInvocation invocation = new ActionInvocation(action);

      executeActionInvocation(invocation);

      return true
View Full Code Here

    return seek("TRACK_NR",Long.toString(tracknr));
  }

  protected boolean seek(String unit, String target) {
    if(isConfigured() && unit != null && target != null) {
      Service service = device.findService(new UDAServiceId("AVTransport"));
      Action action = service.getAction("Seek");
      ActionInvocation invocation = new ActionInvocation(action);

      try {
        invocation.setInput("InstanceID","0");
        invocation.setInput("Unit", unit);
View Full Code Here

  public boolean addURIToQueue(String URI, String meta,int desiredFirstTrack, boolean enqueueAsNext) {

    if(isConfigured() && URI != null && meta != null) {

      Service service = device.findService(new UDAServiceId("AVTransport"));
      Action action = service.getAction("AddURIToQueue");
      ActionInvocation invocation = new ActionInvocation(action);

      try {
        invocation.setInput("InstanceID","0");
        invocation.setInput("EnqueuedURI",URI);
View Full Code Here

  public boolean updateMediaInfo(){

    if(isConfigured()) {

      Service service = device.findService(new UDAServiceId("AVTransport"));
      Action action = service.getAction("GetMediaInfo");
      ActionInvocation invocation = new ActionInvocation(action);

      try {
        invocation.setInput("InstanceID","0");
      } catch (InvalidValueException ex) {
View Full Code Here

TOP

Related Classes of org.teleal.cling.model.meta.Service

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.