RecommendationDataItem

data class RecommendationDataItem(var corpusItemId: String, var scheduledCorpusItemId: String? = null, var url: String, var title: String, var excerpt: String, var topic: String? = null, var publisher: String, var isTimeSensitive: Boolean, var imageUrl: String, var iconUrl: String?, var tileId: Long? = null, var receivedRank: Long)

A single curated recommendation item.

Constructors

Link copied to clipboard
constructor(corpusItemId: String, scheduledCorpusItemId: String? = null, url: String, title: String, excerpt: String, topic: String? = null, publisher: String, isTimeSensitive: Boolean, imageUrl: String, iconUrl: String?, tileId: Long? = null, receivedRank: Long)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Unique identifier for the corpus item.

Link copied to clipboard

Short excerpt or summary of the article.

Link copied to clipboard

Optional URL of the publisher's favicon.

Link copied to clipboard

URL of the article's hero/thumbnail image.

Link copied to clipboard

Whether the recommendation is time-sensitive (e.g. breaking news).

Link copied to clipboard

Name of the publisher.

Link copied to clipboard

The position rank at which this item was received from the server.

Link copied to clipboard

Unique identifier for the scheduled corpus item.

Link copied to clipboard
var tileId: Long?

Numeric tile identifier used for telemetry.

Link copied to clipboard

Title of the recommended article.

Link copied to clipboard

Optional topic slug (e.g. "business", "government").

Link copied to clipboard
var url: String

URL of the recommended article.