TranslationResult
Namespace: Wisej.Ext.Translation
Assembly: Wisej.Ext.Translation
Represents the result of a translation request.
- C#
- VB.NET
public class TranslationResult
Public Class TranslationResult
Constructors
TranslationResult(originalText, translatedText, from, to, errorCode, errorMessage)
Constructs a new instance of TranslationResult.
| Name | Type | Description |
|---|---|---|
| originalText | String | The original text. |
| translatedText | String | The translated text - or null if an error occurred. |
| from | String | The language of the original text. |
| to | String | The language of the translated text. |
| 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. |
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.