File tree Expand file tree Collapse file tree
api/src/main/java/com/faforever/commons/api/dto Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,10 +42,15 @@ public class Player extends AbstractEntity<Player> {
4242 @ Relationship ("lobbyGroup" )
4343 private LobbyGroup lobbyGroup ;
4444
45+ @ Deprecated
4546 @ Relationship ("uniqueIds" )
4647 @ RestrictedVisibility ("IsModerator" )
4748 private Set <UniqueId > uniqueIds ;
4849
50+ @ Relationship ("uniqueIdAssignments" )
51+ @ RestrictedVisibility ("IsModerator" )
52+ private Set <UniqueIdAssignment > uniqueIdAssignments ;
53+
4954 @ Relationship ("accountLinks" )
5055 @ RestrictedVisibility ("IsModerator" )
5156 private Set <AccountLink > accountLinks ;
Original file line number Diff line number Diff line change 1+ package com .faforever .commons .api .dto ;
2+
3+ import com .github .jasminb .jsonapi .annotations .Relationship ;
4+ import com .github .jasminb .jsonapi .annotations .Type ;
5+ import lombok .Data ;
6+ import lombok .EqualsAndHashCode ;
7+ import lombok .ToString ;
8+
9+ @ Data
10+ @ ToString (onlyExplicitlyIncluded = true , callSuper = true )
11+ @ EqualsAndHashCode (onlyExplicitlyIncluded = true , callSuper = true )
12+ @ Type ("uniqueIdAssignment" )
13+ @ RestrictedVisibility ("IsModerator" )
14+ public class UniqueIdAssignment extends AbstractEntity <UniqueIdAssignment > {
15+
16+ @ Relationship ("player" )
17+ private Player player ;
18+
19+ @ Relationship ("uniqueId" )
20+ private UniqueId uniqueId ;
21+ }
You can’t perform that action at this time.
0 commit comments