StoryRatingComponent

@objc(StoryRatingComponent)
public final class StoryRatingComponent : StoryComponent

This class represents the Rating component.

  • Emoji code as the thumb emoji

    Declaration

    Swift

    @objc
    public let emojiCode: String
  • Rating value which user rated in the component

    Declaration

    Swift

    @objc
    public let rating: Int
  • Custom payload for this rating if exists

    Declaration

    Swift

    @objc
    public let customPayload: String?
  • StoryRatingComponent initialization

    Declaration

    Swift

    @objc
    public init(id: String,
                emojiCode: String,
                rating: Int,
                customPayload: String?)

    Parameters

    id

    Id of the interactive component

    emojiCode

    Emoji code as the thumb emoji

    rating

    Rating value which user rated in the component

    customPayload

    Custom payload for this rating if exists