Package org.teleal.cling.model.types

Examples of org.teleal.cling.model.types.UDAServiceId


    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");
View Full Code Here


    List<SonosAlarm> sonosAlarms = null;

    if(isConfigured()) {

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

      executeActionInvocation(invocation);
View Full Code Here

    return sonosAlarms;
  }

  public boolean updateAlarm(SonosAlarm alarm) {
    if(alarm != null && isConfigured()) {
      Service service = device.findService(new UDAServiceId("AlarmClock"));
      Action action = service.getAction("ListAlarms");
      ActionInvocation invocation = new ActionInvocation(action);


      DateTimeFormatter formatter = DateTimeFormat.forPattern("HH:mm:ss");
View Full Code Here

  }

  public boolean snoozeAlarm(int minutes){
    if(isAlarmRunning() && isConfigured()) {

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

      Period snoozePeriod = Period.minutes(minutes);
      PeriodFormatter pFormatter= new PeriodFormatterBuilder()
View Full Code Here

  public boolean saveQueue(String name, String queueID) {

    if(name != null && queueID != null && isConfigured()) {

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

      try {
        invocation.setInput("Title", name);             
View Full Code Here

    if (!isConfigured) {
      return false;
    }

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

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

                RemoteDevice theDevice = thePlayer.getDevice();

                // Only set up a polling job if the device supports the given SonosCommandType
                // Not all Sonos devices have the same capabilities
                iftheDevice!=null) {
                  if(theDevice.findService(new UDAServiceId(sonosCommandType.getService())) != null){     

                    boolean jobExists = false;

                    // enumerate each job group
                    try {
View Full Code Here

TOP

Related Classes of org.teleal.cling.model.types.UDAServiceId

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.