Package org.teleal.cling.model.meta

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


  }

  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

  }

  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

  public boolean setCurrentURI(String URI, String URIMetaData ) {
    if(URI != null && URIMetaData != null && isConfigured()) {

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

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

    if(isConfigured()) {

      long startAt = 0;

      Service service = device.findService(new UDAServiceId("ContentDirectory"));
      Action action = service.getAction("Browse");
      ActionInvocation invocation = new ActionInvocation(action);
      try {
        invocation.setInput("ObjectID",type);
        invocation.setInput("BrowseFlag","BrowseDirectChildren");
        invocation.setInput("Filter", filter);
View Full Code Here

TOP

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

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.