Skip to content

Instantly share code, notes, and snippets.

@shrutis22
Created August 21, 2017 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shrutis22/5013d27856897ba0869e3ccc82f58ef2 to your computer and use it in GitHub Desktop.
Save shrutis22/5013d27856897ba0869e3ccc82f58ef2 to your computer and use it in GitHub Desktop.
This class is created to receive the Response of Sentiment Analysis API.
/**
* This class is created to receive
* the Response of Sentiment Analysis
* API.
*
* @author Shruti Sridharan
* @since 10/08/2017
* @revisions N/A
**/
global class SentimentAnalysisResponse {
webservice List<Probabilities> probabilities { get; set; }
global class Probabilities {
webservice String label { get; set; }
webservice Double probability { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment