Difference between revisions of "Truxton message participant get combined id"
Jump to navigation
Jump to search
(Created page with "This retrieves the combined identifier for the message participant. The "combined id" is an integer value derived from normalized account and server. It allows you to easily q...") |
|||
| Line 37: | Line 37: | ||
truxton_message_participant_get_media_id( participant_handle, string_value, sizeof(string_value) ); | truxton_message_participant_get_media_id( participant_handle, string_value, sizeof(string_value) ); | ||
printf( "Media ID: %s\n", string_value ); | printf( "Media ID: %s\n", string_value ); | ||
| − | |||
| − | |||
| − | |||
truxton_message_participant_get_message_address_id( participant_handle, string_value, sizeof(string_value) ); | truxton_message_participant_get_message_address_id( participant_handle, string_value, sizeof(string_value) ); | ||
Revision as of 06:41, 19 February 2026
This retrieves the combined identifier for the message participant. The "combined id" is an integer value derived from normalized account and server. It allows you to easily query the database for messages associated with an address in the form of "abc@xyz.com"
Syntax
uint64_t truxton_message_participant_get_combined_id( uint64_t participant_handle );
Parameters
participant_handle
This handle comes from calling truxton_message_participant_create().
Sample
void dump(uint64_t participant_handle)
{
char string_value[512];
uint64_t integer = 0;
truxton_message_participant_get_id( participant_handle, string_value, sizeof(string_value) );
printf( "ID: %s\n", string_value );
integer_value = truxton_message_participant_get_combined_id( participant_handle );
printf( "Combined ID: %" PRIu64 "\n", integer_value );
truxton_message_participant_get_combined_guid( participant_handle, string_value, sizeof(string_value) );
printf( "Combined GUID: %s\n", string_value );
truxton_message_participant_get_account( participant_handle, string_value, sizeof(string_value) );
printf( "Account: %s\n", string_value );
truxton_message_participant_get_file_id( participant_handle, string_value, sizeof(string_value) );
printf( "File ID: %s\n", string_value );
truxton_message_participant_get_media_id( participant_handle, string_value, sizeof(string_value) );
printf( "Media ID: %s\n", string_value );
truxton_message_participant_get_message_address_id( participant_handle, string_value, sizeof(string_value) );
printf( "Message Address ID: %s\n", string_value );
truxton_message_participant_get_message_id( participant_handle, string_value, sizeof(string_value) );
printf( "Message ID: %s\n", string_value );
truxton_message_participant_get_server( participant_handle, string_value, sizeof(string_value) );
printf( "Server: %s\n", string_value );
truxton_message_participant_get_name( participant_handle, string_value, sizeof(string_value) );
printf( "Name: %s\n", string_value );
integer_value = truxton_message_participant_get_type( participant_handle );
printf( "Type: %" PRIu64 "\n", integer_value );
}