TranslationResult

Wisej.Ext.Translation.TranslationResult

Namespace: Wisej.Ext.Translation

Assembly: Wisej.Ext.Translation (3.2.0.0)

Represents the result of a translation request.

public class TranslationResult

Constructors

TranslationResult(originalText, translatedText, from, to, errorCode, errorMessage)

Constructs a new instance of TranslationResult.

Name
Type
Description

originalText

The original text.

translatedText

The translated text - or null if an error occurred.

from

The language of the original text.

to

The language of the translated text.

errorCode

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.

errorMessage

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

Properties

ErrorCode

Int32arrow-up-right: 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.

ErrorMessage

Stringarrow-up-right: The error messsage returned by the translation service, or null if the request was successful.

OriginalLanguage

Stringarrow-up-right: Returns the language of the original text.

OriginalText

Stringarrow-up-right: The original text.

TargetLanguage

Stringarrow-up-right: Returns the language of the translated text.

TranslatedText

Stringarrow-up-right: The translated text - or null if an error occurred.

Last updated

Was this helpful?