package gapi-ocaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Context : sig ... end
type t = {
  1. anchor : string;
    (*

    A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties.

    *)
  2. author : User.t;
    (*

    The user who wrote this comment.

    *)
  3. commentId : string;
    (*

    The ID of the comment.

    *)
  4. content : string;
    (*

    The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment's content.

    *)
  5. context : Context.t;
    (*

    The context of the file which is being commented on.

    *)
  6. createdDate : GapiDate.t;
    (*

    The date when this comment was first created.

    *)
  7. deleted : bool;
    (*

    Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed.

    *)
  8. fileId : string;
    (*

    The file which this comment is addressing.

    *)
  9. fileTitle : string;
    (*

    The title of the file which this comment is addressing.

    *)
  10. htmlContent : string;
    (*

    HTML formatted content for this comment.

    *)
  11. kind : string;
    (*

    This is always drive#comment.

    *)
  12. modifiedDate : GapiDate.t;
    (*

    The date when this comment or any of its replies were last modified.

    *)
  13. replies : CommentReply.t list;
    (*

    Replies to this post.

    *)
  14. status : string;
    (*

    The status of this comment. Status can be changed by posting a reply to a comment with the desired status.

    • "open" - The comment is still open.
    • "resolved" - The comment has been resolved by one of its replies.
    *)
}
val anchor : (t, string) GapiLens.t
val author : (t, User.t) GapiLens.t
val commentId : (t, string) GapiLens.t
val content : (t, string) GapiLens.t
val context : (t, Context.t) GapiLens.t
val createdDate : (t, GapiDate.t) GapiLens.t
val deleted : (t, bool) GapiLens.t
val fileId : (t, string) GapiLens.t
val fileTitle : (t, string) GapiLens.t
val htmlContent : (t, string) GapiLens.t
val kind : (t, string) GapiLens.t
val modifiedDate : (t, GapiDate.t) GapiLens.t
val replies : (t, CommentReply.t list) GapiLens.t
val status : (t, string) GapiLens.t
val empty : t
val render : t -> GapiJson.json_data_model list
val parse : t -> GapiJson.json_data_model -> t
val to_data_model : t -> GapiJson.json_data_model
val of_data_model : GapiJson.json_data_model -> t
OCaml

Innovation. Community. Security.