ApiData().SetAbsorberData

Sets the arbitrary, application specific string data content for the given Absorber.

Description

This function sets the data content for a particular identified Absorber, modifying the current SILVIA Brain to do so. This arbitrary string data can be fetched programmatically, or can also be served up automatically by the SILVIA Server when a particular Absorber within a Behavior is invoked.

Example Usage (C#)


bool success = _core.ApiData().SetAbsorberData(147, 2, “images/73/54/userImage_423.jpg”);

Parameters

int

id

The integer numeric value or variable representing the unique ID of the Behavior containing the Absorber.

int

absorberId

The integer numeric value or variable representing the indexed ID of the Absorber containing the arbitrary data, separate from the Behavior ID.

string

data

The string value representing the new data to apply to the given Absorber within the given Behavior.

Returns

The boolean success or failure of the operation.

ApiData()