AutoGRAPH.NET Service EnumDrivers (EN)
Версия от 11:31, 2 августа 2015; Admin (обсуждение | вклад) (Новая страница: «Get drivers and driver groups in specified schema (like EnumDevices or[AutoGRAPH.NET Service EnumGeoFences(EN)|EnumGeoFe…»)
Get drivers and driver groups in specified schema (like EnumDevices or[AutoGRAPH.NET Service EnumGeoFences(EN)|EnumGeoFences]]). You can restore hierarchy by matching ID ⇔ ParentID, starting from top level (root node have ParentID=null).
WCF
Definition:
REnumDevices EnumDrivers(string schemaName)
Result:
public class REnumDrivers
{
public RGroupItem[] Groups { get; set; } // driver groups
public RDriverItem[] Items { get; set; } // drivers
}
public class RGroupItem
{
public Guid ID { get; set; } // unique ID of object in schema
public Guid? ParentID { get; set; } // ID of parent group
public string Name { get; set; } // group name
}
public class RDriverItem : RGroupItem
{
public string DriverID { get; set; } // driver ID (iButton or wireless card ID)
public RProperty[] Properties { get; set; } // driver properties (all inherited properties also included)
}
JSON
Calling:
http://localhost:8300/EnumDrivers/Demo
Parameter Demo – schema name from EnumSchemas.