Skip to content

Commit 7ea3a7d

Browse files
committed
feat: Add new endpoint to retrieve the status of a friendship
1 parent 0fbb3ae commit 7ea3a7d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

proto/decentraland/social_service_v2/social_service.proto

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,22 @@ message FriendshipUpdate {
116116
}
117117
}
118118

119+
message GetFriendshipStatusPayload {
120+
User user = 1;
121+
}
122+
123+
enum FriendshipStatus {
124+
REQUESTED = 0;
125+
ACCEPTED = 1;
126+
REJECTED = 2;
127+
BLOCKED = 3;
128+
}
129+
130+
message GetFriendshipStatusResponse {
131+
FriendshipStatus status = 1;
132+
optional string message = 2;
133+
}
134+
119135
service SocialService {
120136
// Get the list of friends for the authenticated user
121137
rpc GetFriends(GetFriendsPayload) returns (stream UsersResponse) {}
@@ -136,4 +152,6 @@ service SocialService {
136152
// Subscribe to updates of friendship status: REQUEST, ACCEPT, REJECT, CANCEL, DELETE
137153
rpc SubscribeToFriendshipUpdates(google.protobuf.Empty)
138154
returns (stream FriendshipUpdate) {}
155+
156+
rpc GetFriendshipStatus(GetFriendshipStatusPayload) returns (GetFriendshipStatusResponse) {}
139157
}

0 commit comments

Comments
 (0)