Documentation for Intellect 4.10.4. Documentation for other versions of Intellect is available too.

Previous page Next page


On the page:
 

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

  1. CORE||CREATE_OBJECT – creates a new object.
  2. CORE||UPDATE_OBJECT – updates an existing object or creates a new one.
  3. CORE||DELETE_OBJECT – deletes an object.

Adding a User to a Department

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

CORE||CREATE_OBJECT|objtype<PERSON>,objid<12>,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<>

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||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>

  • No labels