forked from vk-com/kphp-kdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
friends.tl
53 lines (38 loc) · 1.86 KB
/
friends.tl
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
51
52
---types---
///////
//
// Friends
//
///////
friends.friend {mode:#} id:int mask:mode.0?int time:mode.1?int = friends.Friend mode;
---functions---
friends.deleteUser uid:int = Bool;
friends.getFriendsId uid:int mask:int = Maybe %(Vector int);
friends.getFriends uid:int mask:int mode:# = Maybe %(Vector %(friends.Friend mode));
friends.getFriendsCnt uid:int mask:int = Maybe int;
friends.getRecentFriends uid:int num:int = Maybe %(VectorTotal %(friends.Friend 3));
friends.setCatList uid:int cat:int friends:%(Vector int) = Bool;
friends.deleteCat uid:int cat:int = Bool;
friends.getFriend uid:int id:int = Maybe int;
friends.setFriend uid:int friend:int mask:int = Bool;
friends.replaceFriend uid:int friend:int mask:int = Bool;
friends.deleteFriend uid:int friend:int = Bool;
friends.incrFriend uid:int friend:int mask:int = Maybe int;
friends.decrFriend uid:int friend:int mask:int = Maybe int;
friends.getFriendReq uid:int id:int = Maybe int;
friends.addFriendReq uid:int friend:int mask:int = Bool;
friends.setFriendReq uid:int friend:int mask:int = Bool;
friends.replaceFriendReq uid:int friend:int mask:int = Bool;
friends.deleteFriendReq uid:int friend:int = Bool;
//friends.incrFriendReq uid:int mask:int = Bool;
//friends.decrFriendReq uid:int mask:int = Bool;
friends.deleteReqs uid:int = Bool;
friends.getReqs uid:int limit:int = Maybe %(VectorTotal %(friends.Friend 3));
friends.setPrivacy uid:int key:string text:string = Bool;
friends.replacePrivacy uid:int key:string text:string = Bool;
friends.getPrivacy uid:int key:string = Maybe string;
friends.deletePrivacy uid:int key:string = Bool;
friends.checkPrivacy uid:int test_uid:int key:string = Maybe int;
friends.checkPrivacyList uid:int test_uid:int key_lest:%(Vector string) = Vector (Maybe int);
friends.getCommonFriendsNum uid:int users:%(Vector int) = Vector int;
friends.getCommonFriends uid:int uid2:int = Vector Int;