Class Floor

    • Field Detail

      • CREATOR

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

      • getBuildingIdentifier

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

        public java.lang.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 java.util.Map<java.lang.String,​java.lang.Object> toMap()
        Description copied from interface: MapperInterface
        Method to transform object into Map
        Specified by:
        toMap in interface MapperInterface
        Returns:
        Map 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​(java.lang.Object o)
        Overrides:
        equals in class Resource
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Resource