Class NewsResult
java.lang.Object
net.ygbstudio.jbrave.core.domain.dto.result.Result
net.ygbstudio.jbrave.core.domain.dto.result.NewsResult
Represents a news result in search results. This class provides structured information about news
articles in the Brave Search API results.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class net.ygbstudio.jbrave.core.domain.dto.result.Result
description, familyFriendly, fetchedContentTimestamp, isSourceBoth, isSourceLocal, language, pageAge, pageFetched, profile, title, url -
Constructor Summary
ConstructorsConstructorDescriptionNewsResult(@NotNull NewsResult.Builder builder) Creates a new news result from the given builder. -
Method Summary
Modifier and TypeMethodDescriptionage()Returns the age of the news.breaking()Returns whether the news is breaking.booleanReturns the extra snippets.inthashCode()isLive()Returns whether the news is live.metaUrl()Returns the meta URL.source()Returns the source.Returns the thumbnail.toString()Methods inherited from class net.ygbstudio.jbrave.core.domain.dto.result.Result
description, familyFriendly, fetchedContentTimestamp, isSourceBoth, isSourceLocal, language, pageAge, pageFetched, profile, title, url
-
Constructor Details
-
NewsResult
Creates a new news result from the given builder.- Parameters:
builder- the builder carrying the news fields
-
-
Method Details
-
metaUrl
Returns the meta URL.- Returns:
- the meta URL
-
source
Returns the source.- Returns:
- the source
-
breaking
Returns whether the news is breaking.- Returns:
- whether the news is breaking
-
isLive
Returns whether the news is live.- Returns:
- whether the news is live
-
thumbnail
Returns the thumbnail.- Returns:
- the thumbnail
-
age
Returns the age of the news.- Returns:
- the age
-
extraSnippets
Returns the extra snippets.- Returns:
- the extra snippets
-
equals
-
hashCode
public int hashCode() -
toString
-