Examples of UnsignedIntegerFourBytes


Examples of org.fourthline.cling.model.types.UnsignedIntegerFourBytes

        // Get the current "logical" instances of the service
        UnsignedIntegerFourBytes[] ids = getImplementation().getCurrentInstanceIds();
        if (ids == null) {
          log.warning("LenientChangeAwareService got a null ID from "
              + getImplementation().getClass().getCanonicalName());
            getImplementation().appendCurrentState(lc, new UnsignedIntegerFourBytes(0));
        } else {
          if (ids.length > 0) {
              for (UnsignedIntegerFourBytes instanceId : ids) {
                  // Iterate through all "logical" instances and ask them what their state is
                  getImplementation().appendCurrentState(lc, instanceId);
              }
          } else {
              // Use the default "logical" instance with ID 0
              getImplementation().appendCurrentState(lc, new UnsignedIntegerFourBytes(0));
          }
        }

        // Sum it all up and return it in the initial event to the GENA subscriber
        StateVariable variable = getService().getStateVariable("LastChange");
View Full Code Here

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

      try {
        invocation.setInput("InstanceID","0");
        invocation.setInput("EnqueuedURI",URI);
        invocation.setInput("EnqueuedURIMetaData",meta);
        invocation.setInput("DesiredFirstTrackNumberEnqueued",new UnsignedIntegerFourBytes(desiredFirstTrack));
        invocation.setInput("EnqueueAsNext",enqueueAsNext);

      } catch (InvalidValueException ex) {
        logger.error("Action Invalid Value Exception {}",ex.getMessage());
      } catch (NumberFormatException ex) {
View Full Code Here

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

      ActionInvocation invocation = new ActionInvocation(action);
      try {
        invocation.setInput("ObjectID",type);
        invocation.setInput("BrowseFlag","BrowseDirectChildren");
        invocation.setInput("Filter", filter);
        invocation.setInput("StartingIndex",new UnsignedIntegerFourBytes(startAt));
        invocation.setInput("RequestedCount",new UnsignedIntegerFourBytes( 200));
        invocation.setInput("SortCriteria","");
      } catch (InvalidValueException ex) {
        logger.error("Action Invalid Value Exception {}",ex.getMessage());
      } catch (NumberFormatException ex) {
        logger.error("Action Invalid Value Format Exception {}",ex.getMessage())
      }
      // Execute this action synchronously
      new ActionCallback.Default(invocation, upnpService.getControlPoint()).run();

      Long totalMatches  = ((UnsignedIntegerFourBytes) invocation.getOutput("TotalMatches").getValue()).getValue();
      Long initialNumberReturned  = ((UnsignedIntegerFourBytes) invocation.getOutput("NumberReturned").getValue()).getValue();
      String initialResult = (String) invocation.getOutput("Result").getValue();

      try {
        resultList = SonosXMLParser.getEntriesFromString(initialResult);
      } catch (SAXException e) {
        logger.error("Could not parse Entries from String {}",initialResult);
      }

      startAt = startAt + initialNumberReturned;

      while(startAt<totalMatches){
        invocation = new ActionInvocation(action);
        try {
          invocation.setInput("ObjectID",type);
          invocation.setInput("BrowseFlag","BrowseDirectChildren");
          invocation.setInput("Filter", filter);
          invocation.setInput("StartingIndex",new UnsignedIntegerFourBytes(startAt));
          invocation.setInput("RequestedCount",new UnsignedIntegerFourBytes( 200));
          invocation.setInput("SortCriteria","");
        } catch (InvalidValueException ex) {
          logger.error("Action Invalid Value Exception {}",ex.getMessage());
        } catch (NumberFormatException ex) {
          logger.error("Action Invalid Value Format Exception {}",ex.getMessage())
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.