package gapi-ocaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Thumbnails : sig ... end
module Image : sig ... end
module FullImage : sig ... end
module Embed : sig ... end
type t = {
  1. content : string;
    (*

    If the attachment is an article, this property contains a snippet of text from the article. It can also include descriptions for other types.

    *)
  2. displayName : string;
    (*

    The title of the attachment, such as a photo caption or an article title.

    *)
  3. embed : Embed.t;
    (*

    If the attachment is a video, the embeddable link.

    *)
  4. fullImage : FullImage.t;
    (*

    The full image URL for photo attachments.

    *)
  5. id : string;
    (*

    The ID of the attachment.

    *)
  6. image : Image.t;
    (*

    The preview image for photos or videos.

    *)
  7. objectType : string;
    (*

    The type of media object. Possible values include, but are not limited to, the following values:

    • "photo" - A photo.
    • "album" - A photo album.
    • "video" - A video.
    • "article" - An article, specified by a link.
    *)
  8. thumbnails : Thumbnails.t list;
    (*

    If the attachment is an album, this property is a list of potential additional thumbnails from the album.

    *)
  9. url : string;
    (*

    The link to the attachment, which should be of type text/html.

    *)
}
val content : (t, string) GapiLens.t
val displayName : (t, string) GapiLens.t
val embed : (t, Embed.t) GapiLens.t
val fullImage : (t, FullImage.t) GapiLens.t
val id : (t, string) GapiLens.t
val image : (t, Image.t) GapiLens.t
val objectType : (t, string) GapiLens.t
val thumbnails : (t, Thumbnails.t list) GapiLens.t
val url : (t, string) GapiLens.t
val empty : t
val render : t -> GapiJson.json_data_model list
val parse : t -> GapiJson.json_data_model -> t