kitazith/component/media_gallery

Types

pub type MediaGallery {
  MediaGallery(
    id: option.Option(Int),
    items: List(MediaGalleryItem),
  )
}

Constructors

pub type MediaGalleryItem {
  MediaGalleryItem(
    media: media.UnfurledMediaItem,
    description: option.Option(String),
    spoiler: option.Option(Bool),
  )
}

Constructors

Values

pub fn new(items: List(MediaGalleryItem)) -> MediaGallery
pub fn to_json(media_gallery: MediaGallery) -> json.Json
pub fn with_id(
  media_gallery: MediaGallery,
  id: Int,
) -> MediaGallery
pub fn with_item_description(
  item: MediaGalleryItem,
  description: String,
) -> MediaGalleryItem
pub fn with_item_spoiler(
  item: MediaGalleryItem,
  spoiler: Bool,
) -> MediaGalleryItem
Search Document