Difference between revisions of "Truxton investigation create"
Jump to navigation
Jump to search
(Created page with "This creates an investigation in Truxton. An investigation is a collection of media and the actions of analysts in that investigation. =Syntax= <source lang="C"> uint64_t tru...") |
|||
| Line 1: | Line 1: | ||
This creates an investigation in Truxton. | This creates an investigation in Truxton. | ||
An investigation is a collection of media and the actions of analysts in that investigation. | An investigation is a collection of media and the actions of analysts in that investigation. | ||
| + | This object corresponds to the <code>[Investigation]</code> table. | ||
=Syntax= | =Syntax= | ||
| Line 23: | Line 24: | ||
uint64_t investigation = truxton_investigation_create( truxton ); | uint64_t investigation = truxton_investigation_create( truxton ); | ||
| + | truxton_investigation_set_id( investigation, "466C796E-6E27-7320-696E-6E6F63656E74" ); | ||
truxton_investigation_set_name( investigation, "Collusion" ); | truxton_investigation_set_name( investigation, "Collusion" ); | ||
truxton_investigation_set_description( investigation, "United States vs. Michael Flynn" ); | truxton_investigation_set_description( investigation, "United States vs. Michael Flynn" ); | ||
| − | + | truxton_investigation_set_case_number( investigation, "DC-SNAFU-2016.2020" ); | |
truxton_investigation_set_jurisdiction( investigation, WASHINGTON_DC ); | truxton_investigation_set_jurisdiction( investigation, WASHINGTON_DC ); | ||
truxton_investigation_set_status( investigation, INVESTIGATION_STATUS_OPEN ); | truxton_investigation_set_status( investigation, INVESTIGATION_STATUS_OPEN ); | ||
| Line 32: | Line 34: | ||
if ( truxton_investigation_save( investigation ) == 0 ) | if ( truxton_investigation_save( investigation ) == 0 ) | ||
{ | { | ||
| − | printf("Cannot save | + | printf("Cannot save investigation to the database.\n"); |
} | } | ||
Latest revision as of 06:11, 16 February 2021
This creates an investigation in Truxton.
An investigation is a collection of media and the actions of analysts in that investigation.
This object corresponds to the [Investigation] table.
Syntax
uint64_t truxton_investigation_create( uint64_t truxton_handle );
Parameters
truxton_handle
The Truxton instance this investigation will belong.
This handle comes from calling truxton_create().
Return value
A handle to an investigation object.
Sample
void create_investigation( void )
{
uint64_t truxton = truxton_create();
uint64_t investigation = truxton_investigation_create( truxton );
truxton_investigation_set_id( investigation, "466C796E-6E27-7320-696E-6E6F63656E74" );
truxton_investigation_set_name( investigation, "Collusion" );
truxton_investigation_set_description( investigation, "United States vs. Michael Flynn" );
truxton_investigation_set_case_number( investigation, "DC-SNAFU-2016.2020" );
truxton_investigation_set_jurisdiction( investigation, WASHINGTON_DC );
truxton_investigation_set_status( investigation, INVESTIGATION_STATUS_OPEN );
truxton_investigation_set_type( investigation, INVESTIGATION_TYPE_FRAUD );
if ( truxton_investigation_save( investigation ) == 0 )
{
printf("Cannot save investigation to the database.\n");
}
truxton_investigation_destroy( investigation );
truxton_destroy( truxton );
}