Click or drag to resize

LanguageTranslatorGetModels Method

Retrieve the translation models with optional filters.

Namespace:  IBM.Watson.DeveloperCloud.Services.LanguageTranslator.v2
Assembly:  unity-documentation (in unity-documentation.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public bool GetModels(
	LanguageTranslatorSuccessCallback<TranslationModels> successCallback,
	LanguageTranslatorFailCallback failCallback,
	string sourceFilter = null,
	string targetFilter = null,
	LanguageTranslatorTypeFilter defaults = LanguageTranslatorTypeFilter.ALL,
	Dictionary<string, Object> customData = null
)

Parameters

successCallback
Type: IBM.Watson.DeveloperCloud.Services.LanguageTranslator.v2LanguageTranslatorSuccessCallbackTranslationModels
The success callback.
failCallback
Type: IBM.Watson.DeveloperCloud.Services.LanguageTranslator.v2LanguageTranslatorFailCallback
The fail callback.
sourceFilter (Optional)
Type: SystemString
Optional source language filter.
targetFilter (Optional)
Type: SystemString
Optional target language filter.
defaults (Optional)
Type: IBM.Watson.DeveloperCloud.Services.LanguageTranslator.v2LanguageTranslatorTypeFilter
Controls if we get default, non-default, or all models.
customData (Optional)
Type: System.Collections.GenericDictionaryString, Object

[Missing <param name="customData"/> documentation for "M:IBM.Watson.DeveloperCloud.Services.LanguageTranslator.v2.LanguageTranslator.GetModels(IBM.Watson.DeveloperCloud.Services.LanguageTranslator.v2.LanguageTranslator.SuccessCallback{IBM.Watson.DeveloperCloud.Services.LanguageTranslator.v2.TranslationModels},IBM.Watson.DeveloperCloud.Services.LanguageTranslator.v2.LanguageTranslator.FailCallback,System.String,System.String,IBM.Watson.DeveloperCloud.Services.LanguageTranslator.v2.LanguageTranslator.TypeFilter,System.Collections.Generic.Dictionary{System.String,System.Object})"]

Return Value

Type: Boolean
Returns a true on success, false if it failed to submit the request.
See Also