Record Class EODNewsResponse
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.sol.models.responses.eod.EODNewsResponse
- Record Components:
date- publication datetitle- article titlecontent- article content or excerptlink- article URLsymbols- tagged symbols- provider tagssource- source/publishersentiment- article sentimentrawPayload- full provider payload
- All Implemented Interfaces:
GenericIntegrationResponse
public record EODNewsResponse(String date, String title, String content, String link, List<String> symbols, List<String> tags, String source, EODNewsSentimentResponse sentiment, com.fasterxml.jackson.databind.JsonNode rawPayload)
extends Record
implements GenericIntegrationResponse
Financial news article payload.
- Version:
- 2.0.2
- Author:
- Stephen Prizio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the value of thecontentrecord component.date()Returns the value of thedaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisEmpty()Returns true when the payload does not contain an article title.link()Returns the value of thelinkrecord component.com.fasterxml.jackson.databind.JsonNodeReturns the value of therawPayloadrecord component.Returns the value of thesentimentrecord component.source()Returns the value of thesourcerecord component.symbols()Returns the value of thesymbolsrecord component.tags()Returns the value of thetagsrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EODNewsResponse
public EODNewsResponse(String date, String title, String content, String link, List<String> symbols, List<String> tags, String source, EODNewsSentimentResponse sentiment, com.fasterxml.jackson.databind.JsonNode rawPayload) Creates an instance of aEODNewsResponserecord class.- Parameters:
date- the value for thedaterecord componenttitle- the value for thetitlerecord componentcontent- the value for thecontentrecord componentlink- the value for thelinkrecord componentsymbols- the value for thesymbolsrecord componenttags- the value for thetagsrecord componentsource- the value for thesourcerecord componentsentiment- the value for thesentimentrecord componentrawPayload- the value for therawPayloadrecord component
-
-
Method Details
-
isEmpty
public boolean isEmpty()Returns true when the payload does not contain an article title.- Specified by:
isEmptyin interfaceGenericIntegrationResponse- Returns:
- boolean
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
date
-
title
-
content
-
link
-
symbols
-
tags
-
source
-
sentiment
-
rawPayload
public com.fasterxml.jackson.databind.JsonNode rawPayload()Returns the value of therawPayloadrecord component.- Returns:
- the value of the
rawPayloadrecord component
-