Class Resource

java.lang.Object
es.situm.sdk.model.Resource
All Implemented Interfaces:
Filterable
Direct Known Subclasses:
Building, Floor, Geofence, OrganizationTheme, Poi, PoiCategory, RemoteCalibration

public abstract class Resource extends Object implements Filterable
Abstract base class with common properties across Resources
  • Field Details

  • Constructor Details

    • Resource

      public Resource(es.situm.sdk.model.Resource.Builder builder)
  • Method Details

    • getIdentifier

      @NonNull public final String getIdentifier()
      Returns the unique identifier of the resource
      Returns:
      String
    • getUpdatedAt

      @NonNull @Deprecated public final Date getUpdatedAt()
      Deprecated.
      This method has been deprecated, do not use it as it may not return the expected information.
      Returns a date containing the time when a resource was last updated.
      Returns:
      Date copy. If there is no value, returns new Date(0).
    • getCreatedAt

      @NonNull @Deprecated public final Date getCreatedAt()
      Deprecated.
      This method has been deprecated, do not use it as it may not return the expected information.
      Returns a date containing the time when a resource was first created.
      Returns:
      Date copy. If there is no value, returns new Date(0).
    • getCustomFields

      @NonNull public final Map<String,String> getCustomFields()
      Returns map of custom fields, indexed by their name.
      Specified by:
      getCustomFields in interface Filterable
      Returns:
      Unmodifiable Map<String, String>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object