-
Notifications
You must be signed in to change notification settings - Fork 0
/
apiNews.mli
29 lines (23 loc) · 1.19 KB
/
apiNews.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
(* ************************************************************************** *)
(* Project: Life - the game, Official OCaml SDK *)
(* Author: db0 ([email protected], http://db0.fr/) *)
(* Latest Version is on GitHub: https://github.com/Life-the-game/SDK-OCaml *)
(* ************************************************************************** *)
(** News API methods *)
open ApiTypes
(* ************************************************************************** *)
(** {3 Type} *)
(* ************************************************************************** *)
type t =
{
info : Info.t;
author : ApiUser.t;
content : string;
lang : Lang.t;
keywords : string list;
medias : ApiMedia.t list;
}
(* ************************************************************************** *)
(** {3 Tools} *)
(* ************************************************************************** *)
val from_json : Yojson.Basic.json -> t