From 7ea3a7d6ac1faee0c840d58c94e69b6005d21a35 Mon Sep 17 00:00:00 2001 From: Kevin Szuchet Date: Wed, 15 Jan 2025 15:14:04 -0300 Subject: [PATCH] feat: Add new endpoint to retrieve the status of a friendship --- .../social_service_v2/social_service.proto | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/proto/decentraland/social_service_v2/social_service.proto b/proto/decentraland/social_service_v2/social_service.proto index 4ffc0f31..a2f70f53 100644 --- a/proto/decentraland/social_service_v2/social_service.proto +++ b/proto/decentraland/social_service_v2/social_service.proto @@ -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) {} @@ -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) {} }