app / de.uniks.codliners.stock_simulator.domain / News

News

@JsonClass(true) data class News

News database entity and JSON adapter source.

Constructors

<init>

News database entity and JSON adapter source.

News(primaryKey: Long = 0, datetime: Long, headline: String, source: String, url: String, summary: String, related: String, image: String, lang: String, hasPaywall: Boolean)

Properties

datetime

Millisecond epoch of time of article.

val datetime: Long

hasPaywall

Whether the news source has a paywall.

val hasPaywall: Boolean

headline

The article's headline.

val headline: String

image

URL to IEX Cloud for associated news image.

val image: String

lang

Language of the source article.

val lang: String

primaryKey

An automatically generated primary key.

val primaryKey: Long

related

Comma-delimited list of tickers associated with this news article. Not all tickers are available on the API. Make sure to check against available ref-data.

val related: String

source

Source of the news article. Make sure to always attribute the source.

val source: String

summary

The requested news article in short.

val summary: String

url

URL to IEX Cloud for associated news image.

val url: String