discontinuedPackage thingsboard_pe_client has been discontinued and replaced by thingsboard_client.
CustomTranslationControllerApi class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
deleteCustomTranslation({required String localeCode, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<void>>
-
Delete Custom Translation for specified locale (deleteCustomTranslation)
Delete entire custom translation settings for end-user Security check is performed to verify that the user has 'WRITE' permission for the white labeling resource.
-
deleteCustomTranslationKey({required String localeCode, required String keyPath, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<void>>
-
Delete specified key of Custom Translation (deleteCustomTranslationKey)
The API call is designed to delete specified key of the custom translation and return as a result parent translation.(e.g. if tenant translation for key is 'value1' and customer translation is 'value2' then by deletinf key onn customer level you will get 'value1' in response) Security check is performed to verify that the user has 'WRITE' permission for the white labeling resource.
-
getCustomTranslation({required String localeCode, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<JsonObject>>
-
Get Custom Translation configuration (getCustomTranslation)
Fetch the Custom Translation for specified locale that corresponds to the authority of the user. The API call is designed to load the custom translation items for edition. So, the result is NOT merged with the parent level configuration. Let's assume there is a custom translation configured on a system level. And there is no custom translation items configured on a tenant level. In such a case, the API call will return empty object for the tenant administrator. Response example: ```json {"home":"MyHome"} ``` Security check is performed to verify that the user has 'READ' permission for the white labeling resource.
-
getMergedCustomTranslation({required String localeCode, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<JsonObject>>
-
Get end-user Custom Translation configuration (getMergedCustomTranslation)
Fetch end-user Custom Translation for specified locale. The custom translation is configured in the white labeling parameters. If custom translation translation is defined on the tenant level, it overrides the custom translation of the system level. Similar, if the custom translation is defined on the customer level, it overrides the translation configuration of the tenant level.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
patchCustomTranslation({required String localeCode, JsonObject? body, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<void>>
-
Update Custom Translation for specified translation keys only (patchCustomTranslation)
The API call is designed to update the custom translation for specified key only. Request example: ```json {"notification.active":"active"} ``` Security check is performed to verify that the user has 'WRITE' permission for the white labeling resource.
-
saveCustomTranslation({required String localeCode, JsonObject? body, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<void>>
-
Create Or Update Custom Translation (saveCustomTranslation)
Creates or Updates the Custom Translation for specified locale. Request example: ```json {"home":"MyHome"} ``` Security check is performed to verify that the user has 'WRITE' permission for the white labeling resource.
-
toString()
→ String
-
A string representation of this object.
inherited
-
uploadCustomTranslation({required String localeCode, required MultipartFile file, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<void>>
-
Upload Custom Translation (uploadCustomTranslation)
Upload the Custom Translation for specified locale. Request example: ```json {"home":"MyHome"} ``` Security check is performed to verify that the user has 'WRITE' permission for the white labeling resource.