-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFriendManagerMsg.proto
More file actions
49 lines (43 loc) · 1.18 KB
/
FriendManagerMsg.proto
File metadata and controls
49 lines (43 loc) · 1.18 KB
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
syntax = "proto3";
package e2ees;
option java_package = "org.e2eelab.proto.e2ees";
option java_outer_classname = "FriendManagerMsgProto";
option objc_class_prefix = "Objc";
option swift_prefix="Swift";
import "e2ees/E2eeAddress.proto";
/**
* The friend operations.
*/
enum FriendOp {
FRIEND_OP_ADDING_SEND = 0;
FRIEND_OP_ADDING_RECEIVE = 1;
FRIEND_OP_ADDED = 2;
FRIEND_OP_BLOCKED = 3;
FRIEND_OP_UNBLOCKED = 4;
FRIEND_OP_REMOVED = 5;
FRIEND_OP_UPDATE_MEMONAME = 6;
FRIEND_OP_RECOMMEND = 7;
}
/**
* The data object representing a friend.
*/
message FriendshipDTO {
int64 modified_date = 1;
string from_user = 2;
string to_user = 3;
string nickname = 4;
string memoname = 5;
int32 block_state = 6;
int32 friend_status = 7;
}
/**
* Msg for friend manager.
*/
message FriendManagerMsg {
int64 modified_date = 1; // The modified date of the friend manager msg.
string msgId = 2; // The msg ID.
E2eeAddress user_address = 3; // The user address.
string user_name = 4; // The user name.
FriendOp op = 5; // The operation of this msg.
FriendshipDTO friend = 6; // The friend data.
}