Class ResourceAdvert

  • All Implemented Interfaces:
    java.lang.Iterable<buzz.getcoco.iot.Capability>

    public class ResourceAdvert
    extends buzz.getcoco.iot.Resource
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ResourceAdvert.Status  
    • Constructor Summary

      Constructors 
      Constructor Description
      ResourceAdvert​(java.lang.String eui, buzz.getcoco.iot.Device parentDevice)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      androidx.lifecycle.LiveData<java.lang.Long> getExpiryObservable()  
      ResourceAdvert.Status getStatus()  
      long millisToExpiry()  
      void resetTimers()  
      java.lang.String toString()  
      • Methods inherited from class buzz.getcoco.iot.Resource

        containsCapability, getAttribute, getCapability, getCapabilityMap, getFirmware, getId, getManufacturer, getMetadata, getModel, getName, getParent, getParentZone, getPowerSource, getProtocol, getReceiverType, hashCode, internalAddCapability, internalMarkAsReady, internalRemoveCapability, internalRemoveResource, internalSetFirmware, internalSetManufacturer, internalSetMetadata, internalSetModel, internalSetName, internalSetParentDevice, internalSetParentZone, internalSetPowerSource, internalSetProtocol, internalSetReceiverType, isReady, iterator, setMetadata, setName
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • ResourceAdvert

        public ResourceAdvert​(java.lang.String eui,
                              buzz.getcoco.iot.Device parentDevice)
    • Method Detail

      • millisToExpiry

        public long millisToExpiry()
      • resetTimers

        public void resetTimers()
      • getExpiryObservable

        @MainThread
        public androidx.lifecycle.LiveData<java.lang.Long> getExpiryObservable()
      • toString

        @NonNull
        public java.lang.String toString()
        Overrides:
        toString in class buzz.getcoco.iot.Resource