Record Class EODNewsResponse

java.lang.Object
java.lang.Record
com.bluebell.greenhouse.sol.models.responses.eod.EODNewsResponse
Record Components:
date - publication date
title - article title
content - article content or excerpt
link - article URL
symbols - tagged symbols
tags - provider tags
source - source/publisher
sentiment - article sentiment
rawPayload - 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 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 a EODNewsResponse record class.
      Parameters:
      date - the value for the date record component
      title - the value for the title record component
      content - the value for the content record component
      link - the value for the link record component
      symbols - the value for the symbols record component
      tags - the value for the tags record component
      source - the value for the source record component
      sentiment - the value for the sentiment record component
      rawPayload - the value for the rawPayload record component
  • Method Details

    • isEmpty

      public boolean isEmpty()
      Returns true when the payload does not contain an article title.
      Specified by:
      isEmpty in interface GenericIntegrationResponse
      Returns:
      boolean
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • date

      public String date()
      Returns the value of the date record component.
      Returns:
      the value of the date record component
    • title

      public String title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • content

      public String content()
      Returns the value of the content record component.
      Returns:
      the value of the content record component
    • link

      public String link()
      Returns the value of the link record component.
      Returns:
      the value of the link record component
    • symbols

      public List<String> symbols()
      Returns the value of the symbols record component.
      Returns:
      the value of the symbols record component
    • tags

      public List<String> tags()
      Returns the value of the tags record component.
      Returns:
      the value of the tags record component
    • source

      public String source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component
    • sentiment

      public EODNewsSentimentResponse sentiment()
      Returns the value of the sentiment record component.
      Returns:
      the value of the sentiment record component
    • rawPayload

      public com.fasterxml.jackson.databind.JsonNode rawPayload()
      Returns the value of the rawPayload record component.
      Returns:
      the value of the rawPayload record component