Get equipment serving a space - Metasys - LIT-12013522 - Software Application - Basic Services client library for .NET (and COM) - Metasys API - 4.2

Metasys REST Client for .NET and COM Developer Guide

Brand
Metasys
Product name
Basic Services client library for .NET (and COM)
Metasys API
Document type
API Reference Guide
Document number
LIT-12013522
Version
4.2
Revision date
2021-04-07
Language
English

To get equipment serving a specific space, use the GetSpaceEquipment method to retrieve the points mapped to an equipment instance.

Table 1. Get equipment serving a space .NET signature
Library method name GetSpaceEquipment
Description Get equipment for a specific space.
Method signature IEnumerable<MetasysObject>GetSpaceEquipment(Guid spaceId);
Method input parameters spaceId: GUID of the space object that the method targets and returns the equipment objects.
Return value A collection of MetasysObject that represent equipment in a space.
The following .NET C# code is an example of get space equipment and children call:
IEnumerable<MetasysObject> spaceEquipment = client.GetSpaceEquipment(building.Id);
IEnumerable<MetasysObject> spaceChildren = client.GetSpaceChildren(building.Id);
MetasysObject sampleSpaceEquipment = spaceEquipment.FirstOrDefault();