Get equipment points - 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 (United States)

To get all points for a specific equipment, use the GetEquipmentPoints method.

Table 1. Get equipment points .NET signature
Library method name GetEquipmentPoints
Description GET points for a specific equipment
Method signature IEnumerable<Point> GetEquipmentPoints(Guid equipmentId);
Method input parameters equipmentId: GUID of the equipment object that the method targets and retrieves the point objects.
Return value A collection of Point objects.
The following .NET C# code is an example of a successful get equipment points response.
IEnumerable<Point> equipmentPoints = client.GetEquipmentPoints(sampleEquipment.Id);
Point point = equipmentPoints.FirstOrDefault();
string presentValue = point.PresentValue?.StringValue;
Console.WriteLine(point);
/*                       
  {
    "EquipmentName": "AHU-07",
    "ShortName": "CLG-O",
    "Label": "Cooling Output",
    "Category": "",
    "IsDisplayData": true,
    "ObjectId": "9dd107cf-e8dc-583a-9557-813395ae1971",
    "AttributeUrl": "https://win2016-vm2/api/v2/enumSets/509/members/85",
    "ObjectUrl": "https://win2016-vm2/api/v2/objects/9dd107cf-e8dc-583a-9557-813395ae1971",
    "PresentValue": 
    {
      "StringValue": "0",
      "StringValueEnumerationKey": null,
      "NumericValue": 0.0,
      "BooleanValue": false,
      "ArrayValue": null,
      "Attribute": "presentValue",
      "Id": "9dd107cf-e8dc-583a-9557-813395ae1971",
      "Reliability": "Reliable",
      "ReliabilityEnumerationKey": "reliabilityEnumSet.reliable",
      "Priority": "0 (No Priority)",
      "PriorityEnumerationKey": "writePriorityEnumSet.priorityNone",
      "IsReliable": true
    }
  }
*/