C# Class rosette_api.SentimentResponse

Inheritance: RosetteResponse
Afficher le fichier Open project: rosette-api/csharp Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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 méthode

Equals override
public Equals ( object obj ) : bool
obj object The object to compare against
Résultat bool

GetHashCode() public méthode

Hashcode override
public GetHashCode ( ) : int
Résultat int

SentimentResponse() public méthode

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

SentimentResponse() public méthode

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
Résultat System