TranslationTextModelFactory Class

Definition

A factory class for creating instances of the models for mocking.

public static class TranslationTextModelFactory
type TranslationTextModelFactory = class
Public Class TranslationTextModelFactory
Inheritance
TranslationTextModelFactory

Methods

Name Description
DetectedLanguage(String, Single)

An object describing the detected language.

GetSupportedLanguagesResult(String, ETag, IReadOnlyDictionary<String, TranslationLanguage>, IReadOnlyDictionary<String,TransliterationLanguage>, IEnumerable<String>)

Response for the languages API.

InputTextItem(String)

Element containing the text for translation.

LanguageScript(String, String, String, LanguageDirectionality)

Common properties of language script.

ReferenceTextPair(String, String)

Reference text pair to generate adaptive customized translation.

TranslatedTextItem(DetectedLanguage, IEnumerable<TranslationText>)

Element containing the translated text.

TranslateInputItem(String, String, String, Nullable<TextType>, IEnumerable<TranslationTarget>)

Element containing the text for translation.

TranslationLanguage(String, String, LanguageDirectionality, IEnumerable<String>)

The value of the translation property is a dictionary of (key, value) pairs. Each key is a BCP 47 language tag. A key identifies a language for which text can be translated to or translated from.

TranslationTarget(String, String, Nullable<ProfanityAction>, Nullable<ProfanityMarker>, String, Nullable<Boolean>, Nullable<TranslationTone>, Nullable<TranslationGender>, String, IEnumerable<ReferenceTextPair>)

Target language and translation configuration parameters.

TranslationTarget(String, String, Nullable<ProfanityAction>, Nullable<ProfanityMarker>, String, Nullable<Boolean>, String, String, String, String, IEnumerable<ReferenceTextPair>)

Target language and translation configuration parameters.

TranslationText(String, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, String)

Translation result.

TransliterableScript(String, String, String, LanguageDirectionality, IEnumerable<LanguageScript>)

Script definition with list of script into which given script can be translitered.

TransliteratedText(String, String)

Transliterated text element.

TransliterationLanguage(String, String, IEnumerable<TransliterableScript>)

The value of the transliteration property is a dictionary of (key, value) pairs. Each key is a BCP 47 language tag. A key identifies a language for which text can be converted from one script to another script.

Applies to