Story

@objc
public final class Story : NSObject

This data class represents a story inside a story group.

  • id

    ID of the story

    Declaration

    Swift

    @objc
    public let id: Int
  • Title of the story

    Declaration

    Swift

    @objc
    public let title: String
  • Index of the story among other stories of the story group

    Declaration

    Swift

    @objc
    public let index: Int
  • State of the story that shows whether the story is seen or not

    Declaration

    Swift

    @objc
    public let seen: Bool
  • Media content of the story

    Declaration

    Swift

    @objc
    public let media: StoryMedia
  • Story initialization

    Declaration

    Swift

    @objc
    public init(id: Int,
                index: Int,
                title: String,
                seen: Bool,
                media: StoryMedia)

    Parameters

    id

    ID of the story

    index

    Index of the story among other stories of the story group

    title

    Title of the story

    seen

    State of the story that shows whether the story is seen or not

    media

    Media content of the story