Class Occupancy

    • Field Detail

      • type

        @JsonPropertyDescription("For rooms with multiple layouts, this can be used. For example, a gymnasium can be used for a seminar or a conference, with different maximum occupancies. For rooms with single occupancy type, \"Default\" can be used.")
        private Occupancy.Type type
        Room Layout

        For rooms with multiple layouts, this can be used. For example, a gymnasium can be used for a seminar or a conference, with different maximum occupancies. For rooms with single occupancy type, "Default" can be used. (Required)

      • maxOccupancy

        @JsonPropertyDescription("The maximum number of persons who may occupy a room arranged in a given layout.")
        private Double maxOccupancy
        Maximum Occupancy

        The maximum number of persons who may occupy a room arranged in a given layout. (Required)

    • Constructor Detail

      • Occupancy

        public Occupancy()
    • Method Detail

      • getType

        public Occupancy.Type getType()
        Room Layout

        For rooms with multiple layouts, this can be used. For example, a gymnasium can be used for a seminar or a conference, with different maximum occupancies. For rooms with single occupancy type, "Default" can be used. (Required)

      • setType

        public void setType​(Occupancy.Type type)
        Room Layout

        For rooms with multiple layouts, this can be used. For example, a gymnasium can be used for a seminar or a conference, with different maximum occupancies. For rooms with single occupancy type, "Default" can be used. (Required)

      • getMaxOccupancy

        public Double getMaxOccupancy()
        Maximum Occupancy

        The maximum number of persons who may occupy a room arranged in a given layout. (Required)

      • setMaxOccupancy

        public void setMaxOccupancy​(Double maxOccupancy)
        Maximum Occupancy

        The maximum number of persons who may occupy a room arranged in a given layout. (Required)

      • withMaxOccupancy

        public Occupancy withMaxOccupancy​(Double maxOccupancy)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object