Class Floor

java.lang.Object
es.situm.sdk.model.Resource
es.situm.sdk.model.cartography.Floor
All Implemented Interfaces:
android.os.Parcelable, BuildingResource, MapperInterface, Filterable

public class Floor extends Resource implements BuildingResource, android.os.Parcelable, MapperInterface
Floor of a building. Instances are immutable.
  • Field Details

    • CREATOR

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

    • getBuildingIdentifier

      @NonNull public String getBuildingIdentifier()
      Returns the identifier of building which this floor belongs.
      Specified by:
      getBuildingIdentifier in interface BuildingResource
    • getName

      public String getName()
      Return the name of the floor limited to 5 characters. If name is not defined an empty String is returned.
    • getLevel

      @Deprecated public int getLevel()
      Deprecated.
      use getFloor() instead
      Returns the number of the floor.
    • getFloor

      public int getFloor()
      Retrieves the number of the floor
    • getScale

      public double getScale()
      Returns the scale of the floor image, in px/meters
    • getAltitude

      public double getAltitude()
      Returns altitude of the floor above ground level, in meters
      Returns:
      the floor altitude. Default value is 0
    • getMapUrl

      @NonNull public URL getMapUrl()
      Return the floor map image url
    • 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
    • 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
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Resource