Package org.fourthline.cling.model.types

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

TOP

Related Classes of org.fourthline.cling.model.types.UnsignedIntegerFourBytes

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.