Data object RatingState
interface struct RatingState
Describes a structured rating state for the currently playing media.
Fields
thumbs
The user’s thumbs rating for the playing media, if any. Null indicates no thumbs preference (the user has not rated, or has cleared their rating).ThumbsRating?— Optional
numericRating
float — Required
A numeric rating value on the provider’s native scale.
The interpretation depends on the provider (for example 0.0 to 1.0
normalized, or 0 to 5 stars).
Clients should consult [Capabilities#ratings] to understand the scale.
A value of -1.0 indicates that no numeric rating has been assigned
(sentinel for absence).
