Skip to content

feat: Social Service v3 #240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion proto/decentraland/social_service/v3/social_service_v3.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ message FriendshipRequestResponse {
User user = 1;
int64 created_at = 2;
optional string message = 3;
string id = 4;
}

message FriendshipRequests {
Expand All @@ -33,7 +34,6 @@ enum ConnectivityStatus {

message GetFriendsPayload {
optional Pagination pagination = 1;
optional ConnectivityStatus status = 2;
}

message GetFriendshipRequestsPayload {
Expand Down Expand Up @@ -109,6 +109,11 @@ message FriendshipUpdate {
}
}

message FriendUpdate {
User user = 1;
ConnectivityStatus status = 2;
}

message GetFriendshipStatusPayload {
User user = 1;
}
Expand Down Expand Up @@ -155,5 +160,10 @@ service SocialService {
rpc SubscribeToFriendshipUpdates(google.protobuf.Empty)
returns (stream FriendshipUpdate) {}

// Get the friendship status between the authenticated user and the one in the parameter
rpc GetFriendshipStatus(GetFriendshipStatusPayload) returns (GetFriendshipStatusResponse) {}

// Subscribe to updates of friends status: ONLINE, OFFLINE, AWAY
rpc SubscribeToFriendUpdates(google.protobuf.Empty)
returns (stream FriendUpdate) {}
}
Loading