VRFS-282 VRFS-283 toasts / notifications for friend updates and requests

This commit is contained in:
Brian Smith 2013-03-31 14:07:25 -04:00
parent 50494c5fbd
commit 7d26ab8aab
1 changed files with 11 additions and 5 deletions

View File

@ -193,10 +193,12 @@ message Heartbeat {
// target: client
// send from server to client when user sends a friend request
message FriendRequest {
optional string user_id = 1;
optional string name = 2;
optional string photo_url = 3;
optional string friend_id = 4;
optional string id = 1;
optional string user_id = 2;
optional string name = 3;
optional string photo_url = 4;
optional string friend_id = 5;
optional string msg = 6;
}
// target: client
@ -205,13 +207,17 @@ message FriendRequestAccepted {
optional string name = 2;
optional string photo_url = 3;
optional string user_id = 4; // original requester
optional string msg = 5;
}
// target: client
// send from server to client when a user logs in
message FriendUpdate {
optional string user_id = 1;
optional bool online = 2;
optional string name = 2;
optional string photo_url = 3;
optional bool online = 4;
optional string msg = 5;
}
// route_to: user:[USER_ID]