Skip to content

Commit

Permalink
feat: Add new endpoint to retrieve the status of a friendship
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinszuchet committed Jan 15, 2025
1 parent 0fbb3ae commit 7ea3a7d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions proto/decentraland/social_service_v2/social_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,22 @@ message FriendshipUpdate {
}
}

message GetFriendshipStatusPayload {
User user = 1;
}

enum FriendshipStatus {
REQUESTED = 0;
ACCEPTED = 1;
REJECTED = 2;
BLOCKED = 3;
}

message GetFriendshipStatusResponse {
FriendshipStatus status = 1;
optional string message = 2;
}

service SocialService {
// Get the list of friends for the authenticated user
rpc GetFriends(GetFriendsPayload) returns (stream UsersResponse) {}
Expand All @@ -136,4 +152,6 @@ service SocialService {
// Subscribe to updates of friendship status: REQUEST, ACCEPT, REJECT, CANCEL, DELETE
rpc SubscribeToFriendshipUpdates(google.protobuf.Empty)
returns (stream FriendshipUpdate) {}

rpc GetFriendshipStatus(GetFriendshipStatusPayload) returns (GetFriendshipStatusResponse) {}
}

0 comments on commit 7ea3a7d

Please sign in to comment.