feat(api): Enhance event mappers to include GameLobby in JSON serialization
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
package util.mapper
|
||||
|
||||
import de.knockoutwhist.utils.events.SimpleEvent
|
||||
import logic.game.GameLobby
|
||||
import play.api.libs.json.JsObject
|
||||
|
||||
trait SimpleEventMapper[T <: SimpleEvent] {
|
||||
|
||||
def id: String
|
||||
def toJson(event: T): JsObject
|
||||
def toJson(event: T, gameLobby: GameLobby): JsObject
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user