C# Class rosette_api.SentimentResponse

Inheritance: RosetteResponse
Mostra file 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

SentimentResponse ( HttpResponseMessage apiResult ) : System

Creates a SentimentResponse from the given apiResult

SentimentResponse ( RosetteSentiment docSentiment, List entitySentiments, string>.Dictionary responseHeaders, object>.Dictionary content, string contentAsJson ) : System

Creates a SentimentResponse 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

SentimentResponse() public method

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

SentimentResponse() public method

Creates a SentimentResponse from its components
public SentimentResponse ( RosetteSentiment docSentiment, List entitySentiments, string>.Dictionary responseHeaders, object>.Dictionary content, string contentAsJson ) : System
docSentiment RosetteSentiment The sentiment of the entire document/input text
entitySentiments List The entities, each with a sentiment, found in the input text
responseHeaders string>.Dictionary The response headers returned from the API
content object>.Dictionary The content (the doc and entity sentiments) in Dictionary form
contentAsJson string The content in JSON form
return System