Skip to content

Commit bbd121a

Browse files
committed
refactor: New type BlockedUserProfile
1 parent 2a21b5d commit bbd121a

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

proto/decentraland/social_service/v2/social_service_v2.proto

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,28 @@ message InternalServerError {}
1010
// Types
1111
message User { string address = 1; }
1212

13-
message UserProfile {
13+
message FriendProfile {
1414
string address = 1;
1515
string name = 2;
1616
bool has_claimed_name = 3;
1717
string profile_picture_url = 4;
1818
}
1919

20+
message BlockedUserProfile {
21+
string address = 1;
22+
string name = 2;
23+
bool has_claimed_name = 3;
24+
string profile_picture_url = 4;
25+
optional int64 blocked_at = 5;
26+
}
27+
2028
message Pagination {
2129
int32 limit = 1;
2230
int32 offset = 2;
2331
}
2432

2533
message FriendshipRequestResponse {
26-
UserProfile friend = 1;
34+
FriendProfile friend = 1;
2735
int64 created_at = 2;
2836
optional string message = 3;
2937
string id = 4;
@@ -77,7 +85,7 @@ message PaginatedResponse {
7785
}
7886

7987
message PaginatedFriendsProfilesResponse {
80-
repeated UserProfile friends = 1;
88+
repeated FriendProfile friends = 1;
8189
PaginatedResponse pagination_data = 2;
8290
}
8391

@@ -93,7 +101,7 @@ message UpsertFriendshipResponse {
93101
message Accepted {
94102
string id = 1;
95103
int64 created_at = 2;
96-
UserProfile friend = 3;
104+
FriendProfile friend = 3;
97105
optional string message = 4;
98106
}
99107
oneof response {
@@ -105,7 +113,7 @@ message UpsertFriendshipResponse {
105113

106114
message FriendshipUpdate {
107115
message RequestResponse {
108-
UserProfile friend = 1;
116+
FriendProfile friend = 1;
109117
int64 created_at = 2;
110118
optional string message = 3;
111119
string id = 4;
@@ -125,7 +133,7 @@ message FriendshipUpdate {
125133
}
126134

127135
message FriendConnectivityUpdate {
128-
UserProfile friend = 1;
136+
FriendProfile friend = 1;
129137
ConnectivityStatus status = 2;
130138
}
131139

@@ -161,7 +169,7 @@ message BlockUserPayload {
161169

162170
message BlockUserResponse {
163171
message Ok {
164-
UserProfile profile = 1;
172+
BlockedUserProfile profile = 1;
165173
}
166174

167175
oneof response {
@@ -176,7 +184,7 @@ message UnblockUserPayload {
176184

177185
message UnblockUserResponse {
178186
message Ok {
179-
UserProfile profile = 1;
187+
BlockedUserProfile profile = 1;
180188
}
181189

182190
oneof response {
@@ -190,7 +198,7 @@ message GetBlockedUsersPayload {
190198
}
191199

192200
message GetBlockedUsersResponse {
193-
repeated UserProfile profiles = 1;
201+
repeated BlockedUserProfile profiles = 1;
194202
PaginatedResponse pagination_data = 2;
195203
}
196204

0 commit comments

Comments
 (0)