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.
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

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.
ErrorMessage

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

String: Returns the language of the original text.
OriginalText

String: The original text.
TargetLanguage

String: Returns the language of the translated text.
TranslatedText

String: The translated text - or null if an error occurred.
Last updated
Was this helpful?