StoryRatingComponent

data class StoryRatingComponent(emojiCode: String, rating: Int, customPayload: String?) : StoryComponent

This data class represents the Rating component.

Constructors

StoryRatingComponent
Link copied to clipboard
fun StoryRatingComponent(emojiCode: String, rating: Int, customPayload: String?)

Properties

customPayload
Link copied to clipboard
val customPayload: String?
Custom payload for this rating if exists
emojiCode
Link copied to clipboard
val emojiCode: String
Emoji code as the thumb emoji
rating
Link copied to clipboard
val rating: Int
Rating value which user rated in the component
type
Link copied to clipboard
val type: StoryComponentType
Type of the interactive component