vx_req_account_translation_control
Enable or disable translation of incoming text for the logged in account. More...
読み終わるまでの所要時間 2 分最終更新 9日前
Enable or disable translation of incoming text for the logged in account. More...
#include <VxcRequests.h>Public Attributes
| |
|---|---|
base The common properties for all requests. | |
account_handle Returned from a successful vx_req_account_login request. | |
int | enable Enable or disable translation. |
int | auto_languages Resolve both languages per message instead of using a fixed pair. |
char * | source_language The language that incoming text is translated from, for example "en-us". |
char * | target_language The language that incoming text is translated into, for example "fr". |
Detailed Description
struct vx_req_account_translation_control;
Enable or disable translation of incoming text for the logged in account.
Translation covers directed messages, their edits, and chat history results. Voice is never translated.
Public Attributes Documentation
variable base
vx_req_base_t base;
The common properties for all requests.
variable account_handle
VX_HANDLE account_handle;
Returned from a successful vx_req_account_login request.
variable enable
int enable;
Enable or disable translation.
Set to 0 to disable translation.
variable auto_languages
int auto_languages;
Resolve both languages per message instead of using a fixed pair.
The target is the first language supplied to vx_req_account_anonymous_login, so a login that declared no languages translates nothing. The source is taken from each incoming message. Set to 1 to enable. When set, source_language and target_language must both be NULL or empty.
variable source_language
char * source_language;
The language that incoming text is translated from, for example "en-us".
This is required when enabling unless auto_languages is set, and ignored when disabling.
variable target_language
char * target_language;
The language that incoming text is translated into, for example "fr".
This is required when enabling unless auto_languages is set, must differ from source_language, and is ignored when disabling.