AutoGRAPH.NET Service GetProperties (EN) — различия между версиями

Материал из TK
Перейти к: навигация, поиск
(Новая страница: «Возвращает свойства по запрошенным ТС. == WCF == Definition: <pre>Dictionary<Guid, RProperties> GetProperties(string schemaID,…»)
 
(WCF)
Строка 19: Строка 19:
 
}
 
}
 
</pre>
 
</pre>
<br/><span style="font-size:smaller;">Properties.Values can be contain different values - string, datetime, int, ... - depend from property type</span>
+
Properties.Values can be contain different values - string, datetime, int, ... - depend from property type
   
 
== JSON ==
 
== JSON ==

Версия 13:57, 11 февраля 2016

Возвращает свойства по запрошенным ТС.

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