Skip to content

Commit

Permalink
feat: Get Friends and Mutual responses include data from their profile
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinszuchet committed Jan 22, 2025
1 parent e86603a commit 51cd8d6
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions proto/decentraland/social_service/v2/social_service_v2.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ message InternalServerError {}
// Types
message User { string address = 1; }

message FriendProfile {
string address = 1;
string name = 2;
string has_claimed_name = 3;
string profile_picture_url = 4;
}

message Pagination {
int32 limit = 1;
int32 offset = 2;
Expand Down Expand Up @@ -69,8 +76,8 @@ message PaginatedResponse {
int32 page = 2;
}

message PaginatedUsersResponse {
repeated User users = 1;
message PaginatedFriendsProfilesResponse {
repeated FriendProfile friends = 1;
PaginatedResponse pagination_data = 2;
}

Expand Down Expand Up @@ -141,10 +148,10 @@ message GetFriendshipStatusResponse {

service SocialService {
// Get the list of friends for the authenticated user
rpc GetFriends(GetFriendsPayload) returns (PaginatedUsersResponse) {}
rpc GetFriends(GetFriendsPayload) returns (PaginatedFriendsProfilesResponse) {}

// Get the list of mutual friends between the authenticated user and the one in the parameter
rpc GetMutualFriends(GetMutualFriendsPayload) returns (PaginatedUsersResponse) {}
rpc GetMutualFriends(GetMutualFriendsPayload) returns (PaginatedFriendsProfilesResponse) {}

// Get the pending friendship requests for the authenticated user
rpc GetPendingFriendshipRequests(GetFriendshipRequestsPayload) returns (PaginatedFriendshipRequestsResponse) {}
Expand Down

0 comments on commit 51cd8d6

Please sign in to comment.