-
Notifications
You must be signed in to change notification settings - Fork 0
/
apiGameNetwork.mli
55 lines (44 loc) · 1.67 KB
/
apiGameNetwork.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
(* ************************************************************************** *)
(* Project: Life - the game, Official OCaml SDK *)
(* Author: nox *)
(* Latest Version is on GitHub: https://github.com/Life-the-game/SDK-OCaml *)
(* ************************************************************************** *)
(** Game Network API Methods *)
open ApiTypes
(* ************************************************************************** *)
(** {3 API Methods} *)
(* ************************************************************************** *)
(** Get Game Network (People you follow) *)
val get :
?auth:auth option
-> ?page:Page.parameters
-> ?term: string
-> id -> (ApiUser.t Page.t Api.t)
val get_mine :
auth:auth
-> ?page:Page.parameters
-> ?term: string
-> unit -> (ApiUser.t Page.t Api.t)
(** Get users who have me in their game network (People who follow you) *)
val get_followers :
?auth:auth option
-> ?page:Page.parameters
-> id -> (ApiUser.t Page.t Api.t)
val get_my_followers :
auth:auth
-> ?page:Page.parameters
-> unit -> (ApiUser.t Page.t Api.t)
(** Add a user in my Game Network *)
val add :
auth:auth
(* PRIVATE *)
-> ?adder:string option
(* /PRIVATE *)
-> id -> unit Api.t
(** Delete a user from my Game Network *)
val delete :
auth:auth
(* PRIVATE *)
-> ?remover:string option
(* /PRIVATE *)
-> id -> unit Api.t