StoryRatingComponent

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

This data class represents the Rating component.

Constructors

StoryRatingComponent
Link copied to clipboard
fun StoryRatingComponent(id: String, 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

id
Link copied to clipboard
open override val id: String

Id of the interactive component

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