C# Class rosette_api.TranslateNamesResponse

Inheritance: RosetteResponse
Exibir arquivo Open project: rosette-api/csharp Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Equals ( object obj ) : bool

Equals override

GetHashCode ( ) : int

HashCode override

TranslateNamesResponse ( HttpResponseMessage apiResult ) : System

Creates a TranslateNamesResponse from the given apiResult

TranslateNamesResponse ( string translation, string targetLanguage, string targetScheme = null, string targetScript = null, string entityType = null, string sourceLanguageOfOrigin = null, string sourceLanguageOfUse = null, string sourceScript = null, double confidence = null, string>.Dictionary responseHeaders = null, object>.Dictionary content = null, string contentAsJson = null ) : System

Creates a TranslateNamesResponse from its components

Method Details

Equals() public method

Equals override
public Equals ( object obj ) : bool
obj object The object to compare against
return bool

GetHashCode() public method

HashCode override
public GetHashCode ( ) : int
return int

TranslateNamesResponse() public method

Creates a TranslateNamesResponse from the given apiResult
public TranslateNamesResponse ( HttpResponseMessage apiResult ) : System
apiResult System.Net.Http.HttpResponseMessage The message from the API
return System

TranslateNamesResponse() public method

Creates a TranslateNamesResponse from its components
public TranslateNamesResponse ( string translation, string targetLanguage, string targetScheme = null, string targetScript = null, string entityType = null, string sourceLanguageOfOrigin = null, string sourceLanguageOfUse = null, string sourceScript = null, double confidence = null, string>.Dictionary responseHeaders = null, object>.Dictionary content = null, string contentAsJson = null ) : System
translation string The translation
targetLanguage string The target language
targetScheme string The target scheme
targetScript string The target script
entityType string The entity type
sourceLanguageOfOrigin string The source language of origin
sourceLanguageOfUse string The source language of use
sourceScript string The source script
confidence double The confidence
responseHeaders string>.Dictionary The response headers returned from the API
content object>.Dictionary The content in Dictionary form
contentAsJson string The content in JSON form
return System