package org.DUCodeWars.framework.server.net.packets.notifications.broadcast

import org.DUCodeWars.framework.server.AbstractGame
import org.DUCodeWars.framework.server.net.PlayerConnection
import org.DUCodeWars.framework.server.net.packets.notifications.InvalidResponseException
import org.DUCodeWars.framework.server.net.packets.notifications.NotificationRequest
import org.DUCodeWars.framework.server.net.packets.notifications.NotificationResponse

class BroadcastNotificationDisqualify<I : NotificationRequest>(
        game: AbstractGame,
        connections: Iterable<PlayerConnection> = game.players,
        requestCreator: (PlayerConnection) -> I)
    : BroadcastDisqualify<I, NotificationResponse>(
        game,
        connections,
        requestCreator,
        { _, _, _ ->}
                               ) {
    constructor(game: AbstractGame, connections: Iterable<PlayerConnection> = game.players, request: I) : this(game,
                                                                                            connections,
                                                                                            { request })
}