Skip to main content

GetOccupancyFloors

Overview​

Gets a list of all Floors occupied by an Occupancy

Request Information​


Method​

GET - api/Occupancy/GetOccupancyFloors/{OccupancyId}

URI Parameters​

None.

NameDescriptionTypeAdditional information
OccupancyIdglobally unique identifierRequired

Body Parameters​

None.

Response Information​


Resource Description​

Collection of OccupancyFloorViewModel

NameDescriptionTypeAdditional information
OccupantFloorIdRepresents the PK of the Occupancy Floor combinationglobally unique identifierNone.
OccupantIdRepresents the PK of the Occupancyglobally unique identifierNone.
OccupancyNameRepresents the name of the OccupancystringNone.
FloorIdRepresents the PK of the Floorglobally unique identifierNone.
FloorNameRepresents the name of the FloorstringNone.
DeletedRepresents whether the Occupancy / Floor combination is deleted or not.booleanNone.
FloorUseFlagsMaskRepresents a bitmask of how the floor is used by the Occupancy. 1 = Reception, 2 = Mail/Deliver, 4 = Office Space, 8 = Retail, 16 = Residential, 32 = Commercial/IndustrialintegerNone.
FloorUsesRepresents a concatenation of the descriptions for the bitmasks set by FloorUseFlagsMask. Example "Reception, Office Space"integerNone.
IsDefaultMailFloorRepresents whether the Occupancy / Floor combination is used as the default Mail Floor (assuming FloorUseFlagsMask contains bitmask value of 2)booleanNone.
IsDefaultReceptionFloorRepresents whether the Occupancy / Floor combination is used as the default Reception Floor (assuming FloorUseFlagsMask contains bitmask value of 1)booleanNone.
IsDefaultOccupantFloorRepresents whether the Occupancy / Floor combination is used as the default Occupancy Floor (assuming FloorUseFlagsMask contains bitmask value of 4). This is used to determine default floors of new employees amongst other things.booleanNone.

Response Formats​

JSON​

\\\\[ { "OccupantFloorId": "d30a4eaf-b268-44b6-9de5-9310d6298ecb", "OccupantId": "0e86e7a3-b9e9-46d2-b9de-8e1b427d6e33", "OccupancyName": "sample string 3", "FloorId": "8f8b298b-c71d-4e9b-8577-3825bbb24b89", "FloorName": "sample string 5", "Deleted": true, "FloorUseFlagsMask": 7, "FloorUses": 8, "IsDefaultMailFloor": true, "IsDefaultReceptionFloor": true, "IsDefaultOccupantFloor": true }, { "OccupantFloorId": "d30a4eaf-b268-44b6-9de5-9310d6298ecb", "OccupantId": "0e86e7a3-b9e9-46d2-b9de-8e1b427d6e33", "OccupancyName": "sample string 3", "FloorId": "8f8b298b-c71d-4e9b-8577-3825bbb24b89", "FloorName": "sample string 5", "Deleted": true, "FloorUseFlagsMask": 7, "FloorUses": 8, "IsDefaultMailFloor": true, "IsDefaultReceptionFloor": true, "IsDefaultOccupantFloor": true } ]

XML​

<ArrayOfOccupancyFloorViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BluSKYWebAPI.Controllers">
<OccupancyFloorViewModel>
<Deleted>true</Deleted>
<FloorId>8f8b298b-c71d-4e9b-8577-3825bbb24b89</FloorId>
<FloorName>sample string 5</FloorName>
<FloorUseFlagsMask>7</FloorUseFlagsMask>
<FloorUses>8</FloorUses>
<IsDefaultMailFloor>true</IsDefaultMailFloor>
<IsDefaultOccupantFloor>true</IsDefaultOccupantFloor>
<IsDefaultReceptionFloor>true</IsDefaultReceptionFloor>
<OccupancyName>sample string 3</OccupancyName>
<OccupantFloorId>d30a4eaf-b268-44b6-9de5-9310d6298ecb</OccupantFloorId>
<OccupantId>0e86e7a3-b9e9-46d2-b9de-8e1b427d6e33</OccupantId>
</OccupancyFloorViewModel>
<OccupancyFloorViewModel>
<Deleted>true</Deleted>
<FloorId>8f8b298b-c71d-4e9b-8577-3825bbb24b89</FloorId>
<FloorName>sample string 5</FloorName>
<FloorUseFlagsMask>7</FloorUseFlagsMask>
<FloorUses>8</FloorUses>
<IsDefaultMailFloor>true</IsDefaultMailFloor>
<IsDefaultOccupantFloor>true</IsDefaultOccupantFloor>
<IsDefaultReceptionFloor>true</IsDefaultReceptionFloor>
<OccupancyName>sample string 3</OccupancyName>
<OccupantFloorId>d30a4eaf-b268-44b6-9de5-9310d6298ecb</OccupantFloorId>
<OccupantId>0e86e7a3-b9e9-46d2-b9de-8e1b427d6e33</OccupantId>
</OccupancyFloorViewModel>
</ArrayOfOccupancyFloorViewModel>