toggle menu
data-models
JVM
switch theme
search in API
data-models
/
org.cryptotrader.data.library.entity.news
/
NewsSentiment
News
Sentiment
@
Entity
open
class
NewsSentiment
:
Identifiable
Members
Constructors
News
Sentiment
Link copied to clipboard
constructor
(
)
constructor
(
articleId
:
Long
,
title
:
String
,
publishedDate
:
LocalDateTime
,
source
:
String
,
url
:
String
,
positiveScore
:
Double
,
neutralScore
:
Double
,
negativeScore
:
Double
,
compositeScore
:
Double
,
cryptoRelevance
:
Double
,
lastUpdated
:
LocalDateTime
)
Functions
builder
Link copied to clipboard
open
fun
builder
(
)
:
NewsSentimentBuilder
calculate
Weighted
Score
Link copied to clipboard
open
fun
calculateWeightedScore
(
compositeScore
:
Double
,
cryptoRelevance
:
Double
)
:
Double
get
Id
Link copied to clipboard
open
fun
getId
(
)
:
Long
set
Id
Link copied to clipboard
open
fun
setId
(
id
:
Long
)