Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
@EqualsAndHashCode(onlyExplicitlyIncluded = true, callSuper = true)
@Type("avatarAssignment")
public class AvatarAssignment extends AbstractEntity<AvatarAssignment> {
/**
* @deprecated The selected avatar is now tracked via {@link Player#getCurrentAvatar()}
* (the {@code login.avatar_id} column). Read/update that relationship instead; this flag is
* kept only for backwards compatibility with older clients and will be removed.
*/
@Deprecated(forRemoval = true)
@ToString.Include
private Boolean selected;
private OffsetDateTime expiresAt;
Expand Down
3 changes: 3 additions & 0 deletions api/src/main/java/com/faforever/commons/api/dto/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ public class Player extends AbstractEntity<Player> {
@JsonIgnore
private List<AvatarAssignment> avatarAssignments;

@Relationship("currentAvatar")
private Avatar currentAvatar;

@JsonBackReference
@Relationship("reporterOnModerationReports")
private Set<ModerationReport> reporterOnModerationReports;
Expand Down
Loading