diff --git a/api/src/main/java/com/faforever/commons/api/dto/MatchmakerQueue.java b/api/src/main/java/com/faforever/commons/api/dto/MatchmakerQueue.java index 55cb5bb1..0210ac9f 100644 --- a/api/src/main/java/com/faforever/commons/api/dto/MatchmakerQueue.java +++ b/api/src/main/java/com/faforever/commons/api/dto/MatchmakerQueue.java @@ -15,6 +15,8 @@ public class MatchmakerQueue extends AbstractEntity { private String technicalName; @ToString.Include private String nameKey; + @ToString.Include + private Integer teamSize; @Relationship("featuredMod") private FeaturedMod featuredMod; diff --git a/lobby/src/main/kotlin/com/faforever/commons/lobby/ConnectionApi.kt b/lobby/src/main/kotlin/com/faforever/commons/lobby/ConnectionApi.kt index f0852a15..487a9ce4 100644 --- a/lobby/src/main/kotlin/com/faforever/commons/lobby/ConnectionApi.kt +++ b/lobby/src/main/kotlin/com/faforever/commons/lobby/ConnectionApi.kt @@ -54,6 +54,13 @@ data class NoticeInfo( val text: String?, ) : ServerMessage +/** + * A message from the server (automated) to update vetoes of the user. + */ +data class VetoesChangedInfo( + val vetoesData: List +) : ServerMessage + /** * The server assigns us a session id, onto which we will authorize. diff --git a/lobby/src/main/kotlin/com/faforever/commons/lobby/FafLobbyApi.kt b/lobby/src/main/kotlin/com/faforever/commons/lobby/FafLobbyApi.kt index 5546d0b2..4bcaf36b 100644 --- a/lobby/src/main/kotlin/com/faforever/commons/lobby/FafLobbyApi.kt +++ b/lobby/src/main/kotlin/com/faforever/commons/lobby/FafLobbyApi.kt @@ -67,6 +67,7 @@ interface ClientMessage : LobbyProtocolMessage JsonSubTypes.Type(value = SocialInfo::class, name = "social"), JsonSubTypes.Type(value = LoginFailedResponse::class, name = "authentication_failed"), JsonSubTypes.Type(value = NoticeInfo::class, name = "notice"), + JsonSubTypes.Type(value = VetoesChangedInfo::class, name = "vetoes_changed"), JsonSubTypes.Type(value = IceServerListResponse::class, name = "ice_servers"), JsonSubTypes.Type(value = AvatarListInfo::class, name = "avatar"), JsonSubTypes.Type(value = PartyInfo::class, name = "update_party"),