Skip to main content

TranslationResult

Namespace: Wisej.Ext.Translation

Assembly: Wisej.Ext.Translation

Represents the result of a translation request.

public class TranslationResult

Constructors

Instance memberTranslationResult(originalText, translatedText, from, to, errorCode, errorMessage)

Constructs a new instance of TranslationResult.

NameTypeDescription
originalTextStringThe original text.
translatedTextStringThe translated text - or null if an error occurred.
fromStringThe language of the original text.
toStringThe language of the translated text.
errorCodeInt32The error code returned by the translatation service, or -1 if the service returned an error message without an error code. Zero if the request was successful.
errorMessageStringThe error messsage returned by the translation service, or null if the request was successful.

Properties

Instance memberErrorCode

Int32: The error code returned by the translatation service, or -1 if the service returned an error message without an error code. Zero if the request was successful.

Instance memberErrorMessage

String: The error messsage returned by the translation service, or null if the request was successful.

Instance memberOriginalLanguage

String: Returns the language of the original text.

Instance memberOriginalText

String: The original text.

Instance memberTargetLanguage

String: Returns the language of the translated text.

Instance memberTranslatedText

String: The translated text - or null if an error occurred.