Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section


Column
width35%


Panel
borderColor#CCCCCC
bgColor#FFFFFF
titleBGColor#F0F0F0
borderStylesolid
titleOn the page:
Table of Contents



Column
 


System objects are added, updated, and deleted by the following commands:

...

Below is a message that adds the specified user to the specified department, with the specified parameters:

CORE||CREATE_OBJECT|objtype<PERSON>,objid<12>objid<12341>,parent_id<1>,name<John Doe>,core_global<0>,params<11>,param0_name<facility_code>,param0_val<122>,param1_name<card>,param1_val<1234>,param2_name<pin>,param2_val<>,param3_name<comment>,param3_val<HR Department Head >,param4_name<is_locked>,param4_val<0>,param5_name<is_apb>,param5_val<0>,param6_name<level_id>,param6_val<*>,param7_name<person>,param7_val<>,param8_name<_creator>,param8_val<1>,param9_name<expired>,param9_val<>,param10_name<temp_card>,param10_val<>surname<Tim>,name<Kovac>,card<12362>,facility_code<0>

IIDK will return the following message in response to this command:

CORE||CREATE_OBJECT|card<1234>,objtype<PERSON>,guid_pk<{281A172C-62D2-EA11-A54B-B06EBF811A34}>,facility_code<122>,surname<Tim>,module<iidk_client_test_x64.exe>,time<16:42:53>,parent_id<1>,fraction<797>,date<30-07-20>,name<Kovac>,owner<QA-T49>,slave_id<QA-T49.11>,objid<12341>

This allows receiving the ID of the created object in the objid<> parameter.

Adding and Deleting a Video Capture Card

If an object is not present in the system, add that object with the UPDATE_OBJECT command (the system must not have an object with a type and ID equal to objtype and objid, respectively).

CORE||UPDATE_OBJECT|objtype<GRABBER>,objid<12>,core_global<0>,parent_id<SLAVAXP>,name<Frame grabber 1>,params<5>,param0_name<format>,param0_val<NTSC>,param1_name<mode>,param1_val<1>,param2_name<chan>,param2_val<2>,param3_name<type>,param3_val<FX 4>,param4_name<resolution>,param4_val<0>

Having received the following message, the system changes the name of an existing object:

 CORE CORE||UPDATE_OBJECT|objtype<GRABBER>,objid<12>,core_global<0>,parent_id<SLAVAXP>,name<Card 2>

To delete an object and all of its child objects, use the DELETE_OBJECT command:

CORE||DELETE_OBJECT|objtype<GRABBER>,objid<12>