Class BuildingInfo

java.lang.Object
es.situm.sdk.model.cartography.BuildingInfo
All Implemented Interfaces:
android.os.Parcelable, MapperInterface

public class BuildingInfo extends Object implements android.os.Parcelable, MapperInterface
A building and its dependencies: floors, POIs and events
  • Field Details

    • CREATOR

      public static final android.os.Parcelable.Creator<BuildingInfo> CREATOR
  • Method Details

    • getBuilding

      @NonNull public final Building getBuilding()
      Returns the building, without dependencies.
    • containsPoint

      public boolean containsPoint(Point point)
    • getEvents

      @NonNull public final Collection<SitumEvent> getEvents()
      Returns registered events in the building.
      Returns:
      Collection of SitumEvent. Can be empty.
    • getFloors

      @NonNull public final Collection<Floor> getFloors()
      Returns existent floors in the building.
      Returns:
      Collection of Floors. Can be empty.
    • getIndoorPOIs

      @NonNull public final Collection<Poi> getIndoorPOIs()
      Returns points of interest inside the building.
      Returns:
      Collection of Poi. Can be empty.
    • getOutdoorPOIs

      @NonNull public final Collection<Poi> getOutdoorPOIs()
      Returns points of interest outside the building
      Returns:
      Collection of SitumEvent. Can be empty.
    • getGeofences

      @NonNull public final Collection<Geofence> getGeofences()
      Returns the building's geofences
      Returns:
      Collection of Geofence. Can be empty.
    • describeContents

      public int describeContents()
      Specified by:
      describeContents in interface android.os.Parcelable
    • writeToParcel

      public void writeToParcel(android.os.Parcel dest, int flags)
      Specified by:
      writeToParcel in interface android.os.Parcelable
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toMap

      public Map<String,Object> toMap()
      Description copied from interface: MapperInterface
      Method to transform object into Map<String, Object>
      Specified by:
      toMap in interface MapperInterface
      Returns:
      Map<String, Object> with the information of the object mapped