AutoGRAPH.NET Service GetProperties (EN)

Материал из TK
Перейти к: навигация, поиск

Returns user properties for specified devices

WCF

Definition:

Dictionary<Guid, RProperties> GetProperties(string schemaID, Guid[] deviceIDs)
  • schemaID – ID of schema
  • deviceIDs – device ID list (from EnumDevices – ID field in RGroupItem class)

Result:

public class RProperties
{
   public Guid ID { get; set; }                               // device ID
   public string Name { get; set; }                           // device name
   public Dictionary<string, object> Properties { get; set; } // device properties as key:value
   public Dictionary<string, RPropType> PropertyTypes { get; set; } // property types as key:propertytype
}

Properties.Values can be contain different values - string, datetime, int, ... - depend from property type

JSON

Calling:

http://localhost:8300/GetProperties/Demo/25f86189-adc9-445d-940c-abf860874622
http://localhost:8300/GetProperties/Demo/25f86189-adc9-445d-940c-abf860874622,d090286c-1fd6-4ef2-ae44-8091d04408d1

If you want pass many device IDs you must pass this ID's as comma-separated.

AutoGRAPHNET_Service_GetProperties.png

Свойства ТС в AutoGRAPH.NET:

AutoGRAPHNET_Service_GetPropertiesAG.png