Package org.teleal.cling.model.meta

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


  }

  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

    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);

      try {
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()
      .printZeroAlways()
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);             
        invocation.setInput("ObjectID", queueID);             
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

    @SuppressWarnings("rawtypes")
    @Override
    protected void ended(GENASubscription subscription,
        CancelReason reason, UpnpResponse responseStatus) {
      //rebooting the GENA subscription
      Service service = subscription.getService();     
      SonosSubscriptionCallback callback = new SonosSubscriptionCallback(service,interval);
      upnpService.getControlPoint().execute(callback);

    }
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.