AutoGRAPH.NET Service GetProperties (EN)
Возвращает свойства по запрошенным ТС.
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.
Свойства ТС в AutoGRAPH.NET: | |