GET api/v1/Occupancies/{id}/Floors
Gets a list of all Floors occupied by an Occupancy
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of OccupancyFloorViewModelName | Description | Type | Additional information |
---|---|---|---|
OccupancyFloorId |
Represents the PK of the Occupancy Floor combination |
globally unique identifier |
None. |
OccupancyId |
Represents the PK of the Occupancy |
globally unique identifier |
None. |
OccupancyName |
Represents the name of the Occupancy |
string |
None. |
FloorId |
Represents the PK of the Floor |
globally unique identifier |
None. |
FloorName |
Represents the name of the Floor |
string |
None. |
Deleted |
Represents whether the Occupancy / Floor combination is deleted or not. |
boolean |
None. |
FloorUseFlagsMask |
Represents 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/Industrial |
integer |
None. |
FloorUses |
Represents a concatenation of the descriptions for the bitmasks set by FloorUseFlagsMask. Example "Reception, Office Space" |
string |
None. |
IsDefaultMailFloor |
Represents whether the Occupancy / Floor combination is used as the default Mail Floor (assuming FloorUseFlagsMask contains bitmask value of 2) |
boolean |
None. |
IsDefaultReceptionFloor |
Represents whether the Occupancy / Floor combination is used as the default Reception Floor (assuming FloorUseFlagsMask contains bitmask value of 1) |
boolean |
None. |
IsDefaultOccupantFloor |
Represents 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. |
boolean |
None. |
Response Formats
application/json, text/json
[ { "OccupancyFloorId": "6651bae6-a64b-4f6c-9725-f1b9d94c9b54", "OccupancyId": "a4250018-f5f0-406d-b6d2-0548e43c524c", "OccupancyName": "sample string 3", "FloorId": "fc891b0e-f8ba-49f1-9952-3003aa09295c", "FloorName": "sample string 5", "Deleted": true, "FloorUseFlagsMask": 7, "FloorUses": "sample string 8", "IsDefaultMailFloor": true, "IsDefaultReceptionFloor": true, "IsDefaultOccupantFloor": true }, { "OccupancyFloorId": "6651bae6-a64b-4f6c-9725-f1b9d94c9b54", "OccupancyId": "a4250018-f5f0-406d-b6d2-0548e43c524c", "OccupancyName": "sample string 3", "FloorId": "fc891b0e-f8ba-49f1-9952-3003aa09295c", "FloorName": "sample string 5", "Deleted": true, "FloorUseFlagsMask": 7, "FloorUses": "sample string 8", "IsDefaultMailFloor": true, "IsDefaultReceptionFloor": true, "IsDefaultOccupantFloor": true } ]
application/xml, text/xml
<ArrayOfOccupancyFloorViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIWebRole.Controllers"> <OccupancyFloorViewModel> <Deleted>true</Deleted> <FloorId>fc891b0e-f8ba-49f1-9952-3003aa09295c</FloorId> <FloorName>sample string 5</FloorName> <FloorUseFlagsMask>7</FloorUseFlagsMask> <FloorUses>sample string 8</FloorUses> <IsDefaultMailFloor>true</IsDefaultMailFloor> <IsDefaultOccupantFloor>true</IsDefaultOccupantFloor> <IsDefaultReceptionFloor>true</IsDefaultReceptionFloor> <OccupancyFloorId>6651bae6-a64b-4f6c-9725-f1b9d94c9b54</OccupancyFloorId> <OccupancyId>a4250018-f5f0-406d-b6d2-0548e43c524c</OccupancyId> <OccupancyName>sample string 3</OccupancyName> </OccupancyFloorViewModel> <OccupancyFloorViewModel> <Deleted>true</Deleted> <FloorId>fc891b0e-f8ba-49f1-9952-3003aa09295c</FloorId> <FloorName>sample string 5</FloorName> <FloorUseFlagsMask>7</FloorUseFlagsMask> <FloorUses>sample string 8</FloorUses> <IsDefaultMailFloor>true</IsDefaultMailFloor> <IsDefaultOccupantFloor>true</IsDefaultOccupantFloor> <IsDefaultReceptionFloor>true</IsDefaultReceptionFloor> <OccupancyFloorId>6651bae6-a64b-4f6c-9725-f1b9d94c9b54</OccupancyFloorId> <OccupancyId>a4250018-f5f0-406d-b6d2-0548e43c524c</OccupancyId> <OccupancyName>sample string 3</OccupancyName> </OccupancyFloorViewModel> </ArrayOfOccupancyFloorViewModel>