TIM SDK
TIM API C
show_dialog_request.h File Reference

Description

Show dialog request.

Object type show_dialog_request.

Functions

ta_e_result_code_t ta_show_dialog_request_create (ta_object_t *request)
 Create show dialog request. More...
 
ta_e_result_code_t ta_show_dialog_request_copy (ta_object_t *request, const ta_object_t *source_request)
 Create deep copy of object instance of type show_dialog_request. More...
 
ta_e_result_code_t ta_show_dialog_request_get_brand_bar (ta_object_t request, ta_object_t *brand_bar)
 Brand bar. More...
 
ta_e_result_code_t ta_show_dialog_request_set_brand_bar (ta_object_t request, ta_object_t brand_bar)
 Set brand bar. More...
 
ta_e_result_code_t ta_show_dialog_request_get_brand_mode (ta_object_t request, ta_e_brand_mode_t *brand_mode)
 Brand mode. More...
 
ta_e_result_code_t ta_show_dialog_request_set_brand_mode (ta_object_t request, ta_e_brand_mode_t brand_mode)
 Set brand mode. More...
 
ta_e_result_code_t ta_show_dialog_request_get_resource_id (ta_object_t request, ta_e_resource_id_t *resource_id)
 Resource identifier. More...
 
ta_e_result_code_t ta_show_dialog_request_set_resource_id (ta_object_t request, ta_e_resource_id_t resource_id)
 Set resource identifier. More...
 
ta_e_result_code_t ta_show_dialog_request_get_theme (ta_object_t request, ta_e_theme_t *theme)
 Theme. More...
 
ta_e_result_code_t ta_show_dialog_request_set_theme (ta_object_t request, ta_e_theme_t resource_id)
 Set theme. More...
 
ta_e_result_code_t ta_show_dialog_request_get_timeout (ta_object_t request, int *timeout)
 Timeout in seconds. More...
 
ta_e_result_code_t ta_show_dialog_request_set_timeout (ta_object_t request, int timeout)
 Set timeout in seconds. More...
 
ta_e_result_code_t ta_show_dialog_request_get_language (ta_object_t request, ta_object_t *language)
 Language. More...
 
ta_e_result_code_t ta_show_dialog_request_set_language (ta_object_t request, ta_object_t language)
 Set language. More...
 
ta_e_result_code_t ta_show_dialog_request_get_placeholder_items (ta_object_t request, ta_object_t *placeholder_items)
 Map of placeholder items. More...
 
ta_e_result_code_t ta_show_dialog_request_set_placeholder_items (ta_object_t request, ta_object_t placeholder_items)
 Set map of placeholder items. More...
 
ta_e_result_code_t ta_show_dialog_request_resource_get_parameters (ta_object_t request, ta_object_t *parameters)
 Map of resource parameters. More...
 
ta_e_result_code_t ta_show_dialog_request_set_resource_parameters (ta_object_t request, ta_object_t parameters)
 Set map of resource parameters. More...
 

Function Documentation

◆ ta_show_dialog_request_copy()

ta_e_result_code_t ta_show_dialog_request_copy ( ta_object_t request,
const ta_object_t source_request 
)

Create deep copy of object instance of type show_dialog_request.

Parameters
[out]requestPointer to variable to write created object instance to. Created object instance is retained.
[in]source_requestObject of type show_dialog_request to create copy of.
Return values
ta_c_rc_okObject instance has been created and written to request.
ta_c_rc_invalid_argumentrequest is null-pointer.
ta_c_rc_invalid_argumentsource_request is ta_object_invalid.
ta_c_rc_invalid_argumentsource_request is not of type show_dialog_request.
ta_c_rc_out_of_memoryFailed allocating memory.

◆ ta_show_dialog_request_create()

ta_e_result_code_t ta_show_dialog_request_create ( ta_object_t request)

Create show dialog request.

Parameters
[out]requestPointer to variable to write created object instance to. Created object instance is retained.
Return values
ta_c_rc_okObject instance has been created and written to request.
ta_c_rc_invalid_argumentrequest is null-pointer.
ta_c_rc_out_of_memoryFailed allocating memory.

◆ ta_show_dialog_request_get_brand_bar()

ta_e_result_code_t ta_show_dialog_request_get_brand_bar ( ta_object_t  request,
ta_object_t brand_bar 
)

Brand bar.

Used if brand mode is ta_c_bm_selected.

Parameters
[in]requestObject instance of type show_dialog_request.
[out]brand_barPointer to variable to write object instance to. Object instance is of type list and is not retained. The list contains elements of type integer. The value of the elements comes from ta_e_brand_bar_brand_t.
Return values
ta_c_rc_okObject instance written to brand_bar.
ta_c_rc_invalid_argumentrequest is ta_object_invalid.
ta_c_rc_invalid_argumentrequest is not of type show_dialog_request.
ta_c_rc_invalid_argumentbrand_bar is null-pointer.

◆ ta_show_dialog_request_get_brand_mode()

ta_e_result_code_t ta_show_dialog_request_get_brand_mode ( ta_object_t  request,
ta_e_brand_mode_t brand_mode 
)

Brand mode.

Parameters
[in]requestObject instance of type show_dialog_request.
[out]brand_modePointer to variable to write value to. Value is ta_c_bm_undefined if value is not set in request.
Return values
ta_c_rc_okValue written to brand_mode.
ta_c_rc_invalid_argumentrequest is ta_object_invalid.
ta_c_rc_invalid_argumentrequest is not of type show_dialog_request.
ta_c_rc_invalid_argumentbrand_mode is null-pointer.

◆ ta_show_dialog_request_get_language()

ta_e_result_code_t ta_show_dialog_request_get_language ( ta_object_t  request,
ta_object_t language 
)

Language.

Parameters
[in]requestObject instance of type show_dialog_request.
[out]languagePointer to variable to write object instance to. Object instance is of type string and is not retained. Object instance is ta_object_invalid if value is not set in request.
Return values
ta_c_rc_okObject instance written to language.
ta_c_rc_invalid_argumentrequest is ta_object_invalid.
ta_c_rc_invalid_argumentrequest is not of type show_dialog_request.
ta_c_rc_invalid_argumentlanguage is null-pointer.

◆ ta_show_dialog_request_get_placeholder_items()

ta_e_result_code_t ta_show_dialog_request_get_placeholder_items ( ta_object_t  request,
ta_object_t placeholder_items 
)

Map of placeholder items.

Parameters
[in]requestObject instance of type show_dialog_request.
[out]placeholder_itemsPointer to variable to write object instance to. Object instance is of type map and is not retained. The map contains keys of type integer and values of type string.
Return values
ta_c_rc_okObject instance written to placeholder_items.
ta_c_rc_invalid_argumentrequest is ta_object_invalid.
ta_c_rc_invalid_argumentrequest is not of type show_dialog_request.
ta_c_rc_invalid_argumentplaceholder_items is null-pointer.

◆ ta_show_dialog_request_get_resource_id()

ta_e_result_code_t ta_show_dialog_request_get_resource_id ( ta_object_t  request,
ta_e_resource_id_t resource_id 
)

Resource identifier.

Parameters
[in]requestObject instance of type show_dialog_request.
[out]resource_idPointer to variable to write value to. Value is ta_c_rid_undefined if value is not set in request.
Return values
ta_c_rc_okValue written to resource_id.
ta_c_rc_invalid_argumentrequest is ta_object_invalid.
ta_c_rc_invalid_argumentrequest is not of type show_dialog_request.
ta_c_rc_invalid_argumentresource_id is null-pointer.

◆ ta_show_dialog_request_get_theme()

ta_e_result_code_t ta_show_dialog_request_get_theme ( ta_object_t  request,
ta_e_theme_t theme 
)

Theme.

Parameters
[in]requestObject instance of type show_dialog_request.
[out]themePointer to variable to write value to. Value is ta_c_theme_undefined if value is not set in request.
Return values
ta_c_rc_okValue written to theme.
ta_c_rc_invalid_argumentrequest is ta_object_invalid.
ta_c_rc_invalid_argumentrequest is not of type show_dialog_request.
ta_c_rc_invalid_argumenttheme is null-pointer.

◆ ta_show_dialog_request_get_timeout()

ta_e_result_code_t ta_show_dialog_request_get_timeout ( ta_object_t  request,
int *  timeout 
)

Timeout in seconds.

Parameters
[in]requestObject instance of type show_dialog_request.
[out]timeoutPointer to variable to write value to. Value is 0 if value is not set in request.
Return values
ta_c_rc_okValue written to timeout.
ta_c_rc_invalid_argumentrequest is ta_object_invalid.
ta_c_rc_invalid_argumentrequest is not of type show_dialog_request.
ta_c_rc_invalid_argumenttimeout is null-pointer.

◆ ta_show_dialog_request_resource_get_parameters()

ta_e_result_code_t ta_show_dialog_request_resource_get_parameters ( ta_object_t  request,
ta_object_t parameters 
)

Map of resource parameters.

Parameters
[in]requestObject instance of type show_dialog_request.
[out]parametersPointer to variable to write object instance to. Object instance is of type map and is not retained. The map contains keys of type integer and values of type string. Keys use values matching ta_e_resource_parameter_type_t.
Return values
ta_c_rc_okObject instance written to parameters.
ta_c_rc_invalid_argumentrequest is ta_object_invalid.
ta_c_rc_invalid_argumentrequest is not of type show_dialog_request.
ta_c_rc_invalid_argumentparameters is null-pointer.

◆ ta_show_dialog_request_set_brand_bar()

ta_e_result_code_t ta_show_dialog_request_set_brand_bar ( ta_object_t  request,
ta_object_t  brand_bar 
)

Set brand bar.

Used if brand mode is ta_c_bm_selected.

Parameters
[in]requestObject instance of type show_dialog_request.
[in]brand_barObject instance to set. Object instance has to be of type list. The list has to contain elements of type integer. The value of the elements have to match ta_e_brand_bar_brand_t.
Return values
ta_c_rc_okObject instance assigned to brand_bar.
ta_c_rc_invalid_argumentrequest is ta_object_invalid.
ta_c_rc_invalid_argumentrequest is not of type show_dialog_request.
ta_c_rc_invalid_argumentbrand_bar is ta_object_invalid.
ta_c_rc_invalid_argumentbrand_bar is not of type list.
ta_c_rc_invalid_argumentElement in brand_bar is ta_object_invalid.
ta_c_rc_invalid_argumentElement in brand_bar is not of type integer.

◆ ta_show_dialog_request_set_brand_mode()

ta_e_result_code_t ta_show_dialog_request_set_brand_mode ( ta_object_t  request,
ta_e_brand_mode_t  brand_mode 
)

Set brand mode.

Parameters
[in]requestObject instance of type show_dialog_request.
[in]brand_modeValue to set. Value can be ta_c_bm_undefined to clear the value in request.
Return values
ta_c_rc_okValue assigned to brand_mode.
ta_c_rc_invalid_argumentrequest is ta_object_invalid.
ta_c_rc_invalid_argumentrequest is not of type show_dialog_request.

◆ ta_show_dialog_request_set_language()

ta_e_result_code_t ta_show_dialog_request_set_language ( ta_object_t  request,
ta_object_t  language 
)

Set language.

Parameters
[in]requestObject instance of type show_dialog_request.
[in]languageObject instance to set. Object instance can be ta_object_invalid to clear the value in request. If object instance is not ta_object_invalid is has to be of type string.
Return values
ta_c_rc_okObject instance assigned to language.
ta_c_rc_invalid_argumentrequest is ta_object_invalid.
ta_c_rc_invalid_argumentrequest is not of type show_dialog_request.
ta_c_rc_invalid_argumentlanguage is not ta_object_invalid and is not of type string.

◆ ta_show_dialog_request_set_placeholder_items()

ta_e_result_code_t ta_show_dialog_request_set_placeholder_items ( ta_object_t  request,
ta_object_t  placeholder_items 
)

Set map of placeholder items.

Parameters
[in]requestObject instance of type show_dialog_request.
[in]placeholder_itemsObject instance to set. Object instance has to be of type map. The map contains keys of type integer and values of type string.
Return values
ta_c_rc_okObject instance assigned to placeholder_items.
ta_c_rc_invalid_argumentrequest is ta_object_invalid.
ta_c_rc_invalid_argumentrequest is not of type show_dialog_request.
ta_c_rc_invalid_argumentplaceholder_items is ta_object_invalid.
ta_c_rc_invalid_argumentplaceholder_items is not of type map.
ta_c_rc_invalid_argumentKey in placeholder_items is ta_object_invalid.
ta_c_rc_invalid_argumentKey in placeholder_items is not of type integer.
ta_c_rc_invalid_argumentValue in placeholder_items is ta_object_invalid.
ta_c_rc_invalid_argumentValue in placeholder_items is not of type string.

◆ ta_show_dialog_request_set_resource_id()

ta_e_result_code_t ta_show_dialog_request_set_resource_id ( ta_object_t  request,
ta_e_resource_id_t  resource_id 
)

Set resource identifier.

Parameters
[in]requestObject instance of type show_dialog_request.
[in]resource_idValue to set. Value can be ta_c_bm_undefined to clear the value in request.
Return values
ta_c_rc_okValue assigned to resource_id.
ta_c_rc_invalid_argumentrequest is ta_object_invalid.
ta_c_rc_invalid_argumentrequest is not of type show_dialog_request.

◆ ta_show_dialog_request_set_resource_parameters()

ta_e_result_code_t ta_show_dialog_request_set_resource_parameters ( ta_object_t  request,
ta_object_t  parameters 
)

Set map of resource parameters.

Parameters
[in]requestObject instance of type show_dialog_request.
[in]parametersObject instance to set. Object instance has to be of type map. The map contains keys of type integer and values of type string. Keys use values matching ta_e_resource_parameter_type_t.
Return values
ta_c_rc_okObject instance assigned to parameters.
ta_c_rc_invalid_argumentrequest is ta_object_invalid.
ta_c_rc_invalid_argumentrequest is not of type show_dialog_request.
ta_c_rc_invalid_argumentparameters is ta_object_invalid.
ta_c_rc_invalid_argumentparameters is not of type map.
ta_c_rc_invalid_argumentKey in parameters is ta_object_invalid.
ta_c_rc_invalid_argumentKey in parameters is not of type integer.
ta_c_rc_invalid_argumentValue in parameters is ta_object_invalid.
ta_c_rc_invalid_argumentValue in parameters is not of type string.

◆ ta_show_dialog_request_set_theme()

ta_e_result_code_t ta_show_dialog_request_set_theme ( ta_object_t  request,
ta_e_theme_t  resource_id 
)

Set theme.

Parameters
[in]requestObject instance of type show_dialog_request.
[in]resource_idValue to set. Value can be ta_c_theme_undefined to clear the value in request.
Return values
ta_c_rc_okValue assigned to resource_id.
ta_c_rc_invalid_argumentrequest is ta_object_invalid.
ta_c_rc_invalid_argumentrequest is not of type show_dialog_request.

◆ ta_show_dialog_request_set_timeout()

ta_e_result_code_t ta_show_dialog_request_set_timeout ( ta_object_t  request,
int  timeout 
)

Set timeout in seconds.

Parameters
[in]requestObject instance of type show_dialog_request.
[in]timeoutValue to set. Value can be 0 to clear the value in request.
Return values
ta_c_rc_okValue assigned to timeout.
ta_c_rc_invalid_argumentrequest is ta_object_invalid.
ta_c_rc_invalid_argumentrequest is not of type show_dialog_request.